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
  #1  
Old 22nd April 2006, 15:24
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
Exclamation Apache - Virtual hosts - ISPConfig

After adding a new site within ISConfig 2.2.1 via > ISP Manager > New site > there appear NO modifcations within /etc/apache2/vhosts/Vhosts_ispconfig.conf
The result is that the created website is NOT reachable from the Internet.

I have also seen that there is a long list in directory /etc/apache2/vhosts/ with different Vhost files like: /etc/apache2/vhosts/Vhosts_ispconfig.conf_22-04-06_13-23-59

I have to say that every time I create a new website in ISPConfig, the virtual host for the last site appears in the last file like: /etc/apache2/vhosts/Vhosts_ispconfig.conf_dd-mm-yy_hr-min-sec.

So I did the following to solve the problem:
I renamed /etc/apache2/vhosts/Vhosts_ispconfig.conf to /etc/apache2/vhosts/Vhosts_ispconfig-old.conf

I copied the last and most up to date /etc/apache2/vhosts/Vhosts_ispconfig.conf_dd-mm-yy_hr-min-sec to /etc/apache2/vhosts/Vhosts_ispconfig.conf

I restarted Apache by: /etc/init.d/apache2 restart

While starting up Apache again an error occurs:

Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration.

I removed all the lines starting with 'php_admin_flag' within my new /etc/apache2/vhosts/Vhosts_ispconfig.conf

After this, Apache is starting up successfully again, although it gave me a warning:

Forcing reload of web server: Apache2 ... no pidfile found! not running?

And, via ISPConfig I can NOT add new virtualhosts within my file /etc/apache2/vhosts/Vhosts_ispconfig.conf.

How can I solve this problem?


Hans
Reply With Quote
Sponsored Links
  #2  
Old 22nd April 2006, 16:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by Hans
While starting up Apache again an error occurs:

Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration.

I removed all the lines starting with 'php_admin_flag' within my new /etc/apache2/vhosts/Vhosts_ispconfig.conf
This means that the PHP module is missing in your Apache configuration.
__________________
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
  #3  
Old 22nd April 2006, 16:40
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
Default

Falko,

But do you have any idea how i can install the PHP module again?
I do not know which module i am missing ...
Do i have to install Apache all over again from your Perfect Setup for Debian?


Hans

Reply With Quote
  #4  
Old 22nd April 2006, 17:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Please post 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
  #5  
Old 22nd April 2006, 17:59
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
Default

Falko,

It must be something with php i think.
The main problem is that new sites are not added in the file:
vhosts/Vhosts_ispconfig.conf

Here is the output you requested:


server1:/# ls -la /etc/apache2/mods-available
total 336
drwxr-xr-x 2 root root 4096 2006-04-21 00:22 .
drwxr-xr-x 9 root root 4096 2006-03-31 16:48 ..
-rw-r--r-- 1 root root 66 2005-09-05 16:23 actions.load
-rw-r--r-- 1 root root 60 2005-09-05 16:23 asis.load
-rw-r--r-- 1 root root 70 2005-09-05 16:23 auth_anon.load
-rw-r--r-- 1 root root 68 2005-09-05 16:23 auth_dbm.load
-rw-r--r-- 1 root root 74 2005-09-05 16:23 auth_digest.load
-rw-r--r-- 1 root root 130 2005-09-05 16:23 auth_ldap.load
-rw-r--r-- 1 root root 62 2005-09-05 16:23 cache.load
-rw-r--r-- 1 root root 70 2005-09-05 16:23 cern_meta.load
-rw-r--r-- 1 root root 61 2005-09-05 16:23 cgid.conf
-rw-r--r-- 1 root root 60 2005-09-05 16:23 cgid.load
-rw-r--r-- 1 root root 58 2006-03-31 16:48 cgi.load
-rw-r--r-- 1 root root 58 2006-03-31 12:44 cgi.load.31-03-06_12-44-24
-rw-r--r-- 1 root root 58 2006-03-31 16:34 cgi.load.31-03-06_16-34-05
-rw-r--r-- 1 root root 58 2006-03-31 16:48 cgi.load.31-03-06_16-48-42
-rw-r--r-- 1 root root 37 2005-09-05 16:23 dav_fs.conf
-rw-r--r-- 1 root root 64 2005-09-05 16:23 dav_fs.load
-rw-r--r-- 1 root root 58 2005-09-05 16:23 dav.load
-rw-r--r-- 1 root root 66 2005-09-05 16:23 deflate.load
-rw-r--r-- 1 root root 72 2005-09-05 16:23 disk_cache.load
-rw-r--r-- 1 root root 66 2005-09-05 16:23 expires.load
-rw-r--r-- 1 root root 72 2005-09-05 16:23 ext_filter.load
-rw-r--r-- 1 root root 72 2005-09-05 16:23 file_cache.load
-rw-r--r-- 1 root root 66 2005-09-05 16:23 headers.load
-rw-r--r-- 1 root root 60 2005-09-05 16:23 imap.load
-rw-r--r-- 1 root root 66 2006-03-31 16:48 include.load
-rw-r--r-- 1 root root 66 2006-03-31 12:44 include.load.31-03-06_12-44-24
-rw-r--r-- 1 root root 66 2006-03-31 16:34 include.load.31-03-06_16-34-05
-rw-r--r-- 1 root root 66 2006-03-31 16:48 include.load.31-03-06_16-48-42
-rw-r--r-- 1 root root 60 2005-09-05 16:23 info.load
-rw-r--r-- 1 root root 60 2005-09-05 16:23 ldap.load
-rw-r--r-- 1 root root 70 2005-09-05 16:23 mem_cache.load
-rw-r--r-- 1 root root 90 2005-09-05 16:23 mime_magic.conf
-rw-r--r-- 1 root root 72 2005-09-05 16:23 mime_magic.load
-rw-r--r-- 1 root root 19 2006-03-31 16:48 perl.conf
-rw-r--r-- 1 root root 19 2006-03-31 12:44 perl.conf.31-03-06_12-44-24
-rw-r--r-- 1 root root 19 2006-03-31 16:34 perl.conf.31-03-06_16-34-05
-rw-r--r-- 1 root root 19 2006-03-31 16:48 perl.conf.31-03-06_16-48-42
-rw-r--r-- 1 root root 60 2006-03-31 16:48 perl.load
-rw-r--r-- 1 root root 60 2006-03-31 12:44 perl.load.31-03-06_12-44-24
-rw-r--r-- 1 root root 60 2006-03-31 16:34 perl.load.31-03-06_16-34-05
-rw-r--r-- 1 root root 60 2006-03-31 16:48 perl.load.31-03-06_16-48-42
-rw-r--r-- 1 root root 133 2006-03-31 16:48 php4.conf
-rw-r--r-- 1 root root 133 2006-03-31 12:44 php4.conf.31-03-06_12-44-24
-rw-r--r-- 1 root root 133 2006-03-31 16:34 php4.conf.31-03-06_16-34-05
-rw-r--r-- 1 root root 133 2006-03-31 16:48 php4.conf.31-03-06_16-48-42
-rw-r--r-- 1 root root 59 2006-03-31 16:48 php4.load
-rw-r--r-- 1 root root 59 2006-03-31 12:44 php4.load.31-03-06_12-44-24
-rw-r--r-- 1 root root 59 2006-03-31 16:34 php4.load.31-03-06_16-34-05
-rw-r--r-- 1 root root 59 2006-03-31 16:48 php4.load.31-03-06_16-48-42
-rw-r--r-- 1 root root 840 2005-09-05 16:23 proxy.conf
-rw-r--r-- 1 root root 78 2005-09-05 16:23 proxy_connect.load
-rw-r--r-- 1 root root 70 2005-09-05 16:23 proxy_ftp.load
-rw-r--r-- 1 root root 72 2005-09-05 16:23 proxy_http.load
-rw-r--r-- 1 root root 316 2005-09-05 16:23 proxy.load
-rw-r--r-- 1 root root 66 2006-03-31 16:48 rewrite.load
-rw-r--r-- 1 root root 66 2006-03-31 12:44 rewrite.load.31-03-06_12-44-24
-rw-r--r-- 1 root root 66 2006-03-31 16:34 rewrite.load.31-03-06_16-34-05
-rw-r--r-- 1 root root 66 2006-03-31 16:48 rewrite.load.31-03-06_16-48-42
-rw-r--r-- 1 root root 66 2005-09-05 16:23 speling.load
-rw-r--r-- 1 root root 3545 2006-03-31 16:48 ssl.conf
-rw-r--r-- 1 root root 3545 2006-03-31 12:44 ssl.conf.31-03-06_12-44-24
-rw-r--r-- 1 root root 3545 2006-03-31 16:34 ssl.conf.31-03-06_16-34-05
-rw-r--r-- 1 root root 3545 2006-03-31 16:48 ssl.conf.31-03-06_16-48-42
-rw-r--r-- 1 root root 58 2006-03-31 16:48 ssl.load
-rw-r--r-- 1 root root 58 2006-03-31 12:44 ssl.load.31-03-06_12-44-24
-rw-r--r-- 1 root root 58 2006-03-31 16:34 ssl.load.31-03-06_16-34-05
-rw-r--r-- 1 root root 58 2006-03-31 16:48 ssl.load.31-03-06_16-48-42
-rw-r--r-- 1 root root 64 2006-03-31 16:48 suexec.load
-rw-r--r-- 1 root root 64 2006-03-31 12:44 suexec.load.31-03-06_12-44-24
-rw-r--r-- 1 root root 64 2006-03-31 16:34 suexec.load.31-03-06_16-34-05
-rw-r--r-- 1 root root 64 2006-03-31 16:48 suexec.load.31-03-06_16-48-42
-rw-r--r-- 1 root root 70 2005-09-05 16:23 unique_id.load
-rw-r--r-- 1 root root 244 2006-03-31 16:48 userdir.conf
-rw-r--r-- 1 root root 244 2006-03-31 12:44 userdir.conf.31-03-06_12-44-24
-rw-r--r-- 1 root root 244 2006-03-31 16:34 userdir.conf.31-03-06_16-34-05
-rw-r--r-- 1 root root 244 2006-03-31 16:48 userdir.conf.31-03-06_16-48-42
-rw-r--r-- 1 root root 66 2006-03-31 16:48 userdir.load
-rw-r--r-- 1 root root 66 2006-03-31 12:44 userdir.load.31-03-06_12-44-24
-rw-r--r-- 1 root root 66 2006-03-31 16:34 userdir.load.31-03-06_16-34-05
-rw-r--r-- 1 root root 66 2006-03-31 16:48 userdir.load.31-03-06_16-48-42
-rw-r--r-- 1 root root 70 2005-09-05 16:23 usertrack.load
-rw-r--r-- 1 root root 74 2005-09-05 16:23 vhost_alias.load


