How To Install Apache 2.0/PHP 4.3 and MySQL 5.0 on Redhat

Apache, LAMP, Linux, MySQL Add comments
301

• Uninstall previous versions of apache and mysql
• rpm -e httpd mysql
• Download and install RPM packages of MySQL’s server, client and dynamic shared libraries from mysql.com. do not opt to change the password on MySQL database unless you know what you’re doing (I don’t). If requested at first installation attempt, download the appropriate version of perl-dbi from rpmfind.net.
• rpm -ivh MySQL-client-5.0.20-0.glibc23.i386.rpm MySQL-server-5.0.20-0.glibc23.i386.rpm MySQL-shared-5.0.20-0.glibc23.i386.rpm
• Initialize mysql database after installation by typing..
• mysql_install_db
• Make sure /etc/ld.so.conf contains:
• /usr/lib
• Run ldconfig
• /sbin/ldconfig
• Download, unpack, and install Apache 2.0 from source at apache.org
• mv httpd-2.0.55.tar.gz /usr/local/; cd /usr/local/
• tar -xzvf httpd-2.0.55.tar.gz
• cd httpd-2.0.55
• ./configure –enable-so
• make
• make install
• Ensure Apache functions properly by starting, testing, and stopping it.
• /usr/local/apache2/bin/apachectl start
• http://localhost/

• /usr/local/apache2/bin/apachectl stop
• Download, unpack, and install the newest 4.4.x version of PHP from php.net
• mv php-4.4.1.tar.gz /usr/local/; cd /usr/local/
• tar -xzvf php-4.4.1.tar.gz; cd php-4.4.1/
• ./configure –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql
• make
• make install
• Add the following to your httpd.conf file:
• LoadModule php4_module modules/libphp4.so
• AddType application/x-httpd-php .php .phtml
• AddType application/x-httpd-php-source .phps
• Modify httpd.conf again, and then restart the httpd (/usr/local/apache2/bin/apachectl restart):
• DirectoryIndex index.html index.php
• To test your accomplishments, drop the following text into an index.php file within your DocumentRoot directory:
• < ?php
• phpinfo();
• ?>
• http://localhost/


Tags:, , , , , , , , , , , , , ,

Liked this article? To continue getting our latest free Howtos and Tutorials,
you can also grab the RSS feed or Subscribe to Techgurulive by Email

Not Getting



Leave a Reply



This Howtos posted under" Apache, LAMP, Linux, MySQL

How To Install Apache 2.0/PHP 4.3 and MySQL 5.0 on Redhat


Find Free Howtos and tutorials on apache, Linux, windows, php, Networking, MySQL, Cisco, open source, Nas, Virtualization, voip, vpn, email,send mail, lamp, security, SEO, squid, Anti virus, Backup, Database and many more