Kali ini saya akan memberikan langkah – langkah
install webserver,php5,mysql di linux fedora yang mudah dipahami. Dan semoga artikel ini bisa bermanfaat.
berikut langkah - langkahnya :
1. posisikan anda sebagai root di fedora anda
2. lalu buka terminal kasih command :
# yum install httpd
3. setelah terinstall maka hidupkan webservernya dengan command :
# /etc/init.d/httpd start
setelah itu buka browser ketik di url
localhost
maka akan tampil seperti gambar di bawah ini :
4. sekarang kita install php5 dengan command :
# yum install php
setelah instalasi selesai maka kita hidupkan servicenya dengan command :
# /etc/init.d/httpd restart
setalah itu buat file untuk mengetes apakah phpnya sudah terinstall
buat file seperti berikut kasih ekstensinya
.php
taruh di
/var/www/html karena direktori rootnya di html
biasanya direktori tersebut tidak bisa dikasih file karena permisionnya hanya boleh root yang menulis file ,maka dari itu anda harus memberi permisionnya dengan cara :
$sudo chmod 777 +R /var/www/html
apabila anda refres localhost/namafile anda maka akan tampil seperti gambar di bawah ini dan itu tandanya phpnya sudah terinstall
5. untuk install mysqlnya anda tinggal kash command :
#yum install mysql mysql-server
setalah terinstall maka kasih command :
#/etc/init.d/mysqld stop
setelah itu kasih password mysqlnya dengan cara :
#mysqladmin -u root password password_anda
setealh itu tinggal hidupkan mysqlnya :
#/etc/init.d/mysqld start
6. untuk install phpmyadminya :
#yum install phpmyadmin
lalu konfigurasikan
command :
#nano /etc/httpd/conf.d/phpMyAdmin.conf
# phpMyAdmin – Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
#usr/share/phpMyAdmin/>
# Order Deny,Allow
# Deny from All
# Allow from 127.0.0.1
# Allow from ::1
#</Directory>
usr/share/phpMyAdmin/setup/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</Directory>
# These directories do not require access over HTTP – taken from the original
# phpMyAdmin upstream tarball
#
usr/share/phpMyAdmin/libraries/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
usr/share/phpMyAdmin/setup/lib/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc. This may break your mod_security implementation.
#
#<IfModule mod_security.c>
# usr/share/phpMyAdmin/>
# SecRuleInheritance Off
# </Directory>
#</IfModule>
7. setelah itu restart webservernya :
#/etc/init.d/httpd restart