server1:/# ls -la /etc/apache2/mods-enabled
total 12
drwxr-xr-x 2 root root 4096 2006-04-20 23:08 .
drwxr-xr-x 9 root root 4096 2006-03-31 16:48 ..
lrwxrwxrwx 1 root root 36 2006-03-31 11:45 cgi.load -> /etc/apache2/mods-available/cgi.load
lrwxrwxrwx 1 root root 40 2006-03-31 11:50 include.load -> /etc/apache2/mods-available/include.load
lrwxrwxrwx 1 root root 37 2006-03-31 11:45 perl.conf -> /etc/apache2/mods-available/perl.conf
lrwxrwxrwx 1 root root 37 2006-03-31 11:45 perl.load -> /etc/apache2/mods-available/perl.load
-rw-r--r-- 1 root root 134 2006-04-20 23:08 php4.conf
lrwxrwxrwx 1 root root 40 2006-03-31 11:50 rewrite.load -> /etc/apache2/mods-available/rewrite.load
lrwxrwxrwx 1 root root 36 2006-03-31 11:50 ssl.conf -> /etc/apache2/mods-available/ssl.conf
lrwxrwxrwx 1 root root 36 2006-03-31 11:50 ssl.load -> /etc/apache2/mods-available/ssl.load
lrwxrwxrwx 1 root root 39 2006-03-31 11:50 suexec.load -> /etc/apache2/mods-available/suexec.load
lrwxrwxrwx 1 root root 40 2006-03-31 11:44 userdir.conf -> /etc/apache2/mods-available/userdir.conf
lrwxrwxrwx 1 root root 40 2006-03-31 11:44 userdir.load -> /etc/apache2/mods-available/userdir.load

