Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Huge Problem Error 500


Cyberspiritual

Recommended Posts

Posted

Hi,

My website was running since 4 years and then a couple of days ago I went on my shop and got this Error message:

 

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


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

 

Since I did not touch my website since a while I decided to contact my webhosting company.

 

Here's their reply:

Hi Will,

If you are getting this error, most likely you have permissions set too high
somewhere. We have recently upgraded  PHPsuexec which is an apache module which
increases security requiring that processes be ran as the user.

On most Apache servers, PHP runs as an Apache Module. As such, it runs, directly
in the user Nobody, but does not require the execute flag. This means that in
order to execute a PHP file, it simply needs to be world readable. The problem
is that this allows every other users on the server to read your PHP files!
Allowing other users to read your HTML files is not a problem, since they can be
displayed in Internet Explorer. However, PHP files are not readable, they are
parsed. Many scripts use a PHP file to store a database username and password.
This means that on another server every client could read your PHP files,
retrieve your password and access your databases.

A module called PHPsuexec is installed on all our servers, which executes PHP
scripts under your username. As such, instead of using everyones permissions it
uses the owners permissions. You can thus change the permissions of your PHP
scripts to : 0700 or 0400 and still be able to read and execute them. However,
these scripts will no longer be accessible to any other users. In fact,
PHPsuexec will refuse to execute a script if it is world-writable to protect you
from someone abusing one of your scripts.

The only required permission is owner-read (0400), but if you need to write to
that file, you need to also enable the owner-write permission (0600). The
execute permission is never required, and the group and everyone permissions can
be left to 0.

To add complexity to the issue, PHPsuexec, also validates the directories in
which PHP files are located. A PHP file cannot be execute in a directory that is
group-writable or world-writable. However, in order to access a directory, it
must be world-executable, which is safe to do. As such, directories containing
PHP files should have permissions 0755 or 0555.

Technical Support
EagerHost, Inc.

 

So have done what they requested, but It's still does not work!:(

 

Any help would be appreciated.

Regards,

Will

Posted

 

Ok so as requested, I have aso deleted .htaccess file on my website and created a file call php.ini

 

The file as been placed on my website and I have open it and wrote (register_globals=on)

 

But stil not able to see my website...: www.cyberspiritual.com

 

Will

Posted

you may need to modify your catalog\includes\configure.php file. If you post it here remove the database sensitive info.

Posted
you may need to modify your catalog\includes\configure.php file. If you post it here remove the database sensitive info.

 

As rquested... Thank you for your help...

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.myspiritgarden.com'); // eg, http://localhost - should not be NULL for productive servers
 define('HTTPS_SERVER', 'http://www.myspiritgarden.com'); // eg, https://localhost - 
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
 define('DIR_FS_DOCUMENT_ROOT', '/home/myspirit/public_html/');
 define('DIR_FS_CATALOG', '/home/myspirit/public_html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers
 define('DB_SERVER_USERNAME', '*********');
 define('DB_SERVER_PASSWORD', '********');
 define('DB_DATABASE', '*********');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

Posted
you have www.myspiritgarden.com in your configure.php file but the url you listed above was www.cyberspiritual.com?

 

Ho sorry,

Actually I have the same problem with both of my website... :'(

www.cyberspiriual.com and www.myspiritgarden.com

Posted
i can get to the myspiritgarden.com site just fine. the other one i just get a default page from your webhost. looks like you or your host doesn't have the httpd.conf file configured to serve index.php files (the DirectoryIndex setting should include index.php files).

 

I have change my index.php file to a regular .html file to avoid to lose all my SEO

 

 

Here are the 2 links to actual shop...where I have my Problems..

http://www.cyberspiritual.com/catalog/default.php

http://www.myspiritgarden.com/catalog/default.php

 

Thank You for your help..

 

Regards,

Will

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...