Installation of PHP 5.1.4 and MySQL 5.0.21
Hi
I got a Virtual Dedicated Server without a control panel. I want to PHP 5.1.4 and MySQL 5.0.21 on the server. How do go abt installing these ? Thanks |
Looks like they run Fedora Core 2, which is a bit out of date, but oh well. I'd suggest going to www.php.net and www.mysql.com and trying to find an RPM of those versions that will work with your system. If you can live with the older versions that shipped with FC2 then yuou can easily grab an RPM from any fedora mirror or configure yum to install the software. There are plenty of sites on the net that explain how to install software via rpm and automate the process using yum.
|
I dont think its possible to install FC5 on a virtual dedicated server, is it ?
Wont the latest RPM versions of PHP and MySQL install on FC2 ? |
I would appreciate it if you could share your experience with installing PHP5 and MySQL5 under your VDS. I'm currently searching the Internet for an answer sincce I am planning to get a VDS with GoDaddy. I might even install FC2 at home and try it out for myself.
|
Everything has to be done via SSH as theres no control panel. Actually, if a control panel was there it would be a headache because we can customize it according to our own needs.
I still havent got the latest versions of PHP and MySQL installed - but I read that using the RPMs or unzipping and making is pretty much it and examples are all over the net - I just didnt take the time to get this done. If you get it done pl let me know the steps. |
Thanks anjanesh,
What about the Simple Control Panel, Plesk 30-domain control panel, and the cPanel unlimited control panel? Okay, I will let you know if I manage to get them installed. EDIT: It worked :) First, I did a basic installation of FC2 and then downloaded php-5.1.3.tar.bz2, httpd-2.2.0.tar.bz2 and mysql-standard-5.0.21-linux-i686-glibc23.tar.gz. Second, I followed the instructions in mysql-standard-5.0.21-linux-i686-glibc23/INSTALL-BINARY to get MySQL up and running. I had to run 'su - root' since the addgroup command was not available when I used 'su'. Third, to install Apache I followed the 'Apache 2.0 on Unix systems' section in php-5.1.3/INSTALL. Fourth, I downloaded libxml2-2.6.16-2.i386.rpm, libxml2-devel-2.6.16-2.i386.rpm and libxml2-python-2.6.16-2.i386.rpm from http://download.fedora.redhat.com/pu...pdates/2/i386/. PHP5 needs at least version 2.6.11 of libxml2 to configure so I had to update the three packages using 'rpm -Uhv libxml2*.rpm' as root. Fifth, I continued with the rest of the instructions in php-5.1.3/INSTALL to complete the installation of PHP5. As a final I run 'make install' in which it connected to the Internet and downloaded PEAR to finish its job. Now I have to look into some configurations parameters for Apache and PHP. Especially, the ones related to ssl and mysqli. |
This guide will help you in the process of installing MySQL5, Apache2.2 and PHP5 on an VDS hosted by GoDaddy.com. This guide is based on SSH so if you are under Linux just run
Code:
$ ssh the-ip-address-of-your-vds -l user-name First of all you have to make a decision whether to keep the current versions intact and disable the services they provide or remove them altogether. The disadvantage of keeping the current versions is that they start automatically when you restart your VDS. To overcome this problem you have to edit one or two configuration files by commenting the lines that run Apache2.0 and MySQL3. Another disadvantage is that the current binaries that are used to run MySQL3 and Apache2.0 will be in your PATH. This might cause you some confusing especially if you forgot to stop the services before running your own service, MySQL5 and Apache2.2 in this case. The only advantage of keeping the current version that I can think of now is that you can use the Simple Control Panel to configure MySQL3 and Apache2.0. You can always opt to removing MySQL3 but keeping Apache2.0 and PHP4 or the other way around. There is one important thing that you have to keep in mind, that is you have to use the full path to your new binaries in order to run them unless you add the new directories to your PATH. Step 1: Removing MySQL 3 There are few packages that you have to remove before removing MySQL3. To get an idea about which packages you need to remove run the following command as root: Code:
shell> su - root Code:
shell> mysqladmin -u root shutdown First you have to download the latest release of MySQL5. As of May 24, 2006 it is version 5.0.21. So as a normal user create a temporary directory and then use wget to download MySQL5. Code:
shell> cd Code:
shell> su – root Step 3: Removing Apache2.0 and PHP4 I did not do remove them myself, however if you are interested you can use 'rpm -e' as in Step 1 but with different packages. You have to remove the following ones in particular: Code:
shell> su - root Step 4: Installing Apache 2.2 Installing Apache is a bit more involved than Installing MySQL since you have to configure it according to your needs. Apache is based on modular architecture in which services are usually running as modules. These modules can be compiled directly into the httpd binary, which is responsible for running Apache, or compiled as dynamic shared modules known as dynamic shared objects DSO that can be loaded when you first run your server. In the later case you specify the modules that you want to load in the httpd.conf file. Apache has an excellent documentation that you can browse online or you can download and read it offline as well. The documentation would help you in identifying which modules you might need. Before proceeding with the installation of Apache2.2 you have to stop Apache2.0 if it is currently running. To stop Apache2.0 to have to be root: Code:
shell> su - root Code:
shell> cd ~/temp If you followed the instructions in Step 4 then you are currently under ~/temp and is running as a normal user. Similar to Apache, you have to specify the options that you need to pass to the configure command in order to get PHP5 according to you needs. Code:
shell> wget http://us3.php.net/distributions/php-5.1.4.tar.bz2 Step 6: Configuring and Testing Apache2.2 and PHP5 You have to run the following commands as root First, setup you php.ini file. Code:
shell> cp ~/temp/php-51.4/php.ini-recommended /usr/local/lib/php.ini Third. tell Apache to parse certain extensions as PHP. Using your favorite text editor add 'AddType application/x-httpd-php .php' without the single quotes to /usr/local/apache2/conf/httpd.conf Fourth, write a simple test page that would show you information about your PHP. configurations. Code:
shell> cd /usr/local/apache2/htdocs |
All times are GMT -5. The time now is 10:47 PM. |