patryk@patryk-ThinkPad-R61:~$ sudo /etc/init.d/apache2 restart
apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Syntax error on line 16 of /etc/apache2/mods-enabled/php5.conf: </IfModule> without matching <IfModule> section
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
zajrzyj do wspomnianych w błędzie plików ( przede wszystkim plik php5.conf ) i zobacz, o co chodzi z tym błędem - możesz go to wkleić. Z treści wygląda na to, że Dyrektywa <IfModule> została z jakiegoś powodu zakomentowana.
"Never argue with idiot. He will drag you down to his level and then beat with experience."
Wrzuciłeś nie ten plik co trzeba. Wrzuć zawartość pliku /etc/apache2/mods-enabled/php5.conf , bo tam jest błąd (w apache.conf ten plik jest dołączany, dlatego też jest wymieniony w błędzie)
"Never argue with idiot. He will drag you down to his level and then beat with experience."
IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>
</IfModule>
ok serwe sie urchomił i mam status okej, lecz znowu jakis problem, (na opensusei tego nie bylo ale dalej)
po wpisaniu localhost nie wyświetla mi it Work ani nic innego, ani nawet jak wrzucę swoje działające pliki php, dodam ze jak postawię zły adres to pokaże błąd
jeśli pokazała Ci się pusta strona, to znaczy że serwer działa, ale z jakiegoś powodu nie zaserwował Ci danych. Zajrzyj do /var/log/apache2/error.log (koniec pliku) i zobacz, czy nie ma tam jakichś informacji o błędach.
"Never argue with idiot. He will drag you down to his level and then beat with experience."
tak są jakieś błędy lecz nie mam pojęcia jak je naprawić
[Fri May 06 10:30:10 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/ming.so' - /usr/lib/php5/20090626+lfs/ming.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/xsl.so' - /usr/lib/php5/20090626+lfs/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Fri May 06 10:30:11 2011] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.5 with Suhosin-Patch configured -- resuming normal operations
[Fri May 06 10:30:55 2011] [error] [client 127.0.0.1] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Fri May 06 10:30:55 2011] [error] [client 127.0.0.1] PHP Fatal error: Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Fri May 06 10:31:02 2011] [error] [client 127.0.0.1] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Fri May 06 10:31:02 2011] [error] [client 127.0.0.1] PHP Fatal error: Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0