Firsly update packages on Centos
sudo yum update
1. Install Apache
sudo yum install httpd
sudo service httpd start
2. Install MySQL
sudo yum install mysql-server
sudo service mysqld start
You can set a root MySQL password with these command:
sudo /usr/bin/mysql_secure_installation
3. Install PHP
sudo yum install php php-mysql
PHP Modules
You can see the libraries that are available by typing:
yum search php-
Then terminal will show list of modules:
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
To see more detail:
yum info name_of_module
To install the module:
yum install name_of_module
Finally, restart your apache to see the effect for the changed:
sudo service httpd restart
No comments:
Post a Comment