Web Hosting Talk







View Full Version : Aargh php and cgi not working


dutchie
02-17-2002, 05:54 AM
I moved my site to a new raq (from a raq3 with php installed to a raq4).

I moved the complete cgi directory in a tar, i edited the scripts so they would allow the new ip number, all permission are ok, but the only thing i get is "the server encoutered an internal error or misconfiguration".

I have php and cgi enabled for the site as well as for the main site on the raq, but it just won't work.
Any ideas please :(

dutchie
02-17-2002, 06:00 AM
php and perl are working from the web dir, so maybe moving it with a tar was not such a great idea ?

Cephren
02-17-2002, 06:14 AM
Check the scripts to see if the new SITE number has been switched. In many cases that is what happened. If a certain script such as config.php or some cgi script which requires the full root path to the cgi bin or something such as site56 on the old server, you have to edit the script to the new site number on script when it is on the new server. ZFor example if the new path is site22, change the full directory listing for the script.

Secondly, another problem is that you forgot to reupload with ASCII for the script or forgot to chmod it.

I dunno, try the above.

Cephren
02-17-2002, 06:18 AM
ie:

inside a script.

old server
/home/site34/web/cgi-bin/


new server
/home/site56/web/cgi-bin

dutchie
02-17-2002, 06:19 AM
i changed all paths in the scripts.

The problem was that the dir was 550, and it had 2 strange files in it that i could not get rid of.
i did a rm -r and that solved it.

Still don't know how i got in to that mess by tarring the dir.