Magento Forum

Issue with CGI on PHP4
 
davedavedave
Sr. Member
 
Avatar
Total Posts:  238
Joined:  2007-08-31
 

I’m getting this 404 error:

Not Found

The requested URL /cgi-bin/php5-cgi/beta/magento/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

It’s getting a 404 because the magento folder is actually located in:

/html/beta/magento/index.php

This is what I’m using for .htaccess:

php_flag magic_quotes_gpc off
php_flag short_open_tag on

Action php5-cgi /cgi-bin/php5-cgi
AddHandler php5-cgi .php

DirectoryIndex index.php

RewriteEngine on

RewriteCond %{REQUEST_URI} !^/media/
RewriteCond %{REQUEST_URI} !^/skin/
RewriteCond %{REQUEST_URI} !^/js/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php

Any ideas how I can fix this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
beazleybub
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

Did you upload the php5-cgi binary to your server?
You should put it in the cgi-bin directory and chmod it to 755 then edit your htacces Action line to point to the location of the php5-cgi.

 
Magento Community Magento Community
Magento Community
Magento Community
 
davedavedave
Sr. Member
 
Avatar
Total Posts:  238
Joined:  2007-08-31
 

Yes, I did.  As I mentioned you can see the error is because it’s looking in the wrong directory for the magento install, but not sure how to fix it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
beazleybub
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

Dave try changing the action line to:

Action php5-cgi /beta/cgi-bin/php5-cgi

Who do you host with?

 
Magento Community Magento Community
Magento Community
Magento Community
 
davedavedave
Sr. Member
 
Avatar
Total Posts:  238
Joined:  2007-08-31
 

The cgi-bin folder is in a different directory (I didn’t actually post the full directory)....so what you’re saying above would not work.  Right now it’s pointing to the correct CGI file, but I’m guessing in that or something is looking for magento in the same cgi-bin directory....when reality it’s not there.  Does that make sense?

I’m hosted on Media Temple (http://www.mediatemple.net)

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top