Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 23rd May 2007, 14:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Can you check the value of $go_info["server"]["apache2_php"] in /home/admispconfig/ispconfig/lib/config.inc.php again?
__________________
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
Sponsored Links
  #22  
Old 23rd May 2007, 19:06
celtic celtic is offline
Member
 
Join Date: Jan 2007
Location: Oporto - PORTUGAL
Posts: 61
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Here is the line:

$go_info["server"]["apache2_php"] = 'addtype'; // 'filter' = set PHP filters, 'addtype' = Set PHP addtype or 'both' = Set Filter + Addtype, suphp = SuPHP wrapper enabled, 'addhandler' = Set PHP AddHandler (nescessary for SuSE 10.2)

For best analysis I have attached the entire file.

Thanks in advance once again
Attached Files
File Type: zip config_inc_php.zip (2.6 KB, 273 views)
Reply With Quote
  #23  
Old 24th May 2007, 19:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

What's the output of
Code:
ls -la /root/ispconfig
? Any erros in /home/admispconfig/ispconfig/ispconfig.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
  #24  
Old 24th May 2007, 23:54
celtic celtic is offline
Member
 
Join Date: Jan 2007
Location: Oporto - PORTUGAL
Posts: 61
Thanks: 4
Thanked 0 Times in 0 Posts
Default

total 100
drwxr-xr-x 9 root root 4096 2007-05-24 13:57 .
drwxr-xr-x 5 root root 4096 2007-02-24 13:10 ..
-rwxr-xr-x 1 root root 33478 2007-02-24 13:10 cronolog
-rwxr-xr-x 1 root root 9673 2007-02-24 13:10 cronosplit
drwxr-xr-x 12 root root 4096 2007-02-24 13:02 httpd
drwxr-xr-x 14 root root 4096 2007-02-24 13:10 isp
-rw-r--r-- 1 root root 8 2007-05-24 13:57 .old_path_httpd_root
drwxr-xr-x 6 root root 4096 2007-02-24 11:26 openssl
drwxr-xr-x 6 root root 4096 2007-02-24 13:07 php
drwxr-xr-x 4 root root 4096 2007-02-24 13:10 scripts
drwxr-xr-x 4 root root 4096 2007-02-24 13:10 standard_cgis
drwxr-xr-x 2 root root 4096 2007-02-24 13:10 sv
-rwx------ 1 root root 9389 2007-02-24 13:10 uninstall


I have not noticed any errors only Warns and Info.

Attached is the log file

Thanks in advance
Attached Files
File Type: zip log.zip (36.5 KB, 302 views)
Reply With Quote
  #25  
Old 25th May 2007, 17:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Ok, that's the problem:
Code:
24.05.2007 - 14:57:26 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2417: WARNING: could not httpd -t  &> /dev/null
24.05.2007 - 14:57:26 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2428: httpd syntax seems to contain errors, reloading with old configuration
Can you rename the latest /etc/apache2/vhosts/Vhosts_ispconfig.conf file that ends with a date to /etc/apache2/vhosts/Vhosts_ispconfig.conf and run
Code:
httpd -t
? What's the output?
__________________
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
  #26  
Old 25th May 2007, 21:17
celtic celtic is offline
Member
 
Join Date: Jan 2007
Location: Oporto - PORTUGAL
Posts: 61
Thanks: 4
Thanked 0 Times in 0 Posts
Default

root@jfo:~# httpd -t
Syntax error on line 200 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
Invalid command 'safe_mode', perhaps mis-spelled or defined by a module not included in the server configuration
root@jfo:~#
Reply With Quote
  #27  
Old 26th May 2007, 12:40
celtic celtic is offline
Member
 
Join Date: Jan 2007
Location: Oporto - PORTUGAL
Posts: 61
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Extra info:

My Apache is scheduled to re-start as 4 AM every day to minimize problems of freezing.

Today because of this error it did not start so this morning I had to copy back the old file for it to re-start.

Also I cannot upgrade to ISPConfig latest version.
Reply With Quote
  #28  
Old 26th May 2007, 20:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

It seems you have disabled the PHP module.
What's the output of
Code:
ls -la /etc/apache2/mods-available
and
Code:
ls -la /etc/apache2/mods-enabled
?
__________________
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
  #29  
Old 26th May 2007, 22:31
celtic celtic is offline
Member
 
Join Date: Jan 2007
Location: Oporto - PORTUGAL
Posts: 61
Thanks: 4
Thanked 0 Times in 0 Posts
Default

