Fedora 8 ve public_html
Bugün yeniden sistemi kurdum. İlk iş olarak şu public_html sorununu gidereyim dedim. Öncesinde /var/www/html klasörünün iznini 777 yaparak kullanıyordum. Bir türlü public_html klasörü içerisinde çalışamamıştım. Yalnız bu sefer kurulumdan sonraki ayarlarda selinuxu kapattım.
Bu işlemi gerçekleştirmek için ilk olarak kullanıcı dizini içerisinde public_html adında bir klasör oluşturdum. Ardından:
$chmod -R 755 public_html
komutunu kullandım. Bir üst dizine geçip (home) kendi kullanıcı klasörümün iznini:
$chmod 711 omer
komutu ile değiştirdim. Bu işlemin ardından konsolda root hakları ile:
#gedit /etc/httpd/conf/httpd.conf
komutunu kullanarak ayar dosyasını düzenleme için açtım ve gerekli kısımlarını aşağıdaki gibi düzenledim:
<ifmodule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disable
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
UserDir public_html
</ifmodule>
<directory /home/*/public_html>
AllowOverride Options FileInfo AuthConfig Limit
Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
<limit GET POST OPTIONS>
Order allow,deny
Allow from all
</limit>
<limitexcept GET POST OPTIONS>
Order deny,allow
Allow from all
</limitexcept>
</directory>
Bu düzenleme işleminden sonra:
#/etc/init.d/httpd restart
komutu ile apache yi yeniden başlattım. Böylelikle http://localhost/~omer/ sayfasını görüntüleyebildim. Şu adresede göz atabilirsiniz.