#1  
Old 14th March 2008, 23:00
planet_fox planet_fox is offline
Senior Member
 
Join Date: Jun 2006
Location: Munic
Posts: 308
Thanks: 14
Thanked 8 Times in 6 Posts
Send a message via Skype™ to planet_fox
Default Geo Ip and php5

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
Reply With Quote
Sponsored Links
  #2  
Old 15th March 2008, 18:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Can you post the Apache configuration of the web194 vhost?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 9th April 2008, 11:04
darvish darvish is offline
Junior Member
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #4  
Old 9th April 2008, 11:09
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

The mysql error is because you dont have the php-mysql extension and the other one is possibly similar the function is not loaded.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #5  
Old 9th April 2008, 14:36
planet_fox planet_fox is offline
Senior Member
 
Join Date: Jun 2006
Location: Munic
Posts: 308
Thanks: 14
Thanked 8 Times in 6 Posts
Send a message via Skype™ to planet_fox
Default

Quote:
Can you post the Apache configuration of the web194 vhost?

Code:
######################################
# Vhost: dev.au.de:80
######################################
#
#
<VirtualHost 88.198.9.226:80>
SuexecUserGroup web194_dev web194
ServerName dev.au.de:80
ServerAdmin webmaster@au.de
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>
#
Reply With Quote
  #6  
Old 9th April 2008, 15:11
darvish darvish is offline
Junior Member
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
Reply With Quote
  #7  
Old 10th April 2008, 17:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by planet_fox
Code:
######################################
# Vhost: dev.au.de:80
######################################
#
#
<VirtualHost 88.198.9.226:80>
SuexecUserGroup web194_dev web194
ServerName dev.au.de:80
ServerAdmin webmaster@au.de
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>
#
I think the problem *might* be that you're using suPHP. I haven't tried mod_geoip with suPHP...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 10th April 2008, 20:37
planet_fox planet_fox is offline
Senior Member
 
Join Date: Jun 2006
Location: Munic
Posts: 308
Thanks: 14
Thanked 8 Times in 6 Posts
Send a message via Skype™ to planet_fox
Default

yes, i use suphp, i test in next time on my home server with mod_php
Reply With Quote
  #9  
Old 6th May 2009, 19:17
Moestchen Moestchen is offline
Junior Member
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #10  
Old 7th May 2009, 17:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Can you post the vhost configuration? Any errors in the Apache error log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:18.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.