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)

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
460 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
41k 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
715 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
17k 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
840 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
518 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
105 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
967 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
214 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
212 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
15k 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 ...
0
votes
1answer
3k views

How can I install php5-fpm and apache and configure the apache vhost?

I don't find a valid a description how can I install configure the apache vhost correctly. Can everybody help me? <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName webpage....
4
votes
1answer
6k views

How to recover the default php.ini

I accidentally deleted php.ini from /etc/php5/apache2. How to recover it? I tried to remove and install php5 without luck.
0
votes
1answer
774 views

Url rewrite does not work ubuntu server

Currently I am working with a php script but it still contains an unfriendly link (cms.php?Cms=login). I want to turn it into a friendly link /cms/login I have an .htaccess file is created ...
-1
votes
1answer
991 views

Why my php scripts doesn't get executed?

I have this html page on my pc <html> <body> <form action="http://localhost/welcome.php" method="post"> Name: <input type="text" name="fname"> Age: <input type="text" name=...
0
votes
1answer
5k views

Upgrade PHP 5.3 to 5.4 via putty

I am using Ubuntu 10.04.1 LTS Server with PHP Version 5.3.2-1ubuntu4.19 Apache/2.2.14 (Ubuntu). I login to the server via putty and want to upgrade to php 5.4. I could not find the right commands ...
7
votes
2answers
27k views

How can i install php 5.5 in ubuntu [duplicate]

How can i replace 5.3 with php 5.5 un ubuntu.I tried in google and failed to find repository. Please help me
2
votes
1answer
11k views

I have broken Ubuntu!

I have been having problems with php and phpMyAdmin and now, after manually removing php, apache2 a when I install anything from the Software Centre I get a failure message. I tried to uninstall ...
11
votes
4answers
11k views

Install Apache, Php, Mysql latest versions not available via apt

I need to install the latest versions of apache, php and mysql that are available on their websites, but the problem is that apt repositories don't have these updates versions yet. Versions that I ...
0
votes
1answer
120 views

How to copy a website inside my WWW to another computer and make it work?

I have designed a website to create and sign certificates (.csr, .key, .crt, .p12) in my netbook using Ubuntu 12.04. Now I have to demonstrate that it works but my teacher wants to test it using a lab ...
0
votes
1answer
1k views

How to install tidy to xampp on ubuntu 13.04

I followed this article: http://hoball.wordpress.com/2009/09/29/html-tidy-on-linux-under-xampp/ to install tidy on my xampp, and I got below error message when restart my xampp: Warning: PHP Startup:...
0
votes
2answers
9k views

php-server setup not working

I have installed php and apache2 server before but I'm getting bogged down with errors. The process so far is as follows: sudo apt-get install tasknet sudo apt-get install lamp-server During the ...
1
vote
1answer
192 views

updated server to raring, php not working

I updated a server to raring ring-tail, and most everything seems to work, except php5. The ssh, apache, ICECAST and other functions are operational. I have tried purging the installation files, and ...
1
vote
4answers
21k views

Install PHP 5.3 on Ubuntu 13.04

How I could install an old PHP version on Ubuntu 13.04 (Raring Ringtail) -preferably version 5.3.3?
0
votes
1answer
131 views

When I try to start lampp the terminal says that it only works on 32bit

I already have the ia32-libs installed and i used this code sudo apt-get install ia32-libs anyone have any suggestions on what I'm doing wrong?
0
votes
1answer
332 views

Standard install procedure for PHP 5.3 without Suhosin?

Is there a standard way to install PHP 5.3 without Suhosin? How would doing so affect tracking of routine updates for precise? If it's going to make life complicated now or in future then I might ...
1
vote
1answer
6k views

Install phpize on Ubuntu

I wanted to know if there was a way of installing only phpize. I've installed it by executing sudo apt-get install php5-dev. I wanted to know if there was a way to just install phpize only.
0
votes
1answer
207 views

I Installed lamp-server but a tiny progrme of php not run

I have installed lamp in Ubuntu 12.04 using these commands: $ sudo apt-get install tasksel and $ sudo tasksel install lamp-server and run the following .php file in browser and it was executed ...
6
votes
3answers
31k views

phpmyadmin throws a 404 on opening

I have installed php5 and phpMyAdmin from the Ubuntu Software Centre on a fresh install of Ubuntu 13.04. when I enter localhost in my browser the following is displayed: It works! This is the ...
0
votes
1answer
2k views

Issue with php5-curl installation

I currently have PHP 5.4.14-1~quantal+1 (cli) installed on my Ubuntu 13.04 I tried to install php5-curl but I have a dependency issue $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get ...
1
vote
2answers
1k views

Upgraded PHP on Ubuntu but old version still in use

I just upgraded PHP to V5.4 on my laptop, using the technique described in this answer, How do I install latest PHP in supported Ubuntu versions (like 5.4.x in Ubuntu 12.04)?. I did the same for my ...
1
vote
1answer
427 views

Shell script now working on post/get request

I have a simple script in php to fetch files from my github repository <?php echo shell_exec('git pull'); ?> When I ssh into my server and run this script like this: php github.php I see ...
3
votes
2answers
2k views

phpMyAdmin “More Settings” Option Generates Blank Page

phpMyAdmin works well except for a couple of links on the Home Page. There are two links to More Settings, however they both take me to a blank page. Am I missing a module, or does it need ...
0
votes
2answers
3k views

how to install apache,mysql,php as non root without using apt-get?

I am using ubuntu 13.04 version.I am newbie for ubuntu.Can i able to install LAMP as non-root and without using sudo apt-get?
0
votes
1answer
322 views

Gearman Job Server and PHP Extension

How may I install Gearman Job Server and PHP Extension on my Ubuntu 13.04 Desktop? I've already installed latest version of PHP on my Ubuntu 13.04 Desktop. I've to run my custom Script with Gearman. ...
0
votes
1answer
2k views

Nginx Basic Auth and subfolders

I have a problem with subfolders in a basic auth procted folder. In the protected folder i have a folder named phpmyadmin, which contains phpmyadmin. Im not able to run phpmyadmin, when basic is ...
2
votes
3answers
2k views

Setting default editor for php files

I am using Ubuntu 12.04 TLS. I had installed Netbeans on my PC. I want change default file to netbeans. I've tried to right-click on a php file > Properties > Open With > Show other Application ; ...
0
votes
3answers
18k views

phpMyAdmin login problem:

I use Ubuntu 12.04. Recently I have installed XAMPP 1.8.1 in my system. I set password to: XAMPP pages, MySQL/phpMyAdmin, MySQL root and FTP. But after that when I try to login to phpMyAdmin page ...
0
votes
2answers
334 views

Useradd from PHP script

is it possible to add an user with PHP script ?
2
votes
1answer
17k views

I can't get “apt-get install php5-suhosin” to work

I am running ubuntu 13.04. I cannot get my php website to work because I cannot install php5-suhosin. It said this each time that I have tried apt-get install php5-suhosin: Package php5-suhosin is ...
2
votes
1answer
4k views

How do I set up a localhost website?

I have created a simple index.php file which I have places in /var/www/ next I changed the permissions of the file with sudo chmod +x index.php I then ran Chromium and typed in localhost to the ...