lysyr Napisano Październik 18, 2005 Zgłoszenie Share Napisano Październik 18, 2005 Witam co trzeba zrobic zeby php zadzialalo z httpd? zainstalowalem paczki php php-devel... zmienilem w /etc/httpd/conf/httpd.conf wpis ze ma tez indexowac pliki z rozszerzeniem php ale dalej nie dziala?!? cos przeoczylem??!? Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
gajownik Napisano Październik 18, 2005 Zgłoszenie Share Napisano Październik 18, 2005 Witam co trzeba zrobic zeby php zadzialalo z httpd? yum install php httpd service httpd start Paczkę php-devel mozesz wywalić. zmienilem w /etc/httpd/conf/httpd.conf wpis ze ma tez indexowac pliki z rozszerzeniem php ale dalej nie dziala?!? Cofnij tę zmianę, bo jest całkowicie niepotrzebna. Odpowiedni wpisy są już w pliku /etc/httpd/conf.d/php.conf (plik konfiguracyjny Apache “includuje” pliki z /etc/httpd/conf.d) cos przeoczylem??!? Tak, logi → /var/log/httpd/error_log Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
lysyr Napisano Październik 18, 2005 Autor Zgłoszenie Share Napisano Październik 18, 2005 [Tue Oct 18 20:25:51 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Oct 18 20:25:51 2005] [notice] Digest: generating secret for digest authentication ... [Tue Oct 18 20:25:51 2005] [notice] Digest: done [Tue Oct 18 20:25:51 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Tue Oct 18 20:25:51 2005] [notice] LDAP: SSL support unavailable [Tue Oct 18 20:25:51 2005] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations [Tue Oct 18 20:26:02 2005] [error] [client 212.14.49.35] Directory index forbidden by rule: /var/www/html/ [Tue Oct 18 20:26:02 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 20:55:44 2005] [error] [client 212.14.49.35] Directory index forbidden by rule: /var/www/html/ [Tue Oct 18 20:55:45 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 20:56:46 2005] [error] [client 212.14.49.35] Directory index forbidden by rule: /var/www/html/ [Tue Oct 18 20:56:46 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 20:56:51 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 20:56:53 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 20:56:57 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 20:57:04 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 21:04:30 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 21:04:36 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 21:04:45 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 21:04:50 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 21:04:53 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 21:12:50 2005] [notice] caught SIGTERM, shutting down [Tue Oct 18 21:12:55 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Oct 18 21:12:56 2005] [notice] Digest: generating secret for digest authentication ... [Tue Oct 18 21:12:56 2005] [notice] Digest: done [Tue Oct 18 21:12:56 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Tue Oct 18 21:12:56 2005] [notice] LDAP: SSL support unavailable [Tue Oct 18 21:12:56 2005] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations [Tue Oct 18 21:13:03 2005] [error] [client 212.14.49.35] (13)Permission denied: access to /phpmyadmin/ denied [Tue Oct 18 21:13:03 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 21:13:08 2005] [error] [client 212.14.49.35] (13)Permission denied: access to /phpmyadmin/ denied [Tue Oct 18 21:13:08 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 21:13:15 2005] [error] [client 212.14.49.35] (13)Permission denied: access to /phpmyadmin/ denied [Tue Oct 18 21:13:15 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 21:19:43 2005] [notice] Digest: generating secret for digest authentication ... [Tue Oct 18 21:19:43 2005] [notice] Digest: done [Tue Oct 18 21:19:43 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Tue Oct 18 21:19:43 2005] [notice] LDAP: SSL support unavailable [Tue Oct 18 21:19:43 2005] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations [Tue Oct 18 21:19:48 2005] [error] [client 212.14.49.35] (13)Permission denied: access to /phpmyadmin/ denied [Tue Oct 18 21:19:48 2005] [error] [client 212.14.49.35] File does not exist: /var/www/html/favicon.ico [Tue Oct 18 21:43:37 2005] [notice] caught SIGTERM, shutting down [Tue Oct 18 21:44:56 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Oct 18 21:44:56 2005] [notice] Digest: generating secret for digest authentication ... [Tue Oct 18 21:44:56 2005] [notice] Digest: done [Tue Oct 18 21:44:56 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Tue Oct 18 21:44:56 2005] [notice] LDAP: SSL support unavailable [Tue Oct 18 21:44:57 2005] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations [Tue Oct 18 21:59:22 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Oct 18 21:59:23 2005] [notice] Digest: generating secret for digest authentication ... [Tue Oct 18 21:59:23 2005] [notice] Digest: done [Tue Oct 18 21:59:23 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Tue Oct 18 21:59:23 2005] [notice] LDAP: SSL support unavailable [Tue Oct 18 21:59:23 2005] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations [Tue Oct 18 23:09:51 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Oct 18 23:09:51 2005] [notice] Digest: generating secret for digest authentication ... [Tue Oct 18 23:09:51 2005] [notice] Digest: done [Tue Oct 18 23:09:51 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Tue Oct 18 23:09:51 2005] [notice] LDAP: SSL support unavailable [Tue Oct 18 23:09:52 2005] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations [Tue Oct 18 23:13:27 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Oct 18 23:13:28 2005] [notice] Digest: generating secret for digest authentication ... [Tue Oct 18 23:13:28 2005] [notice] Digest: done [Tue Oct 18 23:13:28 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Tue Oct 18 23:13:28 2005] [notice] LDAP: SSL support unavailable [Tue Oct 18 23:13:28 2005] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
gajownik Napisano Październik 18, 2005 Zgłoszenie Share Napisano Październik 18, 2005 [Tue Oct 18 21:13:08 2005] [error] [client 212.14.49.35] (13)Permission denied: access to /phpmyadmin/ denied Wszystko podane jak na tacy :-) Katalog nie ma zapewne poprawnego kontekstu: chcon -R -t httpd_sys_content_t /phpmyadmin Poczytaj sobie o SELinux → http://fedora.redhat.com/docs/selinux-apache-fc3/ oraz `man httpd_selinux'. OT: Radziłbym jednak nie śmiecić w systemie. Do takich rzeczy został stworzony katalog /srv → http://www.pathname.com/fhs/pub/fhs-2.3.ht...ROVIDEDBYSYSTEM Wrzucanie katalgów bezpośrednio do / to nienajlepszy pomysł. Zawse też możesz umieścić pliki w /var/www/html ;-) Jak chcesz korzystać jeszcze z MySQL, to doinstaluj “php-mysql”. Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się