Neo
asked on
install php and mysql
Updates for php are no longer being installed via yum updates in my server because my operating system Centos 4 can no longer run the most recent repository versions.
I was told I can upgrade to more recent versions of php by using an unsupported repository or compiling a newer version on the system. Also any updates must be manually compiled onto the system.
Can you give me a step by step method for accomplishing this, since I have been applying the yum update command so far?
thanks for your help!
I was told I can upgrade to more recent versions of php by using an unsupported repository or compiling a newer version on the system. Also any updates must be manually compiled onto the system.
Can you give me a step by step method for accomplishing this, since I have been applying the yum update command so far?
thanks for your help!
Here's a useful link explaining how to compile Apache and PHP from source code.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your answers,
I am only interested in compiling a newer version of php and php updates if needed later on. Apache is already installed (version: Apache/2.0.52)
mc10 - Why should I compile PHP as Apache 2 shared module? How can I check to see if the most recent version of PHP is a shared module of Apache 2?
amitnepal - is the ./configure command you gave me the default configure command? If it complains something is missing, and I install the devel package, do I just have to issue the ./configure command again?
I am only interested in compiling a newer version of php and php updates if needed later on. Apache is already installed (version: Apache/2.0.52)
mc10 - Why should I compile PHP as Apache 2 shared module? How can I check to see if the most recent version of PHP is a shared module of Apache 2?
amitnepal - is the ./configure command you gave me the default configure command? If it complains something is missing, and I install the devel package, do I just have to issue the ./configure command again?
yes you have to install the same configure command again. The configure command above includes some basic php modules to be included built in. If you dont want any of them then you can skip .
eg. –with-imap –with-imap-ssl –with-kerberos –enable-sysvsem –enable-sysvshm –enable-sockets –with-curl –enable-mbstring –with-mcrypt –with-mysql –with-mysqli
Lets say you dont want imap support with php , you can skip with-imap and with-imap-ssl.
but again even if you skip here, you can compile the invdividual modules later on and include in php.ini
http://www.amitnepal.com/?p=494
this url shows how to compile individual php modules.
Thanks
AMit
eg. –with-imap –with-imap-ssl –with-kerberos –enable-sysvsem –enable-sysvshm –enable-sockets –with-curl –enable-mbstring –with-mcrypt –with-mysql –with-mysqli
Lets say you dont want imap support with php , you can skip with-imap and with-imap-ssl.
but again even if you skip here, you can compile the invdividual modules later on and include in php.ini
http://www.amitnepal.com/?p=494
this url shows how to compile individual php modules.
Thanks
AMit