#1  
Old 2nd February 2011, 20:29
scottrill2 scottrill2 is offline
HowtoForge Supporter
 
Join Date: Dec 2009
Posts: 93
Thanks: 21
Thanked 2 Times in 1 Post
Default ISPConfig 3 configuration

I am installing ISPConfig 3 and everything was working fine, I hadnt transferred any sites from ISPConfig 2 yet, but could log into control panel and play around etc.


I was wanting to enable SSL and SuExec for conmtrol panel per the manual on pages 296-298. Enabled SSL just fine logged into control panel, SSL is working etc.


**A note about SSL in the manual it says to find the tags that are labeled "<VirtualHost &hellip;.></VirtualHost>" Im assuming the part that reads "&hellip;." is a typo, in my file I only have one set of tags and thats "<VirtualHost _default_:8080></VirtualHost>". Or was I supposed to make a new set of tags. SSL did work afterwards, so Im assuming that was correct.


But when I tried enabling SuExec I ran into problems.

I did the following:

vi /etc/apache2/sites-available/ispconfig.vhost
**Commented out the entire "<IfModule mod_php5.c>" section

rm -f /var/www/ispconfig

/etc/init.d/apache2 restart

After the restart it says:

server3:~# /etc/init.d/apache2 restart
Restarting web server: apache2Warning: DocumentRoot [/var/www/ispconfig/] does not exist... waiting Warning: DocumentRoot [/var/www/ispconfig/] does not exist.
server3:~#

Then when I try and log into the control panel I get a 403 Forbidden error.

What did I screw the pooch on folks?


Thanks as always for your time,

Scott
Reply With Quote
Sponsored Links
  #2  
Old 3rd February 2011, 10:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,373
Thanks: 833
Thanked 5,479 Times in 4,313 Posts
Default

Please post the file:

/etc/apache2/sites-available/ispconfig.vhost

and which ISPConfig 3 version do you use?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 3rd February 2011, 16:52
scottrill2 scottrill2 is offline
HowtoForge Supporter
 
Join Date: Dec 2009
Posts: 93
Thanks: 21
Thanked 2 Times in 1 Post
Default File info requested

Contents of /etc/apache2/sites-available/ispconfig.vhost :


################################################## ####
# This virtual host contains the configuration
# for the ISPConfig controlpanel
################################################## ####

Listen 8080
NameVirtualHost *:8080

<VirtualHost _default_:8080>
ServerAdmin webmaster@localhost

<IfModule mod_fcgid.c>
DocumentRoot /var/www/ispconfig/
SuexecUserGroup ispconfig ispconfig
<Directory /var/www/ispconfig/>
Options Indexes FollowSymLinks MultiViews +ExecCGI
AllowOverride AuthConfig Indexes Limit Options FileInfo
AddHandler fcgid-script .php
FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
Order allow,deny
Allow from all
</Directory>
</IfModule>

# <IfModule mod_php5.c>
# DocumentRoot /usr/local/ispconfig/interface/web/
# AddType application/x-httpd-php .php
# <Directory /usr/local/ispconfig/interface/web>
# Options FollowSymLinks
# AllowOverride None
# Order allow,deny
# Allow from all
# php_value magic_quotes_gpc 0
# </Directory>
# </IfModule>

# ErrorLog /var/log/apache2/error.log
# CustomLog /var/log/apache2/access.log combined
ServerSignature Off

<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>

# SSL Configuration
#SSLEngine On
#SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
#SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/ispserver.crt
SSLCertificateKeyFile /etc/apache2/ssl/ispserver.key

</VirtualHost>

<Directory /var/www/php-cgi-scripts>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

<Directory /var/www/php-fcgi-scripts>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

************************************************** *****

ISPConfig 3 Version is 3.0.3.2


Thanks as always for the help folks,


Scott

Last edited by scottrill2; 3rd February 2011 at 16:53. Reason: Hit submit button too early lol
Reply With Quote
  #4  
Old 3rd February 2011, 17:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,373
Thanks: 833
Thanked 5,479 Times in 4,313 Posts
Default

Please run:

ln -s /usr/local/ispconfig/interface/web /var/www/ispconfig

to create the symlink and try to access ispconfig again.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
scottrill2 (3rd February 2011)
  #5  
Old 3rd February 2011, 18:36
scottrill2 scottrill2 is offline
HowtoForge Supporter
 
Join Date: Dec 2009
Posts: 93
Thanks: 21
Thanked 2 Times in 1 Post
Default Awesomeness

Sweet!!

Thanks Till,

It is back up for me now. So did I do that step wrong somehow, or was that step in the manual meant for different distro or something?

How can I make sure the control panel is running in SuExec, that I did everything correctly?


Thanks as always folks,


Scott
Reply With Quote
  #6  
Old 3rd February 2011, 21:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,373
Thanks: 833
Thanked 5,479 Times in 4,313 Posts
Default

You did nothing wrong, the symlink is required for suexec. I will correct that in the manual.

As you commented out the mod_php section and are still able to reach the interface means that it runs now under suexec.
__________________
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
Relay access denied when using SMTP to external recipients Kamran Shah Installation/Configuration 111 14th May 2014 18:10
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 13:21
ISPConfig 3 setup and configuration Milleman Installation/Configuration 10 15th April 2010 01:21
squirrelmail and postfix witoszek General 12 1st December 2009 18:07
ispconfig apache configuration it0007 Installation/Configuration 5 15th November 2006 13:34


All times are GMT +2. The time now is 13:23.


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