#1  
02-17-2013, 11:52 AM
kpmedia's Avatar
kpmedia kpmedia is offline
Site Staff | Web Hosting, Photo
 
Join Date: Feb 2004
Posts: 4,311
Thanked 374 Times in 341 Posts
I tried to upgrade a Plesk 9.5.5 Windows server to PHP 5.3.x this morning, and I don't think it can be done.

This server has two main applications on it: vBulletin and WordPress.
- vBulletin simply gave a "Internal Server Error"(error 500).
- Looking from the server itself, you got "Fatal error: Call to undefined function mysql_connect()"
- WordPress gave "Your PHP installation appears to be missing the MySQL extension which is required by WordPress" on one version.
- An older version of WordPress gave "Error establishing a database connection."

Here's the troubleshooting steps I took.
- Enabling the MySQL extensions made no difference.
- Verified the "extension_dir" and it was set properly to "C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\ext"
- Tried the "old" PHP 5.2.17 php.ini, and it failed.
- Even tried both new ones that came with PHP 5.3 -- with edited extensions entries, of course -- and it made no difference.

The php was there, and would see MySQL in the info file, but refused to work in the actual apps.
Code:
<?php
phpinfo();
?>
Yes, Plesk's run-time was disabled, as per the instructions for Parallels:
  1. Stop Plesk services (‘Control Panel’ and all that are included in the ‘Plesk Run-Time’ section)
  2. Rename folder %plesk_dir%\Additional\PleskPHP5 to the orig_PleskPHP5
  3. Create a new folder %plesk_dir%\Additional\PleskPHP5
  4. Download necessary version of PHP, unzip its content, and copy it to the newly created folder PleskPHP5
  5. Copy the file php.ini from the old folder orig_PleskPHP5 to the new one
  6. Make sure the permissions are inherited
  7. Start Plesk services
  8. Click the "Refresh" button in the Components Management section in Parallels Plesk Panel and check if you can see the new PHP version there
From http://kb.parallels.com/6670
That works perfectly fine to upgrade PHP 5.2.x versions. But seemingly not to upgrade to 5.3.x

I even rebooted the whole server, to no avail.

The version used was PHP 5.2.17 nts (non-thread safe), as stated by the WinCache requirements.
And the new failed attempt was for PHP 5.3.21, current as of today, Feb-17-2013.
More info on thread-safe vs. non thread-safe here: http://www.iis-aid.com/articles/my_w..._safe_binaries

So that failed.

I don't understand why.

So it's being left on PHP 5.2.17 for now. I guess the whole thing as to be upgraded, not just PHP.

- Did my advice help you? Then become a Premium Member and support this site.
- Please Like Us on Facebook | Follow Us on Twitter

- Need a good web host? Ask me for help! Get the shared, VPS, semi-dedicated, cloud, or reseller you need.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Plesk Linux default vhosts folder location, edit Plesk default page kpmedia Web Hosting 0 04-21-2011 11:52 PM
How to restore/migrate Plesk 8 into Plesk 9 - Windows/Linux kpmedia Web Hosting 3 10-01-2010 02:50 AM
Plesk Windows webstats/plesk-stat authentication errors kpmedia Website and Server Troubleshooting 0 10-01-2010 02:46 AM
Broken mpeg2 fixer? manthing Edit Video, Audio 2 04-16-2006 07:42 AM

Thread Tools



 
All times are GMT -5. The time now is 01:17 AM