Page 1 of 1

404 php.dat not found

Posted: Thu Sep 14, 2006 1:43 pm
by aptnano
CMSMS 1.0.1 uploaded to Network Solutions Unix Apache 1.3.37 server with PHP 4.? and mySQL

Everything OK up through step 6 of the install, which is loaded in its own folder /htdocs/cmsms, rather than root.  When I open index.php in my browser I get:

The requested URL /~989102.1019253//~989102.1019253//cgi-bin/php.dat was not found on this server.

There is in fact a file php.dat in the directory /cgi-bin.  If I change its permissions from 770 to 777 I get an internal server error.

I don't have access to change the .htaccess file, which has been suggested in other posts.

Tech Support from NS says the cause of the error is the variable $_SERVER['SCRIPT_NAME'];, and suggests changing it to $_SERVER['PHP_SELF']; - but every instance I can find of the $_SERVER variable is the latter and not the former.

Any ideas what the problem is and how to fix it?

Re: 404 php.dat not found - resolved

Posted: Fri Sep 15, 2006 11:20 pm
by aptnano
Due to NS's configuration, I had to change all instances of the variable "$_SERVER['SCRIPT_NAME'];"  to  $_SERVER['PHP_SELF'];
This resolved the problem

Re: 404 php.dat not found

Posted: Wed Sep 20, 2006 2:12 pm
by jason
I have network solutions as well and im having the same problems.  What files did you need to change ?  Also, did you put the empty config file in the main directory or in the cmsms directory?  Help would be greatly appeciated

Re: 404 php.dat not found

Posted: Wed Sep 20, 2006 2:29 pm
by tsw
install.php has some SCRIPT_NAME stuff.

1.0.2 due today will have this thing sorted out

config.php place is in cmsms directory

Hope this helps

Re: 404 php.dat not found

Posted: Wed Sep 20, 2006 2:59 pm
by jason
Awesome1...finnally no more errors..thanks a million :) :)