- sudo yum install httpd
sudo service httpd start
sudo yum install mysql-server sudo service mysqld start
sudo /usr/bin/mysql_secure_installation
sudo yum install php php-mysql
PHP Modules
PHP also has a variety of useful libraries and modules that you can add onto your server. You can see the libraries that are available by typing:
yum search php- Terminal then will display the list of possible modules. The beginning looks like this:
php-bcmath.x86_64 : A module for PHP applications for using the bcmath library php-cli.x86_64 : Command-line interface for PHP php-common.x86_64 : Common files for PHP php-dba.x86_64 : A database abstraction layer module for PHP applications php-devel.x86_64 : Files needed for building PHP extensions php-embedded.x86_64 : PHP library for embedding in applications php-enchant.x86_64 : Human Language and Character Encoding Support php-gd.x86_64 : A module for PHP applications for using the gd graphics library php-imap.x86_64 : A module for PHP applications that use IMAP
To see more details about what each module does, type the following command into terminal, replacing the name of the module with whatever library you want to learn about.
yum info name of the module Once you decide to install the module, type:
sudo yum install name of the module You can install multiple libraries at once by separating the name of each module with a space.
Congratulations! You now have LAMP stack on your droplet!
We should also set the processes to run automatically when the server boots (php will run automatically once Apache starts):
sudo chkconfig httpd on sudo chkconfig mysqld on
Kamis, 05 Maret 2015
Langkah Instalasi apache, php, mysql pada centos server 5
Ini bro langkah-langkah Instalasi apache, php, mysql pada centos server 5
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar