Cara Mudah install Lamp ( Linux , Apache , MySQL , php ) di Server CentOS
Untuk install paket Lamp pada server CentOS silahkan ikuti step by step berikut ini :
Catatan : ~ Pada tutorial ini saya menggunakan Contoh ipv4 : 198.12.81.64Step 1 - Install Apache2
Apache merupakan perangkat lunak open source yang gratis untuk di install dan telah banyak di gunakan oleh para developers web. lebih dari 50% developer web di dunia ini telah menggunakan Apache sebagai web server. ~ Untuk install Apache di server CentOS silahkan ketik command :yum -y install httpd
chkconfig --levels 235 httpd on
service httpd startSilahkan buka di web browser favorit mu dan masukan ipv4 server mu, kemudian tekan Enter.
Step 2 - Install MySQL
MySQL adalah sistem manajemen database yang kuat dan dapat digunakan untuk mengatur dan mengambil data pada virtual server.~ Untuk install MySQL pada server centos silahkan ketik command :
yum -y install mysql mysql-server
chkconfig --levels 235 mysqld on
service mysql-server start~ Setting password root MySQL
mysql_secure_installationSelanjutnya akan ada pertanyaan - pertanyaan berikut ini . jawab y & Enter.
By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] y ... Success! By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL!
Step 3 - install PHP5
~ Untuk install php cukup dengan commandyum -y install php php-mysql~ Untuk chek Php silahkan ketik command
yum search php-~ Membuat halaman info php di web browser
vi /var/www/info.php~ Tekan i ( untuk insert ) Lalu masukan script berikut ini
<?php phpinfo(); ?>Tekan "Esc : wq " untuk keluar dan simpan .
Untuk melihat info php silahkan buka web browser masuka ipv4/info.php Contoh : http://45.32.190.153/info.php
Hasilnya

Selesai.
Selain dengan menggunakan ipv4/info.php kamu juga bisa menggunakan domain. Contoh : www.sites.com/info.phpBACA JUGA :
0 Komentar untuk " Cara Mudahinstall Lamp ( Linux , Apache , MySQL , php ) di Server CentOS "