PHP is a server-side scripting language, used for building browser-based applications. This includes websites as well as programs that don't really need any form of interaction with the user.

learn more… | top users | synonyms (2)

4
votes
1answer
73 views

How can one call programs that are not “rooted” in the operating system

I am currently trying to install a php extension on my computer. I am in the process of developing a new site and I am using LAMPP. I used PECL to install the syck YAML extension so that I can parse ...
5
votes
3answers
2k views

Unable to Execute VLC from PHP

I am running uBuntu 12.04.3, 32 bit OS on a 8 CPU, 8GB RAM 64-bit Intel Xeon machine. I have installed all backports as well. I have this problem which is eating my head for the last 3 days. I ...
0
votes
1answer
226 views

“PHP Startup: odbtp: Unable to initialize module” module API doesn't match

I need to enable a module installed on my system. I have installed PHP 5.4 from ondrej's repository couple of months ago ago and now I have compiled ODBTP module from the source. Unfortunately, if ...
2
votes
1answer
535 views

Why did my PHP5.5 upgrade fail?

I have a relatively new install of Ubuntu 12.04. The php version is 5.3, so I just followed this question to upgrade to 5.5: How do I install latest PHP in supported Ubuntu versions (like 5.4.x in ...
0
votes
1answer
784 views

(Ubuntu 12.04 LTS) PHP 5.4 offline install

I searched but didnt find solution to our problem... We have offline (intranet) Ubuntu 12.04 LTS installation. We made local offline Ubuntu 12.04 repo mirror (updating once in a week) and I can ...
0
votes
1answer
771 views

How to configure apache2 in Ubuntu 13.04

I installed apache using ubuntu software center, and now it shows the following text on the page upon entrance of localhost in the addressbar of Firefox It works! This is the default web page for ...
1
vote
4answers
4k views

How To Install GraphViz For PHP On Ubunutu

What I want to do is install GraphViz for PHP on Ubuntu. I tried pear install Image_GraphViz, it installed but does not work for me. Then I tried downloading the file from here. File name : libgv-...
1
vote
2answers
3k views

Problems with installation from ppa:ondrej

The server is running Lucid and I am trying to upgrade the PHP to 5.5 stable. I followed the intructions on this question: How do I install latest PHP in supported Ubuntu versions (like 5.4.x in ...
-2
votes
1answer
3k views

Cron job every second

How can I run a PHP script every few seconds in Ubuntu Server? (bonus: How can I run random within the cron script, e.g. every 3 seconds + random(3 seconds) )
0
votes
1answer
868 views

Setting up websites with Ubuntu 13.04 server and Nginx

I'm trying to setup 2 websites on my server ---> A_website and B_website I don't have a domain name registered and I just want to use the site privately so I'll be accessing it via the static IP ...
2
votes
2answers
3k views

Ubuntu 12.04 php PEAR package problem

I am using LAMP server on my Ubuntu 12.04 system. Before this time I have installed prestashop without any issues. But after a long time when I tried to install prestashop today, it really showed me a ...
3
votes
2answers
18k views

Changes for upload_max_filesize, memory_limit & post_max_size in the php.ini aren't affect

I'm trying to increase the upload_max_filesize etc in order to import bigger files with PHPMyadmin. I have changed the php.ini and restart Apache. I can see the changes on the PHPMyadmin import ...
1
vote
1answer
5k views

Warning: date(): It is not safe to rely on the system's timezone settings - What just happen?

Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those ...
0
votes
1answer
923 views

XAMPP(LAMPP)'s phpmyadmin throwing error #2002

I have just installed XAMPP(LAMPP) about a hour ago and I am continously searching for the error I am getting on while opening http://localhost/phpmyadmin(phpmyadmin). The screen of the error is as ...
0
votes
1answer
621 views

Browser is not displaying the php output

I have installed lamp over Ubuntu 12.4. I am able to work with mysql through Command prompt and User Interface, but when I try to execute the php script which include HTML and MySQL statements, the ...
0
votes
1answer
329 views

Custom install of PHP

I have always used the code below to install my PHP environment: sudo apt-get install -qqy php5 sqlite php5-gd php5-sqlite libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql php5-intl php5-curl ...
2
votes
3answers
3k views

How to see output from a php script

I am new to php programming and i have installed it on Ubuntu server, the server is a LAMP server. As i was doing my introductory lecture, i created first.php file but i understand it cannot be ...
0
votes
1answer
540 views

How do I set up PHP and MySQL cronjobs on Ubuntu 12.04 (Precise Pangolin) server?

I just made a LAMP install and got SFTP working. My question now is: How do I set up cronjobs on Ubuntu server? I need to make some cronjobs for my PHP/MySQL application. I look for un-activated ...
1
vote
2answers
6k views

How to make php webpage to access the file in /root directory?

I am using Linux 12.04,apache and php is installed on it.I want to access a text file in /root/ folder.I am really confused with the permissions.The php script i m using <?php $file = fopen("/root/...
0
votes
2answers
5k views

PHP5.4 Unable to load dynamic library gd.so undefined symbol: gdGetC

I installed PHP5.4 from PPA ppa:ondrej/php5-oldstable in my Ubuntu 12.04.2. Then all of my image processing scripts got broken. Turns out the php5-gd library isn't loaded. $ php -a PHP Warning: PHP ...
0
votes
1answer
659 views

PHP cli hangs after ppa update to 5.5

I remember having the exact same pb on my other machine, and I know I fixed in then, but I don't remember how... After installing php/apache/mysql/phpmyadmin from the usual repositories, I added ppa:...
0
votes
2answers
2k views

How to install the latest versions of LAMP componanents [duplicate]

I want to develop web applications with PHP, for that reason I need to install a LAMP system, I heard that it's good idea to use latest versions of PHP, MySQL and Apache ... so if it's possible please ...
1
vote
1answer
78 views

Crontab woes — help me figure out why it's not running

I'm having troubles creating a crontab that executes a series of php scripts when I specify it. From what I can tell the cron doesn't even run... Also if someone knows a method to allow me to run ...
0
votes
1answer
778 views

localhost index.php missing

When I updated php5, I see the It works! page appears when I go to http://localhost instead of getting the localhost's homepage. I see /var/www/index.php is missing. How should I correct it ? I ...
0
votes
4answers
4k views

php script not executed by crontab

I have setup a cron to execute one of my php scripts. But the problem is the php script is not being executed at all not even partially. Here is the cron I have set up 45 23 * * * /usr/bin/php -q /...
0
votes
2answers
4k views

cannot access copied folder in htdocs of lampp in ubuntu?

I want to move my web content from window 7 to ubuntu 12.04. So I copy my web content and move it to my /opt/lampp/htdocs folder, then I have change the folder permission using :: 1) sudo -s 2) ...
0
votes
1answer
665 views

Gmagick fails to install from source

I'm trying to install gmagick php extension from source, using these commands: mkdir gmagick cd gmagick mkdir build mkdir local cd $HOME/gmagick/build wget ftp://ftp....
1
vote
0answers
28 views

Error code 500, I have an error while I am trying to view index.php file [duplicate]

Dear People who will read this I was programming php by fallowing tutorial with phpacademy Login and Register tutorial before that it was fine and I noticed after I closed terminal it gave me 500 ...
2
votes
3answers
8k views

PHP5-FPM (PHP 5.5) won't install - can't install libsystemd-daemon0

My server is down because I don't know how to fix this. I'm on Ubuntu 12.04 I use this PHP5 repository: http://ppa.launchpad.net/ondrej/php5/ubuntu precise main I've never had a problem until today. ...
1
vote
1answer
1k views

PHP, ssh2_exec is not working properly

I have a shell script makedir.sh as given below. sudo -H sh -c ' mkdir /usr/local/testdir; if [ $? -eq 0 ];then echo "Successfull"; else echo "Unsuccessfull"; fi ' I ...
6
votes
4answers
4k views

Which interprets PHP faster on Ubuntu Server 12.04 32-bit, Apache or Nginx?

I have currently installed Apache on my 12.04 32-bit Ubuntu server, but I'm interested into switching to Nginx. I have read a number of comparisons and reviews, where Nginx is faster than Apache ...
0
votes
2answers
461 views

Will I lose mysql installation and associated databases if I reinstall Ubuntu?

I just ran into an OS issue, and I was thinking of simply doing a reinstall of Ubuntu. I was looking at the Ubuntu installation options, and I saw that I could "Reinstall Ubuntu 13.04". "Documents, ...
7
votes
1answer
43k views

PHP OpenSSL extension has a package?

I know that OpenSSL extension is in PHP source, but I can't enable it when I perform apt-get install php5. There is not even a apt-get install php5-openssl. How I must proceed?
1
vote
1answer
741 views

Should someone install Apache, MySQL etc. or use ready-made packets like XAMPP for PHP development?

Do you use a webserver development package (like XAMPP) or do you install apache, mysql, php per package for PHP / Perl / Python / etc. development? What is your practical experience? I have ...
3
votes
1answer
18k views

How to install and use php-cgi

I have installed LAMP server via tasksel. Where is PHP directory? How to install and use php-cgi if I don't have it inside PHP directory (I need to copy php-cgi file from there) Thanks in advance.
2
votes
1answer
1k views

php.ini cli symbolic link

Why do we have a different php.ini for the php client ? Is it a good idea to link the main instead ? $ sudo ln -s /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
1
vote
1answer
844 views

Apache PHP not working after Update

Im using Ubuntu 12.04 LTS. There was an Ubuntu-Update yesterday and after starting the pc today my apache php isnt working anymore. I get the download of the php-files instead of the website. I ...
-1
votes
1answer
1k views

Give www-data permissions of root?

I want to access the root crontab from web interface.I have Apache and PHP installed.I have a project in which i have to change the job timings in crontab. How can i change the timing of crontab jobs ...
2
votes
2answers
4k views

Permission denied while writing a file in var/www inspite of adding me to user group

I gave permissions to read and write files in /var/www to the working user(me) through the steps given in Whats the simplest way to edit and add files to “/var/www”?. It works fine when I try to ...
0
votes
1answer
521 views

After removing a folder (apache2 I think) I'm having PHP and LAMP trouble

When I go to phpmyadmin it says: The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" target="documentation"><img src="themes/dot.gif" ...
0
votes
1answer
107 views

php version in apt - does it correspond to version on php.net and if not how to upgrade to latest release [duplicate]

So I'm setting up a lamp web server based on ubuntu 13.04 raring. I've installed all required software and run apt-get update and upgrade. When I run php info it reports php version 5.4.9-4ubuntu or ...
1
vote
1answer
968 views

PHP5 Ubuntu not updated? [duplicate]

I just installed php5 on my newly setup Ubuntu Server 12.04. However, I noticed why does the PHP version is kind of too low? As compared to the official PHP.net website, the recent version is at PHP 5....
5
votes
3answers
2k views

Any way to mass auto indent php and html code in Ubuntu?

I have about 50~ poorly indented and very very hard to read to code. Do you guys have any tips on how to indent this to make it more readable?
0
votes
2answers
6k views

PHP Fatal error: Call to undefined function mysql_connect() [duplicate]

I'm trying to connect my PHP page to MySQL database, but I'm getting this error : PHP Fatal error: Call to undefined function mysql_connect() I'm working on Ubuntu 11.10 MySQL 5.5 and PHP 5.3. I ...
0
votes
1answer
4k views

How to update ImageMagick (imagick) for PHP

I've installed ImageMagick for PHP using the following command: sudo apt-get install php5-imagick But the version installed (namely ImageMagick 6.6.9-7 2012-08-17 Q16) is not the latest version (...
3
votes
1answer
215 views

PHP interactive interpreter: Delete and Ctrl +Aarrows keys don't work properly

When running PHP interactive interpreter with: php -a Delete button doesn't work (produces ~ instead), jumping over words with Ctrl+Left Arrow and Ctrl+Right Arrow doesn't work either (;5D and ;5C, ...
0
votes
1answer
213 views

Most user friendly Ubuntu IDE [duplicate]

What is the most user friendly IDE for HTML, CSS and JS on ubuntu? I have heard it said that programming on the Linux platform can be quite potent when creating server applications. Can you good ...
1
vote
0answers
27 views

The following packages have unmet dependencies: [duplicate]

Can someone help me get rid of this bloody error? The following packages have unmet dependencies: libc6 : Depends: libc-bin (= 2.15-0ubuntu10.3) mod-pagespeed-stable:i386 : Depends: apache2.2-...
1
vote
1answer
16k views

sending php mail from localhost

I have installed php, mySQL, postfix and sendmail and have set up a simple email script on my local host server. mail() returns 1 (TRUE) when I send an e-mail, however the email does not arrive at the ...
1
vote
2answers
1k views

configuration issue with respect to .htaccess file on ubuntu

I am building an application tshirtshop I have following configuration in /etc/apache2/sites-enabled/tshirtshop <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot ...