Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #31  
Old 22nd November 2008, 15:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Try
Code:
. /etc/apache2/envvars && httpd -t
instead of
Code:
httpd -t
__________________
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
  #32  
Old 22nd November 2008, 15:35
miguelpinheiro miguelpinheiro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Default

[QUOTE=falko;156270]Try
Code:
. /etc/apache2/envvars && httpd -t
Here the result:

Code:
/etc/apache2/envvars && httpd -t

bash: /etc/apache2/envvars: Permission denied
Reply With Quote
  #33  
Old 22nd November 2008, 16:15
miguelpinheiro miguelpinheiro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I update my codomain configuration checking CREATE DNS option and it is now working.
Anyway Falko, did you noticed anything strange in my configuration files?
Reply With Quote
  #34  
Old 23rd November 2008, 14:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by miguelpinheiro View Post
Here the result:

Code:
/etc/apache2/envvars && httpd -t

bash: /etc/apache2/envvars: Permission denied
Did you run the command as root?
__________________
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
  #35  
Old 23rd November 2008, 15:00
miguelpinheiro miguelpinheiro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Yes I did. Here is how the file looks like:

Code:
root@ks32171:/etc/apache2# ls -la envvars

-rw-r--r-- 1 root root 378 2008-06-25 15:49 envvars
Code:
root@ks32171:/etc/apache2# /etc/apache2/envvars && httpd -t

bash: /etc/apache2/envvars: Permission denied
Reply With Quote
  #36  
Old 24th November 2008, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

The correct command is
Code:
. /etc/apache2/envvars && httpd -t
not
Code:
/etc/apache2/envvars && httpd -t
__________________
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:
miguelpinheiro (24th November 2008)
  #37  
Old 24th November 2008, 23:42
miguelpinheiro miguelpinheiro is offline
Junior Member
 
Join Date: Nov 2008
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Wink

I get syntax ok.
I guess everything is working fine..

Thanks for your support Falko.
Reply With Quote
  #38  
Old 24th April 2009, 22:11
Bikkies Bikkies is offline
Junior Member
 
Join Date: Apr 2009
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Same problem started happening to me so followed all instructions-

cp /etc/apache2/vhosts/Vhosts_ispconfig.conf_25-04-09_03-23-03 /etc/apache2/vhosts/Vhosts_ispconfig.conf

Output of . /etc/apache2/envvars && httpd -t
Syntax error on line 298 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
Invalid command 'blah', perhaps misspelled or defined by a module not included in the server configuration

Found strange lines in conf file
<VirtualHost 10.1.1.50:80>
blah kasdfag
dfk;kOASDF
NDJJkksdglk

ServerName www.militarysuperannuation2.for-our.info:80

Don't know how those 3 lines got there but removed them & ran . /etc/apache2/envvars && httpd -t again which resulted in
[Sat Apr 25 04:35:02 2009] [warn] NameVirtualHost 10.1.1.50:80 has no VirtualHosts
Syntax OK


Have plenty of virtual hosts
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 10.1.1.50:80
<VirtualHost 10.1.1.50:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
</VirtualHost>
#
#
######################################
# Vhost: www.railscenes.com.au:80
######################################
#
#
<VirtualHost 10.1.1.50:80>
ServerName www.railscenes.com.au:80



