Comments on Installing Apache2 With PHP5 And MySQL Support On CentOS 5.6 (LAMP)

Installing Apache2 With PHP5 And MySQL Support On CentOS 5.6 (LAMP) LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a CentOS 5.6 server with PHP5 support (mod_php) and MySQL support.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: slapper

From Centos 5.6 you have the option to install php 5.3 (  specifically 5.3.3 ). You can install it by typing :

yum install php53

More packages are availabe

================= Matched: php53 ====================

php53.i386 : PHP scripting language for creating dynamic web sites

php53-bcmath.i386 : A module for PHP applications for using the bcmath library

php53-cli.i386 : Command-line interface for PHP

php53-common.i386 : Common files for PHP

php53-dba.i386 : A database abstraction layer module for PHP applications

php53-devel.i386 : Files needed for building PHP extensions

php53-gd.i386 : A module for PHP applications for using the gd graphics library

php53-imap.i386 : A module for PHP applications that use IMAP

php53-intl.i386 : Internationalization extension for PHP applications

php53-ldap.i386 : A module for PHP applications that use LDAP

php53-mbstring.i386 : A module for PHP applications which need multi-byte string handling

php53-mysql.i386 : A module for PHP applications that use MySQL databases

php53-odbc.i386 : A module for PHP applications that use ODBC databases

php53-pdo.i386 : A database access abstraction module for PHP applications

php53-pgsql.i386 : A PostgreSQL database module for PHP

php53-process.i386 : Modules for PHP script using system process interfaces

php53-pspell.i386 : A module for PHP applications for using pspell interfaces

php53-snmp.i386 : A module for PHP applications that query SNMP-managed devices

php53-soap.i386 : A module for PHP applications that use the SOAP protocol

php53-xml.i386 : A module for PHP applications which use XML

php53-xmlrpc.i386 : A module for PHP applications which use the XML-RPC protocol

By: robocatsrule

The "mysql_secure_installation" step failed with the error:

-------------------------------------------------------------------

Remove anonymous users? [Y/n] Y

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

... Failed!

-------------------------------------------------------------------

To solve this problem change line (~50) in the script: /usr/bin/mysql_secure_installation

from

echo "password=$rootpass"

to

echo "password='$rootpass'"

After this change, no problems!

The original reference for this bug fix is at: http://bugs.mysql.com/bug.php?id=48031

I hope this saves others some time.

By: robocatsrule

After the apache2 steps, open the "www" ports in the firewall using:

 system-config-securitylevel