memindahkan document root httpd fedora 18

16 views
Skip to first unread message

Rijal Asep Nugroho

unread,
Apr 1, 2013, 4:42:14 AM4/1/13
to fedo...@googlegroups.com
halo semua,

saya pakai fedora 18.  mau memindahkan documen root dari /var/www/html ke /home/jacky/data. folder /home/jacky/data sudah ada.

di file /etc/httpd/conf/httpd.conf  saya edit bagian ini :
DocumentRoot "/home/jacky/data"
<Directory "/home/jacky/data">

selinux saya matikan. di file /etc/selinux/config, SELINUX=disabled


tapi ketika saya coba akses localhost yang muncul halaman 403.
Forbidden
You don't have permission to access / on this server.

saya coba chmod -vR 0777 /home/jacky/data. tetap saja error halaman 403.

mohon bantuannya. terimakasih.

Dichi Al Faridi

unread,
Apr 1, 2013, 4:54:18 AM4/1/13
to fedo...@googlegroups.com

Set jacky agar satu grup sama apache. Set /home/jacky jadi 755

Terima Kasih

Salam hangat,

Dichi Al Faridi
---------------
Blog: http://www.alfaridi.info/
About Me : http://www.about.me/alfaridi

--
 
---
Anda menerima pesan ini karena Anda berlangganan grup "fedora-id" dari Grup Google.
Untuk berhenti berlangganan dan berhenti menerima email dari grup ini, kirim email ke fedora-id+berhenti berlan...@googlegroups.com .
Untuk opsi lainnya, kunjungi https://groups.google.com/groups/opt_out.
 
 

ns

unread,
Apr 1, 2013, 5:13:34 AM4/1/13
to fedo...@googlegroups.com
Tambahan entri di /etc/httpd/conf/httpd.conf

# Tempatkan di bagian bawah
<Directory "/home/jacky/data">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all  
</Directory>

Catatan:
(1)
JANGAN pernah memakai chmod 777 untuk
direktori berkas di web server

(2)
Lebih informatif bila memakai nama direktori public_html,
menjadi /home/jacky/public_html



2013/4/1 Rijal Asep Nugroho <rijal.ase...@gmail.com>

--

Rijal Asep Nugroho

unread,
Apr 1, 2013, 9:57:39 PM4/1/13
to fedo...@googlegroups.com
thanks. sudah terpecahkan sesuai petunjuk bro Dichi.


2013/4/1 ns <sur...@gmail.com>



--
Rijal Asep Nugroho,
Senior IT Consultant
Reply all
Reply to author
Forward
0 new messages