Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th October 2006, 09:03
makone makone is offline
Junior Member
 
Join Date: Oct 2006
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default SSI Not working in ISPConfig

Hi -
I have an installation of ISPConfig - 2.2.6 , Cent OS 4.4, used the "Perfect Setup HowTo" procedure for the install. server side includes do not work in ISPconfig virtual sites. They do work on the shared IP or main IP based Apache sites. I have downloaded the test files, checked that PHP and PERL work, checked permissions, apache error logs, etc. SUEXEC is off. Everything else works great. Must be some kind of configuration issue. Anyone have any ideas? I have spent hours on this. Help! Thanks in advance.

Last edited by makone; 8th October 2006 at 09:07.
Reply With Quote
Sponsored Links
  #2  
Old 8th October 2006, 11:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,555
Thanks: 791
Thanked 4,977 Times in 3,899 Posts
Default

Did you enable SSI in the website settings?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 8th October 2006, 19:20
makone makone is offline
Junior Member
 
Join Date: Oct 2006
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

ssi is checked in the website settings.
Reply With Quote
  #4  
Old 9th October 2006, 14:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Can you post the vhost configuration (from Vhosts_ispconfig.conf) here?
Did you disable SELinux on your system?
__________________
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
  #5  
Old 10th October 2006, 09:26
makone makone is offline
Junior Member
 
Join Date: Oct 2006
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks again to everyone who is helping here. I am still really stumped on this. This is not my first ISPconfig/CentOS server, and I have compared config files with the other servers where SSI is working, but still nothing I can see and no SSI on ISPconfig sites.

SELinux is definitely turned off.

Vhosts_ispconfig.conf partial excerpt:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.1.42:80
<VirtualHost 192.168.1.42:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.example.com:80
######################################
#
#
<VirtualHost 192.168.1.42:80>
ServerName www.example.com:80
ServerAdmin webmaster@example.com
DocumentRoot /var/www/web5/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
ScriptAlias /cgi-bin/ /var/www/web5/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web5/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/var/www/web5/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/web5/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web5/user/$1/web/$3
</VirtualHost>
Reply With Quote
  #6  
Old 11th October 2006, 12:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Looks ok. Do you see any errors in Apache's error log when you try to access an shtml page?
__________________
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
  #7  
Old 11th October 2006, 16:39
bwrob bwrob is offline
Member
 
Join Date: Jan 2006
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Same with me.
After upgrade ssl is not working, 2.2.7 now.
I had to copy my ssl 2.1.2 cert to /ispconfig/httpd/conf then is working fine.

Suse9.3

bob
Reply With Quote
  #8  
Old 12th October 2006, 10:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,555
Thanks: 791
Thanked 4,977 Times in 3,899 Posts
Default

The SSL certificates where created on the info you enter during update. Only if you enter incorrect information, your certificate is broken. But, how is this related to the SSI problem of this thread (SSI = Server Sides Includes)?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 15th October 2006, 03:25
makone makone is offline
Junior Member
 
Join Date: Oct 2006
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Looks ok. Do you see any errors in Apache's error log when you try to access an shtml page?
Hi - I can't find any kind of error in the httpd logs, but if I add "XbitHack On" in the ISPConfig Directives, I get:

"mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed"

in the error log when trying to load a test.shtml or test.html (with ssi) page (both with proper permissions set).

Would this have anything to do with the web home directory chosen when installing ISPConfig in advanced mode? I selected advanced install mode, but it never asked me for a web home directory location. I am using /var/www and set this via the ISPconfig interface, not via the install app. But everything else seams to work on this ISPconfig web server, including php, SSL, perl, mail, etc.

I have been using the shared IP folder for the website that needs ssi, and that seems to have been a workaround for now, but I have never before seen this behaviour with ISPconfig.
Reply With Quote
  #10  
Old 16th October 2006, 11:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,555
Thanks: 791
Thanked 4,977 Times in 3,899 Posts
 
Default

Quote:
Originally Posted by makone
Hi - I can't find any kind of error in the httpd logs, but if I add "XbitHack On" in the ISPConfig Directives, I get:

"mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed"

in the error log when trying to load a test.shtml or test.html (with ssi) page (both with proper permissions set).

Would this have anything to do with the web home directory chosen when installing ISPConfig in advanced mode? I selected advanced install mode, but it never asked me for a web home directory location. I am using /var/www and set this via the ISPconfig interface, not via the install app. But everything else seams to work on this ISPconfig web server, including php, SSL, perl, mail, etc.

I have been using the shared IP folder for the website that needs ssi, and that seems to have been a workaround for now, but I have never before seen this behaviour with ISPconfig.
Please correct the path in the following directives in your httpd.conf / apache.conf to match your homedir:

Quote:
<Directory /home/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

<Directory /home/www/*/user/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

<Directory /home/www/*/cgi-bin>
Options ExecCGI -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP has stopped working for ISPConfig accounts manyowls Installation/Configuration 2 4th August 2006 13:49
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16
ISPConfig stopped working when adding users. willy-na General 1 12th April 2006 12:36
SSI is not working through ISP config gimhan90 Installation/Configuration 1 2nd March 2006 16:59
ISP-Ubuntu breezy ispconfig dns email e-mail working finally yellowjelly HOWTO-Related Questions 0 19th November 2005 20:30


All times are GMT +2. The time now is 07:22.


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