Do you see something that i miss that should be in your Debian perfect setup?


Hans

Last edited by Hans; 22nd April 2006 at 23:10.
Reply With Quote
  #6  
Old 23rd April 2006, 10:36
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
Default For information

Falko,

for your information and to help you to the right track:

Before i started with squirrelmail, i tried a setup with Horde/IMP.
For that reason i read the documentation at http://www.horde.org and this thread: http://www.howtoforge.com/forums/sho...orde#post20195

During my preparations for Horde i did the following as mentioned in the thread above:

apt-get install php4-mcrypt
apt-get install libfile-type-perl libapache2-mod-php4 libfile-mmagic-perl

I guess my experience is not enough, but i did not succeed with Horde/IMP.
The installation process was a little to complicated for me, so finally i choose for squirrelmail.

So i removed the extra installed modules again with:

apt-get remove php4-mcrypt
apt-get remove libfile-type-perl libapache2-mod-php4 libfile-mmagic-perl

I think since then, I can not add new virtual hosts anymore in /etc/apache2/vhosts/Vhosts_ispconfig.conf

Only a vhost file is added like /etc/apache2/vhosts/Vhosts_ispconfig.conf_dd-mm-yy_hr-min-sec. but NOT within the /etc/apache2/vhosts/Vhosts_ispconfig.conf itself!

I also have to say that PHP-scripts with the websites i host do NOT function anymore !!

I really hope we can solve this.


Hans

Last edited by Hans; 23rd April 2006 at 13:22.
Reply With Quote
  #7  
Old 23rd April 2006, 15:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,794
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

Please make a backup of the file /etc/apache2/vhosts/Vhosts_ispconfig.conf.

Then rename the latest /etc/apache2/vhosts/Vhosts_ispconfig.conf_dd-mm-yy_hr-min-sec file to /etc/apache2/vhosts/Vhosts_ispconfig.conf

The run:

httpd -t

and post the error message here.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 23rd April 2006, 16:03
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
Smile

Till/Falko,

I was very worried but everything is ok now.
It was a puzzle to me.

Because i could not write changes via ISPConfig to the config-files, I installed your hotfix according
http://www.howtoforge.com/forums/showthread.php?t=3695

I also did:

ps -ax |grep apache2
killall apache2
rm -f /etc/apache2/mods-enabled/php4.conf
a2enmod php4
/etc/init.d/apache2 restart

Now everything is up and running again, without any failure!

Thanks for your reply anyway, i realy appreciate it!

Hans (happy again)

Last edited by Hans; 23rd April 2006 at 16:58.
Reply With Quote
  #9  
Old 23rd April 2006, 17:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Thumbs up

Quote:
Originally Posted by Hans
rm -f /etc/apache2/mods-enabled/php4.conf
a2enmod php4
/etc/init.d/apache2 restart
That's exactly what I would have suggested if you hadn't found out yourself.
__________________
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
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
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 16:16
No PHP on Virtual Hosts tmeyer Installation/Configuration 13 28th February 2006 19:44
apache and virtual hosts stored in postgresql variable Server Operation 3 28th December 2005 12:48
Duplicate virtual hosts bosei General 13 22nd December 2005 18:48
postfix config jmroth Installation/Configuration 6 18th September 2005 16:58


All times are GMT +2. The time now is 20:35.


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