Untuk melihat cara menginstall fedora minimalis klik di sini ( fedora minimalis )
Setelah Proses Installasi Fedora 17 minimalis kta Konfigurasi WebServer
1. Login ke Fedora 17
Username : root
Password : qwerty
8. Install php
Setelah Proses Installasi Fedora 17 minimalis kta Konfigurasi WebServer
1. Login ke Fedora 17
Username : root
Password : qwerty
2.
Setting
firewall
[root@mukhlisin~]# setup
Pilih FireWall Configuration, lalu ubah dari
Firewall [*] Enabled
Menjadi
Firewall [ ] Enabled
3. Mematikan Fungsi Selinux
[root@mukhlisin~]#
vi
/etc/selinux/config
Ganti
SELINUX=enforcing
Menjadi
##SELINUX=enforcing
SELINUX=disabled
*ket. Biarkan
configurasi sebelumnya tapi tambahkan ## aagr tidak dieksekusi oleh system
untuk mrngatisipasi kesalahan.
4. Setting IP static
[root@mukhlisin~]#
vi
/etc/sysconfig/network-scripts/ifcg-p3p1
Ubah
dari
UUID=”baac2db5-9215-49d3-8946-3ee7402878c1”
NM_CONTROLLED=”yes”
HWADDR=”00:27:0E:2F:47:50”
BOOTPROTO=”dhcp”
DEVICE=”p33p1”
ONBOOT=”yes”
Menjadi
##UUID=”baac2db5-9215-49d3-8946-3ee7402878c1”
##NM_CONTROLLED=”yes”
##HWADDR=”00:27:0E:2F:47:50”
##BOOTPROTO=”dhcp”
##DEVICE=”p33p1”
##ONBOOT=”yes”
DEVICE=p3p1
HWADDR=
00:27:0E:2F:47:50 ( berbeda sesuai Pc
masing-masing)
BOOTPROTO=static
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
NAME=System
p3p1
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
IPADDR=192.168.1.95
(IP addres bisa ditentukan sendiri)
GATEWAY=192.168.1.1
DNS1=202.90.194.163
DNS2=202.90.194.162
Simpan (:wq) Lalu
restart network dengan mengetik:
[root@mukhlisin~]#
systemctl
start network.service
5. Ubah Konfigurasi Yum
Untuk
mempercepat downloading secara otomatis saat yum install maka arahkan proses
download ke server nasional yaitu “kambing.ui.ac.id”.
[root@mukhlisin~]#
vi
/etc/yum.repos.d/fedora.repo
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releaserver/Everything/$basearch/os/
Menjadi
#baseurl=http://kambing.ui.ac.id/fedora/releases/$releaserver/Everything/$basearch/os/
*ket.
a)
dengan mengganti kata “download.fedoraproject.org/pub”
dengan “kambing.ui.ac.id” dan menghapus
kata “linux”.
b)
masih ada beberapa baris yang harus di
ubah menjadi seperti ini.
c)
berlaku juga untuk
[root@mukhlisin~]# vi
/etc/yum.repos.d/fedora-updates.repo
Kemudian save (:wq)
6.
Update system
[root@mukhlisin~]# yum –y update
*Keterangan : Kecepatan Update Tergantung Dengan Jaringan Internet Komputer Tersebut
Setelah slesai mengUpdate Restart System dengan Printah :
[root@mukhlisin~]# init 6
7. Install HTTPD(apache)
[root@mukhlisin~]#
yum -y
install httpd
Konfigurasi HTTPD
[root@mukhlisin~]#
vi /etc/httpd/conf/httpd.conf
Edit
####ServerName www.example.com:80
Menjadi
ServerName 192.168.1.95:80
Edit
UserDir
disabled
#
# To enable requests to /~user/ to serve
the user's public_html
# directory, remove the "UserDir
disabled" line above, and uncomment
# the following line instead:
#
#UserDir public_html
Menjadi
#UserDir disabled
#
# To enable requests to /~user/ to serve
the user's public_html
# directory, remove the "UserDir
disabled" line above, and uncomment
# the following line instead:
#
UserDir public_htm
Edit
####ErrorLog
logs/error_log
Menjadi
ErrorLor
/var/log/httpd/error_log
Edit
####CustomLog logs/access_log combined
Menjadi
CustomLog /var/log/httpd/access_log combined
Edit
Alias /error/ "/var/www/error/"
Menjadi
#Alias /error/ "/var/www/error/"
Simpan (:wq)
Lalu restart httpd
[root@mukhlisin~]#
systemctl
restart httpd.service
8. Install php
[root@mukhlisin~]#
yum
–y install php
[root@mukhlisin~]#
yum
–y install php-domxml
[root@mukhlisin~]#
yum
–y install php-gd
[root@mukhlisin~]#
yum
–y install php-imap
[root@mukhlisin~]#
yum
–y install php-ldap
[root@mukhlisin~]#
yum
–y install php-pear
[root@mukhlisin~]#
yum
–y install postgresql
[root@mukhlisin~]#
yum
–y install php-mysql
9. Lalu
edit php.ini
[root@mukhlisin~]#
vi
/etc/php.ini
edit
menjadi
File_uploads= On
Short_open_tag= On ( pada fedora selain 17 adanya
“short_open= On” )
Register_argc_argv= Off ( pada fedota selain 17
adanya “register_global= Off” )
Lalu simpan (:wq)
Kemudian restart httpd dengan perintah:
[root@mukhlisin~]# systemctl
restart httpd.service
10. Test Apache
*Ket: Jika Test apache berhasil Berarti tidak ada kesalahan Selanjutnya:
11. Install mysql
[root@mukhlisin~]# yum
–y install mysql
[root@mukhlisin~]# yum
–y install mysql-server
Lalu
konfigur mysql dengan perintah
[root@mukhlisin~]# /sbin/service mysqld start
Redirecting to /bin/systemctl start mysqld.service
Masukkan
perintah:
[root@mukhlisin~]# #mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPTS
IS RECOMMENDED DOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ
EACH STEP CAREFULLY!
In order to log into MySQL to secure it,
we’ll need the current password for the root user. If you’ve just installed
MySQL, and you haven’t set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password
for root (enter for none): “tekan enter”
Ok, successfully used
password, moving on
Setting the root
password ensures that nobody can log into the MySQL root user witout the proper
authorization
Set root password?
[Y/n] “tekan y, lalu enter”
New password: (
ketikkan password baru “dukuhmaja”)
Re-enter new password:
( ketikkan lagi password barunya “123”)
Password updated
successfully!
Reloading privilege
tables…
… Success !
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 anymous users?
[Y/n] “ketik y, lalu enter”
… 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] “ketik y, lalu enter”
… Success!
By default, MySQL comes
with a database named ‘test’ that anyone can acces. 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] “ketik y’lalu enter”
Dropping test
database..
…
Success!
Removing privilege 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] “tekan y, lalu enter”
All done! If you’ve
completed all the above steps, your
MySQL installation should now be secure.
Thanks for using MySQL!
Test
MySQL dengan perintah
[root@mukhlisin~]# mysql
–u root –p
Enter password:
( ketikkan password “dukuhmaja” )
Welcome to MySQL
monitor. Commands end with ; or /g
Your MySQL
connection id is 10
Server version:
5.5.25a MySQL Community Server (GPL)
Copyright ©
2000, 2013, oracle and/or its affliates. All rights reserved.
Oracle is a
registered trademark of Oracle Corporation and/or ist affliates. Other names
may be trademarks of theirs respective owners.
Type ‘help;’ or
‘\h’ for help. Type ‘\c’ to clear the current input statement.
Mysql>
Lalu
keluar dengan mengetikkan
Mysql>quit
12.
Buat
phpinfo.php
[root@mukhlisin~]# vi
/etc/var/www/html/ phpinfo.php
Tuliskan
<?php
Phpinfo();
?>
Kemudian Save (:wq)
13.
Test
phpinfo.php
Kunjungi http://192.168.1.95/phpinfo
14.
Install
phpMyAdmin
[root@mukhlisin~]# yum -y install phpMyAdmin
salin direktori phpMyAdmin ke /var/www/html
[root@mukhlisin~]# cp -r
/usr/share/phpMyAdmin/ /var/www/html/
Edit
configurasi.default.php
[root@mukhlisin~]# vi
/var/www/html/phpMyAdmin/libraries/config.default.php
Edit
dari
-$cfg[‘Servers’][$i][‘auth_type’] = ‘cookie’;
Menjadi
-$cfg[‘Servers’][$i][‘auth_type’] = ‘http’;
Edit phpMyAdmin.conf
[root@mukhlisin~]# vi /etc/httpd/conf.d/phpMyAdmin.conf
Edit
##Alias /phpMyAdmin /usr/share/phpMyAdmin
##Alias /phpmyadmin /usr/share/phpMyAdmin
##<Directory /usr/share/phpMyAdmin/>
##
Order Deny,Allow
## Deny
from All
## Allow
from 127.0.0.1
## Allow
from ::1
##</Directory>
Menjadi
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory /usr/share/phpMyAdmin/>
Order
Deny,Allow
## Deny
from All
## Allow
from 127.0.0.1
Allow
from all
</Directory>
Edit
##<Directory /usr/share/phpMyAdmin/libraries/>
## Order
Deny,Allow
## Deny from
All
## Allow
from None
##</Directory>
Menjadi
<Directory /usr/share/phpMyAdmin/libraries/>
Order
Deny,Allow
# Deny from
All
Allow from
All
</Directory>
15. Tes phpMyAdmin
Browser ,lalu kunjungi http://192.168.1.95/phpMyAdmin
Isi kan:
Username :root
Password : (password mysql)
Untuk Dapat dI Install CMS Rubah Konfigurasi :
[root@mukhlisin~] vi /etc/php.ini
Ubah dari
Output_buffering
= 4096
Menjadi
Output_buffering
= Off
Laul Restart httpd dan mysqld
Tidak ada komentar:
Posting Komentar