Paket yang dibutuhkan Apache, MySQL, dan PHP minimal yang terinstall, jika anda belum menginstall paket tersebut nah ini dia caranya. Instal paket-paket berikut dengan menggunakan perintah yum;
Code:
yum install gettext httpd mysql mysql-server perl php php-mysql php-xml php-imap php-mbstring php-mcrypt php-pecl-Fileinfo php-pecl-memcache php-pear-DB php-pear-File php-pear-Log php-pear-Mail-Mime php-pear-Auth-SASL php-pear-Date php-pear-HTTP-Request php-pear-Mail php-pear-Net-Sieve php-pear-Net-Socket php-pear-Net-SMTP openssl perl-Net-SSLeay php-devel gcc gd php-gd
Code:
service httpd start
service mysqld start
chkconfig --levels 235 httpd on
chkconfig --levels 235 mysqld on
Code:
chkconfig --list
Code:
httpd 0:off 1:off 2:on 3:on 4:off 5:on 6:off
mysqld 0:off 1:off 2:on 3:on 4:off 5:on 6:off
untuk memperlengkap paket anda jg harus menginstall MySQL Secure dengan menjalankan script mysql_secure_installation setelah anda melakukan instalasi MySQL, untuk menghilangkan Database Test, memberikan password root MySQL, menghapus remote access dan anonymous users.
Code:
mysql_secure_installation
...
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Set root password? [Y/n] Y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
Remove anonymous users? [Y/n] Y
... Success!
Disallow root login remotely? [Y/n] Y
... Success!
Remove test database and access to it? [Y/n] Y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reload privilege tables now? [Y/n] Y
... Success!
Code:
cd /var/www/html/
vi inpo.php
Code:
<?php phpinfo(); >