Czekając na odpowiedź chyba namieszałem jeszcze bardziej.
Usunąłem pakiety:
apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
z opcją purge, oraz:
php5 libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
Na dodatek wywaliłem folder apache2 z /etc/ i php5(?) z /etc/.
Tak czy inaczej zainstalowałem po raz kolejny:
apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
No i teraz już kompletnie nie wiem co się dzieje :-P
Proszę bardzo to moje pliki:
/etc/apache2/apache2.conf (leżę - jak mam skopiować z putty taki wielki plik?)
/etc/apache/sites-available/default
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
/var/log/apache2/error.log:
[Mon Jan 19 02:59:12 2009] [notice] Apache/2.2.3 (Debian) configured -- resuming normal operations
[Mon Jan 19 03:27:36 2009] [notice] caught SIGTERM, shutting down
[Mon Jan 19 03:30:06 2009] [notice] Apache/2.2.3 (Debian) configured -- resuming normal operations
[Mon Jan 19 03:53:45 2009] [notice] caught SIGTERM, shutting down
[Mon Jan 19 03:54:51 2009] [notice] Apache/2.2.3 (Debian) configured -- resuming normal operations
[Mon Jan 19 04:02:24 2009] [notice] caught SIGTERM, shutting down
[Mon Jan 19 04:15:19 2009] [notice] Apache/2.2.3 (Debian) configured -- resuming normal operations
[Mon Jan 19 13:10:01 2009] [notice] Apache/2.2.3 (Debian) configured -- resuming normal operations
[Mon Jan 19 15:56:27 2009] [notice] caught SIGTERM, shutting down
[Mon Jan 19 15:58:37 2009] [notice] Apache/2.2.3 (Debian) configured -- resuming normal operations
[Mon Jan 19 17:10:11 2009] [notice] caught SIGTERM, shutting down
[Mon Jan 19 17:10:11 2009] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 configured -- resuming normal operations
[Mon Jan 19 17:17:32 2009] [notice] caught SIGTERM, shutting down
[Mon Jan 19 17:17:34 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
PHP Warning: Module 'json' already loaded in Unknown on line 0
[Mon Jan 19 17:17:35 2009] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Mon Jan 19 17:29:42 2009] [notice] caught SIGTERM, shutting down
[Mon Jan 19 17:30:41 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Jan 19 17:30:44 2009] [notice] Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Mon Jan 19 17:33:10 2009] [notice] caught SIGTERM, shutting down
[Mon Jan 19 17:33:12 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Jan 19 17:33:13 2009] [notice] Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Mon Jan 19 17:36:39 2009] [notice] caught SIGTERM, shutting down
[Mon Jan 19 17:37:50 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Jan 19 17:37:51 2009] [notice] Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Mon Jan 19 17:45:31 2009] [notice] caught SIGTERM, shutting down
[Mon Jan 19 17:45:33 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Jan 19 17:45:34 2009] [notice] Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Mon Jan 19 18:15:36 2009] [notice] Graceful restart requested, doing restart
[Mon Jan 19 18:15:36 2009] [notice] Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Mon Jan 19 18:21:33 2009] [notice] caught SIGTERM, shutting down
[Mon Jan 19 19:10:13 2009] [notice] Apache/2.2.3 (Debian) configured -- resuming normal operations
root 4451 0.0 0.6 9352 2412 ? Ss 19:10 0:00 /usr/sbin/apache2 -k start
www-data 4452 0.0 0.4 9488 1908 ? S 19:10 0:00 /usr/sbin/apache2 -k start
www-data 4453 0.0 0.4 9488 1908 ? S 19:10 0:00 /usr/sbin/apache2 -k start
www-data 4455 0.0 0.4 9488 1908 ? S 19:10 0:00 /usr/sbin/apache2 -k start
www-data 4456 0.0 0.4 9488 1908 ? S 19:10 0:00 /usr/sbin/apache2 -k start
www-data 4457 0.0 0.4 9488 1908 ? S 19:10 0:00 /usr/sbin/apache2 -k start
root 4528 0.0 0.1 2880 760 pts/0 R+ 19:22 0:00 grep apache
apache2ctl -t
Syntax OK
/etc/apache2/sites-enabled
razem 0
Moim celem jest uruchomienie tego, żeby strona działała na zewnętrznym ip. Zwykła, prosta strona w htmlu.