Instal Apache MariaDB dan PHP di IGN 9.x

Setelah kemarin sukses repair download ISO IGN D9.0 Mate Besar, akhirnya saya lanjut mengoprek untuk menginstal AMP (Apache, MariaDB dan PHP) -karena saya baru tertarik dengan PHP-
Kenapa bukan MySQL? Untuk jelasnya dapat dibaca secara singkat pada blog Mas Musa Amin.

Pastikan terkoneksi internet,
1. Instal MariaDB 10
#  yum install MariaDB-client MariaDB-server
#  service mysql start
#  /usr/bin/mysql_secure_installation

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!

Cleaning up…

All done! If you\’ve completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

2. Instal Apache dan PHP
#  yum install httpd php php-common
#  service httpd start
#  chkconfig –level 235 httpd on
3. Instal modul PHP
#  yum install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-odbc php-ldap
4. Mengaktifkan userdir (public_html)
Backup dulu file userdir.conf
#  cp -f /etc/httpd/conf.d/userdir.conf /etc/httpd/conf.d/userdir.conf.rpmnew
#  nano /etc/httpd/conf.d/userdir.conf
ganti dan sesuaikan dengan skrip di bawah ini :

UserDir enabled igos

UserDir public_html

AllowOverride All

Options Indexes Includes FollowSymLinks

Require all granted

Lalu save
#  service httpd restart
#  mkdir /home/igos/public_html
#  chmod 711 /home/igos
#  chown igos:igos /home/igos/public_html
#  chmod 755 /home/igos/public_html
5. Buat file info.php dengan isi skrip,
$  touch /home/igos/public_html/info.php

<?php
phpinfo();
?>

lalu simpan
6. Buka browser dan ketikkan http://localhost/~igos/info.php
Gambar-Layar
7. Instal phpmyadmin
#  yum install phpmyadmin
#  service httpd restart
Gambar-Layar-localhost - localhost | phpMyAdmin 3.5.8.1 - Google Chrome
8. Tinggal instal editor kesukaan Anda
9. Mari ngoding PHP 🙂

Keterangan :
#  –> terminal dengan akses root
$  –> terminal dengan akses user

Dicoba menggunakan netbook Zyrex SMK, ya walau sedikit ngelag karena cuma intel atom…hahaha

Referensi :
If Not True Then False (Apache+Userdir)
If Not True Then False (MariaDB)
Group Facebook IGOS Nusantara (login ke facebook dulu)

Advertisements

8 thoughts on “Instal Apache MariaDB dan PHP di IGN 9.x

      1. Akhirnya saya arahkan tidak ke ~igos/info.php
        tapi ke /var/www/html/info.php

        di point no.5 saya buat begini
        # touch /var/www/html/info.php
        # nano /var/www/html.info.php
        lalu mengisikan ini

        baru saya bisa masuk lembar tersebut

  1. Thanks so much for sharing all with the awesome info! I am looking forward to checking out far more posts! keecdeebkdff

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s