Hi Falco I have install geo ip with help from your howto, I use on server php5 and i become on browser an error, see here Code: Fatal error: Call to undefined function apache_note() in /var/homes/web194/web/geo.php on line 4 geo ip was enbled and after installation i have restart apache server
Similar error I get a similar error. Here is the details: I get an error message while trying to follow these procedures: http://www.howtoforge.com/intrusion-...on-ubuntu-7.10 Here is the error: Fatal error: Call to undefined function mysql_connect() in /var/www/adodb5/drivers/adodb-mysql.inc.php on line 363 Here is the url I am trying to access: http://my.ip.address/web/base-1.3.9/...p?action=check ( ofcourse I removed my ip before pasting here ) Is there any logs I can look at to get more information about the issue? Thanks
The mysql error is because you dont have the php-mysql extension and the other one is possibly similar the function is not loaded.
Code: ###################################### # Vhost: dev.au.de:80 ###################################### # # <VirtualHost 88.198.9.226:80> SuexecUserGroup web194_dev web194 ServerName dev.au.de:80 ServerAdmin [email protected] DocumentRoot /var/www/web194/web DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm Alias /cgi-bin/ /var/www/web194/cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /var/www/web194/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 <Directory /var/www/web194/web> suPHP_Engine on suPHP_UserGroup web194_dev web194 AddHandler x-httpd-php .php .php3 .php4 .php5 suPHP_AddHandler x-httpd-php SetEnv php_safe_mode Off </Directory> Alias /error/ "/var/www/web194/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /var/www/web194/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web194/user/$1/web/$3 </VirtualHost> #
php extensions for base Yes topdog you are right. I found another thread that talked about this. They recomended that I update the php.ini file with changing extension_dir line from "./" to "/usr/lib/php/" which I did but I still get the same error. ( I made sure to restrat apache2 after every update - Not sure if it is required ) The other item I wanted to mention is the original procedures under step 13 ask for finding the line "base_header" and change it to "header" in file: /var/www/web/base-1.3.8/setup/setup1.php but I can not find that line. Could this be the issue?
i don't use suphp but i got the same error. i've install apache2 with suexec with help from your howto and extended with mod-spamhaus and mod_defensible. thats all ... but the error laugh about me.
Helly falko, my vhost-configuration is the following (same as your howto): Code: <VirtualHost *> ServerName DOMAIN.de ServerAdmin [email protected] DocumentRoot /var/www/USER/DOMAIN/web/ <IfModule mod_fcgid.c> SuexecUserGroup USER GROUP PHP_Fix_Pathinfo_Enable 1 <Directory /var/www/USER/DOMAIN/web/> Options +ExecCGI AllowOverride All AddHandler fcgid-script .php FCGIWrapper /var/www/USER/DOMAIN/conf/php-fcgi-starter .php Order allow,deny Allow from all </Directory> </IfModule> LogLevel warn ErrorLog /var/www/USER/DOMAIN/log/error.log CustomLog /var/www/USER/DOMAIN/log/access.log combined ServerSignature Off </VirtualHost> The fields DOMAIN, USER and GROUPS are replaced. The regular content run without problems - only the geoip-"testsite". Here are the logs: apache - error.log: empty apache - access.log: WHY an 500er - Error-Code? Code: 84.139.236.188 - - [08/May/2009:19:09:22 +0200] "GET /geoip.php HTTP/1.1" 500 20 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)" modsecurity - debug.log: empty modsecurity - audit.log: I hope this infos help you? Best regards Moestchen
Hello falko, i've disabled mod_security without changes. The modsecurity-log is empty and at the apache-access-log is "the old" entry: If I call phpinfo.php I see in the output entries about geoip: Thanks for your help