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 27th February 2008, 13:14
robba_duck robba_duck is offline
Junior Member
 
Join Date: Oct 2007
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Cool PHP Scripts not working after ip address change

Ok Here is my problem:

I had to move my server after loosing the internet so when i got it to its destination i had to set it up for a new ip address.

not knowing how to do so i just went throught most of the config files and changed the ip address manually for example in vhosts and so on.

Ever since the server has run fine except for PHP.

So i looked in the vhosts and changed a line that had Addtype to add Handler
And Wow the PHP would work!

But the next day It had stopped! so i checked the vhosts and my altered file and been and a new one put in its place with Addtype ?

now after changing the file daily! enough is enough so any one know what may be going on?

Please help me!
Reply With Quote
Sponsored Links
  #2  
Old 27th February 2008, 13:49
make-fun make-fun is offline
Member
 
Join Date: Jan 2008
Posts: 92
Thanks: 8
Thanked 8 Times in 7 Posts
Default

Hi there,

this would be due to the ISPConfig updating/rewriting those config files I think.

Have you put the new IP into the control panel Management > Server > Settings ??
What does it read there right now?

Cheers
Reply With Quote
  #3  
Old 27th February 2008, 17:56
robba_duck robba_duck is offline
Junior Member
 
Join Date: Oct 2007
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Cool IP address

Hi as soon as the server was back online after changing the ip address in the files i went to the gui and changed the ip in all the menus and it has not changed.

and just to confirm The ip address Is correct and dose not change it self its just the vhosts file changes the AddHandler to AddType
Reply With Quote
  #4  
Old 28th February 2008, 19:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

You must modify 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
  #5  
Old 29th February 2008, 11:31
robba_duck robba_duck is offline
Junior Member
 
Join Date: Oct 2007
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default modify?

Hi falco thanks for your reply

Im a nooob as far as linux is concerned

so what to i need to change?

sorry!

Reply With Quote
  #6  
Old 1st March 2008, 16:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Replace the Addtype lines with your Addhandler code.
__________________
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
php as cgi thedoc Installation/Configuration 16 28th December 2006 18:14
PHP not working jefash General 10 28th May 2006 08:48
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 13th March 2006 23:58
all my site go to /var/www/ Absolusteph Installation/Configuration 14 11th March 2006 21:27
vhosts not working correctly heyp Installation/Configuration 5 30th November 2005 18:01


All times are GMT +2. The time now is 14:19.


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