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 20th October 2006, 14:54
tijn_tux tijn_tux is offline
Member
 
Join Date: Aug 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing the default errorpages

Hi all!

Having ISPconfig installed, it works great! only 1 thing:

I want all the errorpages for all the sites to be a single php file which generates the error doc.

On the old server, i had an alias which uses mod_alias /error/ /export/common/errorpages/errordoc.php

Is it possible to do this with ISPconfig?

Thnx in advance,

tijn
Reply With Quote
Sponsored Links
  #2  
Old 21st October 2006, 12:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
Default

Yes, I think so. Have you tried to set this alias in your apache configuration?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 21st October 2006, 21:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You might have to comment out the error pages directives in the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php.
__________________
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
  #4  
Old 25th October 2006, 11:05
tijn_tux tijn_tux is offline
Member
 
Join Date: Aug 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default thnx

Ok, i edtited the lines in config.lib.php the ErrorDocument now points to the correct file, only, this doesnt update my existing Vhost file? any way to do this without losing content in the file?


Thnx
Reply With Quote
  #5  
Old 25th October 2006, 11:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
Default

The vhost file will be updated when you change a setting in one of your websites and hit save.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 25th October 2006, 12:02
tijn_tux tijn_tux is offline
Member
 
Join Date: Aug 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I already did that, but it seems it doesnt update, how lang can this take?

even added a new site, but this one still isnt in the vhost file....

Thnx

tijn
Reply With Quote
  #7  
Old 26th October 2006, 10:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
Default

Are there any copies of the Vhost_ispconfig file with the date appended in the same directory?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 26th October 2006, 12:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Maybe you built in a syntax error when you changed the file.
Have a look at Till's question, and please post the output of
Code:
ls -la /root/ispconfig
.
__________________
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
  #9  
Old 26th October 2006, 16:50
tijn_tux tijn_tux is offline
Member
 
Join Date: Aug 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey,

@till, yes there are but it are just the normal ISPconfig copies i guess, here is a list:
Code:
afab1:/etc/apache2/vhosts# ls
Vhosts_ispconfig.conf                    Vhosts_ispconfig.conf_25-10-06_11-45-04  Vhosts_ispconfig.conf_25-10-06_16-16-40
Vhosts_ispconfig.conf_25-10-06_10-55-03  Vhosts_ispconfig.conf_25-10-06_11-57-28  Vhosts_ispconfig.conf_25-10-06_16-17-47
Vhosts_ispconfig.conf_25-10-06_10-57-58  Vhosts_ispconfig.conf_25-10-06_16-09-33  Vhosts_ispconfig.conf_25-10-06_16-42-54
Vhosts_ispconfig.conf_25-10-06_11-02-01  Vhosts_ispconfig.conf_25-10-06_16-10-25  Vhosts_ispconfig.conf_25-10-06_16-44-12
Vhosts_ispconfig.conf_25-10-06_11-14-58  Vhosts_ispconfig.conf_25-10-06_16-11-37  Vhosts_ispconfig.conf_25-10-06_16-45-33
Vhosts_ispconfig.conf_25-10-06_11-20-17  Vhosts_ispconfig.conf_25-10-06_16-12-39  Vhosts_ispconfig.conf_25-10-06_16-46-50
Vhosts_ispconfig.conf_25-10-06_11-21-22  Vhosts_ispconfig.conf_25-10-06_16-13-53
Vhosts_ispconfig.conf_25-10-06_11-22-24  Vhosts_ispconfig.conf_25-10-06_16-15-43
@Falko

here is the output:

Code:
afab1:/etc/apache2/vhosts# ls -la /root/ispconfig
total 84
drwxr-xr-x   9 root root  1024 2006-10-25 16:46 .
drwxr-xr-x   8 root root  1024 2006-10-26 10:30 ..
-rwxr-xr-x   1 root root 54024 2006-09-05 14:05 cronolog
-rwxr-xr-x   1 root root  9673 2006-09-05 14:05 cronosplit
drwxr-xr-x  12 root root  1024 2006-09-05 13:59 httpd
drwxr-xr-x  12 root root  1024 2006-09-05 14:05 isp
-rw-r--r--   1 root root     8 2006-10-25 16:46 .old_path_httpd_root
drwxr-xr-x   6 root root  1024 2006-09-05 13:57 openssl
drwxr-xr-x   6 root root  1024 2006-09-05 14:03 php
drwxr-xr-x   4 root root  1024 2006-09-05 14:05 scripts
drwxr-xr-x   4 root root  1024 2006-09-05 14:05 standard_cgis
drwxr-xr-x   2 root root  1024 2006-09-05 14:05 sv
-rwx------   1 root root  9389 2006-09-05 14:05 uninstall
Thnx for helping me out guys!

grtz tijn
Reply With Quote
  #10  
Old 26th October 2006, 18:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
 
Default

These copies are not normal, they are created when your httpd.conf is incorrect and the apache server wont start with this configuration.

Please make a backup of the file Vhosts_ispconfig.conf, then rename the latest Vhosts_ispconfig.conf_...... file to Vhosts_ispconfig.conf and run:

httpd -t

to get the apache error message.
__________________
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
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
Amavisd.conf Problem ven0x Installation/Configuration 1 30th September 2006 23:58
changing the default apache document root jeanjacquesjeanjacques Installation/Configuration 6 2nd January 2006 17:21
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs pontifex HOWTO-Related Questions 2 26th October 2005 17:54
Changing default settings for mail accounts morphinex General 7 12th August 2005 12:12


All times are GMT +2. The time now is 08:24.


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