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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 30th March 2012, 11:49
gibbo1715 gibbo1715 is offline
Junior Member
 
Join Date: Mar 2012
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I also cant re start apache2 as gives the same error syntax error on line 7 etc

/etc/init.d/apache2 restart

Action configtest failed

My apache error log is empty so that doesnt help me unfortunately
Reply With Quote
Sponsored Links
  #12  
Old 30th March 2012, 16:30
gibbo1715 gibbo1715 is offline
Junior Member
 
Join Date: Mar 2012
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Would deleting the /etc/apache2/sites-enabled/000-ispconfig.vhost: file cause the system to re create it and maybe solve my issue or would it mean me having to reinstall the whole thing (i.e. make things worse)

Thanks
Reply With Quote
  #13  
Old 30th March 2012, 17:02
kwickcut kwickcut is offline
Senior Member
 
Join Date: Nov 2005
Location: nj usa
Posts: 223
Thanks: 14
Thanked 11 Times in 10 Posts
Default

i am not 100% but i think this line is wrong

Code:
 SuexecUserGroup ispconfig ispconfig <
try removing the ispconfig from the end see u have it there twice.. hopefully till our falko or someone with a better understanding can help.. i am new myself
__________________
Operating system Ubuntu Linux 10.04.4
ISPConfig Version: 3.0.4.3
Webmin version 1.580
Kernel and CPU Linux 2.6.32-40-server on x86_64
Processor information AMD Phenom(tm) II X4 945 Processor, 4 cores
Real memory 4.0 GB total
Reply With Quote
  #14  
Old 30th March 2012, 17:31
gibbo1715 gibbo1715 is offline
Junior Member
 
Join Date: Mar 2012
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for the reply kwickcut, appreciate it , i tried that but made no difference unfortunately

Paul
Reply With Quote
  #15  
Old 30th March 2012, 22:06
gibbo1715 gibbo1715 is offline
Junior Member
 
Join Date: Mar 2012
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

All

can anyone share a copy of what the /etc/apache2/sites-enabled/000-ispconfig.vhost file should look like so i can try and understand what my error is please,

i only have one test web site so far on my server and happy to re install apache and ispconfig3 if thats a better way but would like to try and fix the file first and not sure if i can even delete everything and start again

many thanks

paul
Reply With Quote
  #16  
Old 30th March 2012, 23:26
kwickcut kwickcut is offline
Senior Member
 
Join Date: Nov 2005
Location: nj usa
Posts: 223
Thanks: 14
Thanked 11 Times in 10 Posts
Default

ok this is mine but i am running ubuntu 10.04

Code:
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:8081         xxxxservers.com (/etc/apache2/sites-enabled/000-apps.vhost:10)
*:8080                 is a NameVirtualHost
         default server xxxxservers.com (/etc/apache2/sites-enabled/000-ispconfig.vhost:10)
         port 8080 namevhost xxxxservers.com (/etc/apache2/sites-enabled/000-ispconfig.vhost:10)
*:80                   is a NameVirtualHost
         default server xxxxservers.com (/etc/apache2/sites-enabled/000-default:1)
         port 80 namevhost xxxxservers.com (/etc/apache2/sites-enabled/000-default:1)
         port 80 namevhost xxxxxxxxxxxxxxxx.com (/etc/apache2/sites-enabled/100-kikinitonceagain.com.vhost:7)
         port 80 namevhost xxxxbid.com (/etc/apache2/sites-enabled/100-xxxxxxx.com.vhost:7)
Syntax OK
__________________
Operating system Ubuntu Linux 10.04.4
ISPConfig Version: 3.0.4.3
Webmin version 1.580
Kernel and CPU Linux 2.6.32-40-server on x86_64
Processor information AMD Phenom(tm) II X4 945 Processor, 4 cores
Real memory 4.0 GB total
Reply With Quote
  #17  
Old 30th March 2012, 23:43
gibbo1715 gibbo1715 is offline
Junior Member
 
Join Date: Mar 2012
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Many thanks, looks surprisingly different to mine can anyone help with a debian version please
Reply With Quote
  #18  
Old 30th March 2012, 23:52
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 40 Times in 34 Posts
Wink

Gibbo, I'll post mine in a mo, but in fairness Ubuntu is based on Debian. Stand by stand by...
Reply With Quote
  #19  
Old 30th March 2012, 23:57
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 40 Times in 34 Posts
Default

Also, you have some entries in your system log. You can find it on the control panel on the monitor tab. Can you post entries from there which may help others help.
Reply With Quote
  #20  
Old 31st March 2012, 00:11
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 40 Times in 34 Posts
 
Default

PHP Code:

######################################################
# 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>
      
# php_admin_value open_basedir "/usr/local/ispconfig/interface:/usr/share:/tmp"
      
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

</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
Quote:
Originally Posted by gibbo1715 View Post
Many thanks, this gives an error syntax error on line 7 of /etc/apache2/sites-enabled/000-ispconfig.vhost:
listen requires 1 or 2 arguements
action '-s' failed

my file reads as follows

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

Listen php -q update.php
NameVirtualHost *hp -q update.php

<VirtualHost _default_hp -q update.php>
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>
<he2/sites-enabled/000-ispconfig.vhost" [readonly] 65L, 1813C 1,0-1

Im guessing this is probably where my problem is, any help on how to fix this is very much appreciated

many thanks

Paul

Line 7 is most definately different to mine. Mine is listening on port 8080. This does feel typical of badly configured vhost file. Similar symptoms to my mixed secure and non secure site problem causing apache to serve the wrong v host.

If you do intend to edit your file you can make a copy of it likes this:
cp 000-ispconfig.vhost 000-ispconfig.vhostcopy

Last edited by Toucan; 31st March 2012 at 00:22.
Reply With Quote
The Following User Says Thank You to Toucan For This Useful Post:
gibbo1715 (31st March 2012)
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
MySQL Error Nolan Installation/Configuration 13 27th November 2014 06:04
mail.err warnings and some mail unable to receive HellMind General 4 8th October 2010 20:57
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
problem recreating deleted site jusdisgi Installation/Configuration 5 4th June 2008 20:34
Problem with user adding K_meleonu Installation/Configuration 3 18th May 2006 10:39


All times are GMT +2. The time now is 16:40.


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