• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

How to upgrade php from 4.3 to 5.2 on Plesk

I don't know. Maybe atomicturtle knows (as he was asking whether you had those installed).
 
okay did the remove and then re-attempted the yum update and still get this error:

Error: Missing Dependency: php-common = 5.2.3-2.el4.art is needed by package php-pdo

Any more ideas?

Thanks

Nick
 
Okay now i have version 5.2 up and running, but any pages that have a require_once() file that is a DB connection, these are all failing.

any ideas?

Nick
 
[Tue Oct 09 10:41:35 2007] [error] [client 71.97.24.103] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/vhosts/holylonghorns.com/httpdocs/inc/mysql_connect.php on line 9
 
Here is the script in the connection page:

//Connect To Database
$hostname="localhost";
$username="longhornuser";
$password="*********";
$dbname="holylonghorns";

mysql_connect($hostname,$username, $password) OR DIE ("Unable to connect to database! Please try again later.");
mysql_select_db($dbname);
 
yes sorry about the caps, i keep them on for my store purposes and then have to remember to take them off.

the guests.php page should be pulling a table to display of gust posts'

the phpinfo is just fyi.

the results are:


[root@plesk conf]# rpm -q php php-mysql
php-5.2.3-4.el4.art
php-mysql-5.2.3-4.el4.art
 
Strange. You have php-mysql installed, I see the mysql.ini and mysqli.ini being parsed in your phpinfo, but there is no mysql section in your phpinfo. What does grep ^extension_dir /etc/php.ini tell you? The extension_dir setting should be set to /usr/lib/php/modules.
 
I do know that the php.ini file is there, as i went into it with vs to check the global variables. and such
 
The fact that that grep command doesn't return anything indicates that there is no line in /etc/php.ini that starts with extension_dir. You really should have the following in /etc/php.ini:

Code:
extension_dir = "/usr/lib/php/modules"

You could try adding it, but I suspect there might be more problems with your php.ini. Do you have a /etc/php.ini.rpmnew file and did you follow the instructions on http://www.atomicorp.com/wiki/index.php/PHP on the .rpmnew files?
 
Thank You!!!!

That did it!!

All is working now.

Thank You and AtomicTurtle So Much!!!!

Nick Getz
 
Back
Top