Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th February 2013, 18:05
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 154
Thanks: 35
Thanked 13 Times in 13 Posts
Default 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: http://www.howtoforge.com/perfect-se...ot-ispconfig-3

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?
Reply With Quote
Sponsored Links
  #2  
Old 17th February 2013, 00:04
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 154
Thanks: 35
Thanked 13 Times in 13 Posts
Default Ok, a bad idea?

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

Thoughts on the matter?
Reply With Quote
  #3  
Old 17th February 2013, 13:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 17th February 2013, 19:17
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 154
Thanks: 35
Thanked 13 Times in 13 Posts
Default

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: http://xdebug.org/wizard.php, and it always reports this:

Quote:
Summary

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
Instructions

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/xdebug.so /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/xdebug.so
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:

Code:
;xdebug configuration
;the line immediately below is for php v5.4
;zend_extension =/usr/lib/php5/20100525/xdebug.so
zend_extension=/opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
xdebug.remote_host=192.168.1.200
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
Do you have any idea what I need to do to get Xdebug working with PhpStorm again using this configuration?

Thank you,
Darin
Reply With Quote
  #5  
Old 19th February 2013, 20:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Does /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so exist?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 19th February 2013, 21:16
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 154
Thanks: 35
Thanked 13 Times in 13 Posts
Default Yes, the xdebug.so file exists

darin@darin:/var/www/aaabs.org/web/sites$ 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 xdebug.so
Reply With Quote
  #7  
Old 22nd February 2013, 14:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Are all directories up to /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626/ readable?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
darinpeterson (22nd February 2013)
  #8  
Old 22nd February 2013, 16:40
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 154
Thanks: 35
Thanked 13 Times in 13 Posts
Default

The following directories and the xdebug.so 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.
Reply With Quote
  #9  
Old 23rd February 2013, 12:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Try 755 permissions.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 24th February 2013, 16:36
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 154
Thanks: 35
Thanked 13 Times in 13 Posts
 
Default

The changes had no impact.
Reply With Quote
Reply

Bookmarks

Tags
restoring php 5.3

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 - MultiServer Setup - With Dedicated Control Panel - How? SuperJC Installation/Configuration 4 16th October 2012 21:03
issues in /var/log/apache2/error.log denpark Installation/Configuration 1 22nd November 2011 10:12
Can't receive mails baicunko Server Operation 12 3rd August 2011 23:02
Virtual Users+Postfix+Courier+CentOS problem telnet localhost 25 stinson HOWTO-Related Questions 11 5th February 2011 14:57
Debian 5 Ajax error + network interface always shutting down ev0css Installation/Configuration 3 5th June 2010 13:58


All times are GMT +2. The time now is 14:48.


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