oto config aktualny:
#
ServerRoot "/etc/apache2"
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#<IfModule !mpm_winnt.c>
#<IfModule !mpm_netware.c>
LockFile /var/lock/apache2/accept.lock
#</IfModule>
#</IfModule>
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
DefaultType text/plain
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
# Include all the user configurations:
Include /etc/apache2/httpd.conf
# Include ports listing
Include /etc/apache2/ports.conf
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# Define an access log for VirtualHosts that don't define their own logfile
CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined
# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.
# Include generic snippets of statements
Include /etc/apache2/conf.d/
# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
#HostnameLookups Off
ServerName localhost
to jest ten z paczki z apache (tutaj usunąłem większość zschashowanych linii żeby było krócej), dopisałem tylko servername. Próbowałem ustawić usera i grupe ale też bez efektu.
Na 127.0.0.1 próbowałem już wcześniej i też nie działa.
jak wpisze "ps fax|grep httpd" to dostaje (na roocie i na userze):
debian:/home/intermak# ps fax|grep httpd
5478 pts/1 S+ 0:00 \_ grep httpd
intermak@debian:~$ ps fax|grep httpd
5610 pts/2 S+ 0:00 \_ grep httpd
[ Dodano: 2008-08-05, 17:21 ]
już zrobiłem, okazało się, że w sysv-rc-conf miałem wyłączoną jakąś usługę za to odpowiedzialną.
W każdym razie dzięki za starania, najgorsze jest to, że przez ten czas co nie działało forum mordowałem się na widowsie, a dziś jak się zmobilizowałem żeby to zrobić to forum znów sprawne, trzeba się w czepku urodzić żeby mieć takie szczęście jak ja.
Miałem jeszcze problem z php (chciało zapisywać pliki) ale wystarczyło wpisać "a2enmod php5".