Is there a way to modify the .htaccess file so that it works with PHP in safe mode? I have a site for which the database has been moved and the server updated. The site is no longer working although the configuration file has been changed to reflect the changes in the db name and password. The IT person at the Univeristy where this is located thinks there is a problem with the .htaccess file but I am not sure how to deal with this. I want to upgrade the installation but can't even login to the site given the current configuration problems.

Thanks

Comments

wellsy’s picture

try removing the .htaccess file and see if that helps

if that works (the site is visable) you may need to disable clean urls (if you have that setup)

you will need to login using the method

http://www.example.com/?q=user/login

then visit

http://www.example.com/?q=admin/settings

to disable clean url's

wellsy

orchidsonline.com.au

jbro’s picture

Thanks a lot for the help. That is better but I've still got issues.

Now I get a login page but at the top it says:

"Note that the value of PHP's configuration option magic_quotes_gpc is incorrect. It should be set to '0' for Drupal to work properly. Either configure your webserver to support .htaccess files so Drupal's .htaccess file can set it to the proper value, or edit your php.ini file directly. This message will automatically dissapear when the problem has been fixed."

I don't have access to the php.ini file, which I'm assuming is part of the PHP implementation on the university's server. When I log in I get a plain white page that says the same thing as well as the following two lines:

"warning: Cannot modify header information - headers already sent by (output started at /share/web/soci/flacks/courses/includes/common.inc:86) in /share/web/soci/flacks/courses/modules/user.module on line 668."

"warning: Cannot modify header information - headers already sent by (output started at /share/web/soci/flacks/courses/includes/common.inc:86) in /share/web/soci/flacks/courses/includes/common.inc on line 472."

Any advice would be much appreciated. Thanks!!!

wellsy’s picture

somone else may be able to help with that one.

glad the other helped

wellsy

orchidsonline.com.au

sangamreddi’s picture

You can done it from the sites/settings.php or
if your host allows you can upload a php.ini with (magic_quotes_runtime 0) file to your drupal site directory.

Sunny
www.gleez.com