httpd -S results in
[Sat Apr 25 04:48:06 2009] [warn] NameVirtualHost 10.1.1.50:80 has no VirtualHosts
VirtualHost configuration:
10.1.1.50:80 is a NameVirtualHost
default server localhost (/etc/apache2/vhosts/Vhosts_ispconfig.conf:9)
port 80 namevhost localhost (/etc/apache2/vhosts/Vhosts_ispconfig.conf:9)
port 80 namevhost www.railscenes.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:26)
port 80 namevhost www.webmail.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:73)
port 80 namevhost www.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:120)
port 80 namevhost www.prosepower.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:167)
port 80 namevhost www.yourownserver.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:203)
port 80 namevhost www.test.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:250)
port 80 namevhost www.militarysuperannuation2.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:297)
port 80 namevhost www.polls.motivepower.net.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:344)
port 80 namevhost www.ocsportseaalumni.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:391)
port 80 namevhost www.militarysuperannuation.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:438)
port 80 namevhost www.railwayshop.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:485)
port 80 namevhost localhost (/etc/apache2/vhosts/Vhosts_ispconfig.conf:9)
port 80 namevhost www.railscenes.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:26)
port 80 namevhost www.webmail.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:73)
port 80 namevhost www.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:120)
port 80 namevhost www.prosepower.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:167)
port 80 namevhost www.yourownserver.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:203)
port 80 namevhost www.test.sisbiz.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:250)
port 80 namevhost www.militarysuperannuation2.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:297)
port 80 namevhost www.polls.motivepower.net.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:344)
port 80 namevhost www.ocsportseaalumni.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:391)
port 80 namevhost www.militarysuperannuation.for-our.info (/etc/apache2/vhosts/Vhosts_ispconfig.conf:438)
port 80 namevhost www.railwayshop.com.au (/etc/apache2/vhosts/Vhosts_ispconfig.conf:485)
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server sisbiz.com.au (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost sisbiz.com.au (/etc/apache2/sites-enabled/000-default:1)
Syntax OK




Output of ls -la /root/ispconfig
total 104
drwxr-xr-x 10 root root 4096 2009-04-25 03:29 .
drwxr-xr-x 6 root root 4096 2009-03-27 16:25 ..
-rwxr-xr-x 1 root root 34530 2009-03-27 16:27 cronolog
-rwxr-xr-x 1 root root 9673 2009-03-27 16:27 cronosplit
drwxr-xr-x 12 root root 4096 2009-03-27 16:05 httpd
drwxr-xr-x 16 root root 4096 2009-03-27 16:27 isp
drwxr-xr-x 7 root root 4096 2009-03-27 16:06 libmcrypt
-rw-r--r-- 1 root root 8 2009-04-25 03:29 .old_path_httpd_root
drwxr-xr-x 6 root root 4096 2009-03-27 16:03 openssl
drwxr-xr-x 6 root root 4096 2009-03-27 16:19 php
drwxr-xr-x 4 root root 4096 2009-04-25 01:57 scripts
drwxr-xr-x 4 root root 4096 2009-03-27 16:27 standard_cgis
drwxr-xr-x 2 root root 4096 2009-03-27 16:27 sv
-rwx------ 1 root root 9389 2009-03-27 16:27 uninstall




Output of /home/admispconfig/ispconfig/ispconfig.log
25.04.2009 - 03:29:18 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2658: WARNING: could not . /etc/apache2/envvars && httpd -t &> /dev/null
25.04.2009 - 03:29:18 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2672: httpd syntax seems to contain errors, reloading with old configuration



If someone might be able to point out where I have gone wrong.
Reply With Quote
  #39  
Old 25th April 2009, 11:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

You entered the lines:

blah kasdfag
dfk;kOASDF
NDJJkksdglk

into the apache directives field of a website in ispconfig. This causes apache to fail and as soon as you remove them from the apache directives field in ispconfig, everything will work properly again. And never edit the vhosts file directly!
__________________
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:
Bikkies (25th April 2009)
  #40  
Old 25th April 2009, 16:49
Bikkies Bikkies is offline
Junior Member
 
Join Date: Apr 2009
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Thanks heaps for previous post Till. Had been doing some testing a few days back in response to another post in regards caching & it had been suggested to put some garbage in to see if .htaccess was working but forgot to take them out. Now working fine again.

One other question. In trying to keep my servers as secure as possible I always like to limit who has access to port 22 & previously used iptables to restrict to IP address.
I haven't found the location of the file I need to edit yet.
Is there a sticky somewhere that has information re all the important configuration files in the one place? Like a site map perhaps, or a table of contents.

Many thanks,
Tony
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
[error] an unkown filter was not added: PHP Arien Installation/Configuration 12 7th October 2006 15:17
"unknown filter" growing apache log. wwparrish Installation/Configuration 6 1st September 2006 19:40
php script injections Grizzly General 21 18th July 2006 09:55
perfect setup suse 10 - phpmyadmin & mysql question reddog Server Operation 7 17th June 2006 13:59
printing to a network printer ojs Installation/Configuration 4 24th February 2006 12:05


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


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