LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PHP version mismatch (https://www.linuxquestions.org/questions/linux-newbie-8/php-version-mismatch-939097/)

roopakl 04-10-2012 10:01 AM

PHP version mismatch
 
Hi..All,
we have a server(RHEL 4, PHP version 4.3) in which we are running http, https, ftp and mail server.
We got new php files from web disigners and also tested locally with ubuntu 10.10 and Cent 5.5 with php 5.* version and found everything is working fine including search engine. So we uploaded the same files in to our web server and found everything is working fine apart from search engine. But in old php files the search engine also was working fine.
As we can see with these new php files, search engine is working only with above php 5 version. But our web server is having php version 4.3. So we need some expert help to update the php version from 4.3 to 5.*/above,
Or it would be much better if you assist in creating bash/perl script to enable the search engine in php 4.3 version.
Thanks in advance for your kind help.

David the H. 04-10-2012 11:53 AM

We'll certainly assist you with your scripts. Just post what you have written and let us know exactly what it's supposed to do and where you are having problems, and we'll help you work through them.

Satyaveer Arya 04-10-2012 01:01 PM

roopakl,

You mentioned in your post that you want to upgrade php, currently you're running 4.3 version on RHEL 4. Well you can just download the latest version of php i.e., 5.4.0 which is stable with support. Just remove the older version which you've installed and install the newer version and configure according to your need.

Kustom42 04-10-2012 05:02 PM

Upgrade PHP! You will also need to run a mysqlupgrade to upgrade your mysql tables to be compatible with php5 but php4 is antedated and has many security flaws.

roopakl 04-10-2012 09:28 PM

David Guru,
Thanks for your kind reply. Since I don't know anything about php code, I am unable to write a script. Because I don't know that how search engine works with php. So need your guidance that what/where to look in php files for search engine or it would be appreciated if you could post a small bash script to enable the search engine according to php files. So I can get some idea about php and bash
Thanks for your kind help.

roopakl 04-10-2012 09:40 PM

Thanks for your kind reply Satyaveer Arya and Kustom42,
Could you please give some url links by which I can safely upgrade php and mysql without affecting to our current control panel settings.
If I need upgrade also mysql, then should I take SQL database backup before updating mysql?
Thanks for your kind help.

Satyaveer Arya 04-11-2012 11:30 AM

Quote:

Could you please give some url links by which I can safely upgrade php and mysql without affecting to our current control panel settings.
I hope you're paying redhat and availing their services. Then you must try from their network.

Code:

# yum install php php-gd php-mysql
You can try this. And search on google you'll find lots of links for downloading various rpms or tarballs for installing the package. Did you try anything on Google?
Good Luck!

Satyaveer Arya 04-11-2012 11:32 AM

Or you can try this link on command line-

Code:

# wget http://www.cyberciti.biz/files/lighttpd/rhel4-php5-fastcgi/php-5.1.4-1.esp1.src.rpm

Kustom42 04-11-2012 11:44 AM

I would not use either of Satyaveers examples at this point as you did mention you are running a control panel on the server. Which control panel are you running? cPanel has an EasyApache function that will do this for you and Plesk Panel should get its upgrades from the atomic repo.

roopakl 04-16-2012 08:47 PM

Sorry for the late reply.
Thank you both, problem solved!!!:)


All times are GMT -5. The time now is 02:57 AM.