HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   HOWTO-Related Questions (
-   -   Wrong PHP Version Ubuntu 12.10 Perfect Server Install (

darinpeterson 16th February 2013 18:05

Wrong PHP Version Ubuntu 12.10 Perfect Server Install
I followed the instructions provided for the Ubuntu 12.10 Perfect Server installation to install ISPConfig 3 on Wheezy:

In following these instructions I expected PHP 5.3.18 to be installed on the system, but PHP info, php -i indicates:

PHP Version => 5.4.4-12

I have software that has been written in 5.3, and my live server is running Squeeze and 5.3. I need to get back to running PHP 5.3 to avoid complications.

What is the best way for me to do this without causing problems with ISPConfig 3 operations?

darinpeterson 17th February 2013 00:04

Ok, a bad idea?
Since nobody has replied, maybe it's a bad idea to downgrade my version of PHP?

Thoughts on the matter?

falko 17th February 2013 13:39

Do you have ISPConfig 3.0.4 or 3.0.5 installed? In 3.0.4, the system's default PHP version is used (which is 5.4.4), while in 3.0.5, you can select the PHP version to be used.

darinpeterson 17th February 2013 19:17

Hi Falko,

I upgraded to ISPConfig 3.0.5. phpinfo() indicates that I am now using PHP 5.3.18, but Xdebug no longer works in Google Chrome.

When I was using PHP v5.4, Xdebug and PhpStorm played well together, everything worked.

I have been working for two hours trying to resolve this issue, but cannot get Xdebug to work in PHP 5.3.18.

I make changes to my configuration, and check them in:, and it always reports this:



Xdebug installed: no
Server API: CGI/FastCGI
Windows: no
Zend Server: no
PHP Version: 5.3.18
Zend API nr: 220090626
PHP API nr: 20090626
Debug Build: no
Thread Safe Build: no
Configuration File Path: /opt/php-5.3.18/lib
Configuration File: /var/www/conf/web1/php.ini
Extensions directory: /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626

Download xdebug-2.2.1.tgz
Unpack the downloaded file with tar -xvzf xdebug-2.2.1.tgz
Run: cd xdebug-2.2.1
Run: phpize (See the FAQ if you don't have phpize.

As part of its output it should show:

Configuring for:
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.

Run: ./configure
Run: make
Run: cp modules/ /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626
Edit /var/www/conf/web1/php.ini and add the line
zend_extension = /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626/
Restart the webserver
I have done all of those things that I'm told to do, but it's not working. Here is the config information tacked on to the end of my php.ini file from /var/www/conf/web1:


;xdebug configuration
;the line immediately below is for php v5.4
;zend_extension =/usr/lib/php5/20100525/

Do you have any idea what I need to do to get Xdebug working with PhpStorm again using this configuration?

Thank you,

falko 19th February 2013 20:46

Does /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626/ exist?

darinpeterson 19th February 2013 21:16

Yes, the file exists
darin@darin:/var/www/$ ls -l /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626/
total 972
-rwxr-xr-x 1 root root 992864 Feb 17 09:07

falko 22nd February 2013 14:24

Are all directories up to /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626/ readable?

darinpeterson 22nd February 2013 16:40

The following directories and the file all have the same permissions 751, php-5.3.18, lib, php, extension, no-debug-non-zts-20090626. Owner is root and group is root.

falko 23rd February 2013 12:43

Try 755 permissions.

darinpeterson 24th February 2013 16:36

The changes had no impact.

All times are GMT +2. The time now is 19:37.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.