HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   PHP Scripts not working after ip address change (

robba_duck 27th February 2008 13:14

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!

make-fun 27th February 2008 13:49

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?


robba_duck 27th February 2008 17:56

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

falko 28th February 2008 19:15

You must modify the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php.

robba_duck 29th February 2008 11:31

Hi falco thanks for your reply

Im a nooob as far as linux is concerned

so what to i need to change?



falko 1st March 2008 16:45

Replace the Addtype lines with your Addhandler code.

All times are GMT +2. The time now is 18:32.

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