Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

20080807

httpd.conf | php module

beside LoadModule php5_module libexec/apache22/libphp5.so



Edit Aug 12 2008:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

20080720

Failed to enable the 'httpready' Accept Filter

[bambino@bambino ~]$ sudo apachectl start
[Mon Jul 21 14:42:39 2008] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
[bambino@bambino ~]$ sudo kldload accf_http
[bambino@bambino ~]$ sudo apachectl restart
[bambino@bambino ~]$

20070918

Apache2 fuss with domain name

# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName


Add a line in apache2.conf:

ServerName "whatevername"

20070118

apache, authentication, htaccess, htpasswd

Create a file .htaccess in the web directory

#.htaccess
AuthUserFile /home/bambino/public_html/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
require user bambino


To create a user, `htpasswd -c .htpasswd bambino`