LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   upgradation of Apache, PHP and Mysql (https://www.linuxquestions.org/questions/linux-networking-3/upgradation-of-apache-php-and-mysql-371851/)

tsaravan 10-11-2005 06:44 AM

upgradation of Apache, PHP and Mysql
 
Hi,

The following server/software was installed by default during OS installation

Apache 2.0.40
Php 4.4.0
Mysql 4.0.26

Now I would like to upgard all the above server/software with the following version which are available as source code from the relevant sites.

Apache 2.0.54
Php 5.0.5
Mysql 4.1.12

I have install the above software in the normal way as given instructions in the INSTALL file i.e., ./configure, make, make install and so on. Now If I check the versions of the above server/software, it gives me the old version. Hence, please let me know how to upgarde the Apache, php and Mysql from source while the older versions are installed by default at the time of OS installation.

thanks in advance.

T. Saravana

Gort32 10-11-2005 07:31 AM

The original packages are likely installed into a slightly different location than the source would put them by defualt. For example, practically every distro will put Apache's binaries in /usr/bin and /usr/sbin; however, if you just complile Apache without specifying bindir and sbindir, it will put all of those binaries under /usr/local/apache/bin (I think). So, when your startup scripts call httpd it will end up calling the one in /usr/sbin instead of the new one. MySQL works in almost the same way and PHP would be installing itself in the new install of Apache that isn't being run in the first place.

You have two real options here. You can compile from source specifying the bindir, sbindir, sysconfdir, and all of the other directories exactly as they were set up in your original install or you can just use the updated packages for your distro - the rpm, deb, tgz, or whatever your distro uses.


All times are GMT -5. The time now is 04:11 PM.