apache
Apache
Zkontrolovat pritomnost balicku se serverem:
yum list '*http*'
Nainstalovat balicek, napriklad:
su yum install httpd
Spustit httpd server:
su /etc/init.d/httpd start stop status restart ... start a stop reload ... server jen nacte nova data
Zkontrolovat bezici server na adrese http://localhost,
pripadne pridat data do /var/www/html
Konfiguracni soubor /etc/httpd/conf/httpd.conf
<IfModule mod_userdir.c> # UserDir disable UserDir public_html </IfModule>
<Directory /local/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI AddHandler cgi-script .cgi .pl .py </Directory>
Co kdyz potrebujeme puvodni konfiguracni soubor
Zjistit, ve kterem balicku se soubor nachazi
rpm -qf /etc/httpd/conf/httpd.conf
Stahnout balicek http://sunsite.mff.cuni.cz/MIRRORS/fedora.redhat.com/linux/releases/8/Fedora/i386/os/Packages/httpd-2.2.6-3.i386.rpm
Pomoci mc se podivat dovnitr balicku do CONTENTS.cpio/etc/httpd/conf
Pristupova prava pro uzivatele
Zkontrolvat, pristup do domaciho adresare a adresare public_html
cd /local/uzivatel mkdir public_html su chmod a+rx /local chmod a+rx /local/uzivatel chmod a+rx /local/uzivatel/public_html chown uzivatel:uzivatel /local/uzivatel chown uzivatel:uzivatel /local/uzivatel/public_html
Zkontrolovat http://localhost/~uzivatel
apache.txt · Last modified: 2008/04/02 16:05 by 127.0.0.1