root@jfo:~# ls -la /etc/apache2/mods-available
total 304
drwxr-xr-x 2 root root 4096 2006-07-26 23:51 .
drwxr-xr-x 9 root root 4096 2006-12-03 19:22 ..
-rw-r--r-- 1 root root 66 2006-05-29 02:55 actions.load
-rw-r--r-- 1 root root 60 2006-05-29 02:55 asis.load
-rw-r--r-- 1 root root 70 2006-05-29 02:55 auth_anon.load
-rw-r--r-- 1 root root 68 2006-05-29 02:55 auth_dbm.load
-rw-r--r-- 1 root root 74 2006-05-29 02:55 auth_digest.load
-rw-r--r-- 1 root root 130 2006-05-29 02:55 auth_ldap.load
-rw-r--r-- 1 root root 62 2006-05-29 02:55 cache.load
-rw-r--r-- 1 root root 70 2006-05-29 02:55 cern_meta.load
-rw-r--r-- 1 root root 61 2006-05-29 02:55 cgid.conf
-rw-r--r-- 1 root root 60 2006-05-29 02:55 cgid.load
-rw-r--r-- 1 root root 58 2006-07-16 21:54 cgi.load
-rw-r--r-- 1 root root 58 2006-07-16 03:31 cgi.load.16-07-06_04-31-46
-rw-r--r-- 1 root root 58 2006-07-16 18:19 cgi.load.16-07-06_19-19-02
-rw-r--r-- 1 root root 58 2006-07-16 21:54 cgi.load.16-07-06_22-53-58
-rw-r--r-- 1 root root 37 2006-05-29 02:55 dav_fs.conf
-rw-r--r-- 1 root root 64 2006-05-29 02:55 dav_fs.load
-rw-r--r-- 1 root root 58 2006-05-29 02:55 dav.load
-rw-r--r-- 1 root root 66 2006-05-29 02:55 deflate.load
-rw-r--r-- 1 root root 72 2006-05-29 02:55 disk_cache.load
-rw-r--r-- 1 root root 66 2006-05-29 02:55 expires.load
-rw-r--r-- 1 root root 72 2006-05-29 02:55 ext_filter.load
-rw-r--r-- 1 root root 72 2006-05-29 02:55 file_cache.load
-rw-r--r-- 1 root root 66 2006-05-29 02:55 headers.load
-rw-r--r-- 1 root root 60 2006-05-29 02:55 imap.load
-rw-r--r-- 1 root root 66 2006-07-16 21:54 include.load
-rw-r--r-- 1 root root 66 2006-07-16 03:31 include.load.16-07-06_04-31-46
-rw-r--r-- 1 root root 66 2006-07-16 18:19 include.load.16-07-06_19-19-02
-rw-r--r-- 1 root root 66 2006-07-16 21:54 include.load.16-07-06_22-53-58
-rw-r--r-- 1 root root 60 2006-05-29 02:55 info.load
-rw-r--r-- 1 root root 60 2006-05-29 02:55 ldap.load
-rw-r--r-- 1 root root 70 2006-05-29 02:55 mem_cache.load
-rw-r--r-- 1 root root 85 2006-05-29 02:55 mime_magic.conf
-rw-r--r-- 1 root root 72 2006-05-29 02:55 mime_magic.load
-rw-r--r-- 1 root root 135 2006-07-16 21:54 php5.conf
-rw-r--r-- 1 root root 135 2006-07-16 03:31 php5.conf.16-07-06_04-31-46
-rw-r--r-- 1 root root 135 2006-07-16 18:19 php5.conf.16-07-06_19-19-02
-rw-r--r-- 1 root root 135 2006-07-16 21:54 php5.conf.16-07-06_22-53-58
-rw-r--r-- 1 root root 59 2006-07-16 21:54 php5.load
-rw-r--r-- 1 root root 59 2006-07-16 03:31 php5.load.16-07-06_04-31-46
-rw-r--r-- 1 root root 59 2006-07-16 18:19 php5.load.16-07-06_19-19-02
-rw-r--r-- 1 root root 59 2006-07-16 21:54 php5.load.16-07-06_22-53-58
-rw-r--r-- 1 root root 840 2006-05-29 02:55 proxy.conf
-rw-r--r-- 1 root root 78 2006-05-29 02:55 proxy_connect.load
-rw-r--r-- 1 root root 70 2006-05-29 02:55 proxy_ftp.load
-rw-r--r-- 1 root root 72 2006-05-29 02:55 proxy_http.load
-rw-r--r-- 1 root root 316 2006-05-29 02:55 proxy.load
-rw-r--r-- 1 root root 66 2006-07-16 21:54 rewrite.load
-rw-r--r-- 1 root root 66 2006-07-16 03:31 rewrite.load.16-07-06_04-31-46
-rw-r--r-- 1 root root 66 2006-07-16 18:19 rewrite.load.16-07-06_19-19-02
-rw-r--r-- 1 root root 66 2006-07-16 21:54 rewrite.load.16-07-06_22-53-58
-rw-r--r-- 1 root root 66 2006-05-29 02:55 speling.load
-rw-r--r-- 1 root root 3545 2006-07-16 21:54 ssl.conf
-rw-r--r-- 1 root root 3545 2006-07-16 03:31 ssl.conf.16-07-06_04-31-46
-rw-r--r-- 1 root root 3545 2006-07-16 18:19 ssl.conf.16-07-06_19-19-02
-rw-r--r-- 1 root root 3545 2006-07-16 21:54 ssl.conf.16-07-06_22-53-58
-rw-r--r-- 1 root root 58 2006-07-16 21:54 ssl.load
-rw-r--r-- 1 root root 58 2006-07-16 03:31 ssl.load.16-07-06_04-31-46
-rw-r--r-- 1 root root 58 2006-07-16 18:19 ssl.load.16-07-06_19-19-02
-rw-r--r-- 1 root root 58 2006-07-16 21:54 ssl.load.16-07-06_22-53-58
-rw-r--r-- 1 root root 64 2006-07-16 21:54 suexec.load
-rw-r--r-- 1 root root 64 2006-07-16 03:31 suexec.load.16-07-06_04-31-46
-rw-r--r-- 1 root root 64 2006-07-16 18:19 suexec.load.16-07-06_19-19-02
-rw-r--r-- 1 root root 64 2006-07-16 21:54 suexec.load.16-07-06_22-53-58
-rw-r--r-- 1 root root 70 2006-05-29 02:55 unique_id.load
-rw-r--r-- 1 root root 244 2006-07-16 21:54 userdir.conf
-rw-r--r-- 1 root root 244 2006-07-16 03:31 userdir.conf.16-07-06_04-31-46
-rw-r--r-- 1 root root 244 2006-07-16 18:19 userdir.conf.16-07-06_19-19-02
-rw-r--r-- 1 root root 244 2006-07-16 21:54 userdir.conf.16-07-06_22-53-58
-rw-r--r-- 1 root root 66 2006-07-16 21:54 userdir.load
-rw-r--r-- 1 root root 66 2006-07-16 03:31 userdir.load.16-07-06_04-31-46
-rw-r--r-- 1 root root 66 2006-07-16 18:19 userdir.load.16-07-06_19-19-02
-rw-r--r-- 1 root root 66 2006-07-16 21:54 userdir.load.16-07-06_22-53-58
-rw-r--r-- 1 root root 70 2006-05-29 02:55 usertrack.load
-rw-r--r-- 1 root root 74 2006-05-29 02:55 vhost_alias.load
root@jfo:~# ls -la /etc/apache2/mods-enabled
total 8
drwxr-xr-x 2 root root 4096 2006-07-15 21:35 .
drwxr-xr-x 9 root root 4096 2006-12-03 19:22 ..
lrwxrwxrwx 1 root root 36 2006-07-15 21:30 cgi.load -> /etc/apache2/mods-available/cgi.load
lrwxrwxrwx 1 root root 40 2006-07-15 21:35 include.load -> /etc/apache2/mods-available/include.load
lrwxrwxrwx 1 root root 37 2006-07-15 21:33 php5.conf -> /etc/apache2/mods-available/php5.conf
lrwxrwxrwx 1 root root 37 2006-07-15 21:33 php5.load -> /etc/apache2/mods-available/php5.load
lrwxrwxrwx 1 root root 40 2006-07-15 21:35 rewrite.load -> /etc/apache2/mods-available/rewrite.load
lrwxrwxrwx 1 root root 36 2006-07-15 21:35 ssl.conf -> /etc/apache2/mods-available/ssl.conf
lrwxrwxrwx 1 root root 36 2006-07-15 21:35 ssl.load -> /etc/apache2/mods-available/ssl.load
lrwxrwxrwx 1 root root 39 2006-07-15 21:35 suexec.load -> /etc/apache2/mods-available/suexec.load
lrwxrwxrwx 1 root root 40 2006-07-15 21:30 userdir.conf -> /etc/apache2/mods-available/userdir.conf
lrwxrwxrwx 1 root root 40 2006-07-15 21:30 userdir.load -> /etc/apache2/mods-available/userdir.load
Reply With Quote
  #30  
Old 27th May 2007, 17:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
 
Default

Looks ok.

Quote:
root@jfo:~# httpd -t
Syntax error on line 200 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
Invalid command 'safe_mode', perhaps mis-spelled or defined by a module not included in the server configuration
root@jfo:~#
What's in line 200 of /etc/apache2/vhosts/Vhosts_ispconfig.conf? IT should contain
Code:
php_admin_flag safe_mode On
or
Code:
php_admin_flag safe_mode Off
not just safe_mode...
__________________
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
The Following User Says Thank You to falko For This Useful Post:
celtic (27th May 2007)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSI with Apache2 on Debian jchaven Server Operation 7 25th August 2008 18:06
Apache2 without APXS ctroyp Installation/Configuration 8 29th January 2007 04:05
Web server offline after php4 and apache2 upgrade dfriis Installation/Configuration 11 7th December 2006 17:14
PHP on Apache2 no longer works after ISPconfig azorman Installation/Configuration 6 23rd July 2006 23:06
apache2 "problem" LuisC-SM Installation/Configuration 6 2nd May 2006 16:59


All times are GMT +2. The time now is 01:26.


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