Morning,
Hope everyone had a nice Christmas.
I received an email this morning notifying me that the Gallery script that I installed under fantastico recently needed upgrading from v 2.1.2 to 2.2.2 so I logged into the control panel, went to the fantastico page, and there was a clear instruction of how to do it. I clicked the link to go ahead and after a minute or two was informed that all had gone well and I just needed to click a last link to complete the process:
You MUST follow this link to finish upgrading: http://<wildsg.myzen.co.uk/gallery/upgrade/index.php
Doing this resulted in the following message:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@wildsg.myzen.co.uk 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.
So I looked in the server log:
[Sun Dec 30 12:10:48 2007] [error] [client 194.66.0.175] File does not exist: /data01/wildsg/public_html/500.shtml
[Sun Dec 30 12:10:48 2007] [alert] [client 194.66.0.175] /data01/wildsg/public_html/gallery/.htaccess: RewriteBase: argument is not a valid URL
The contents of the .htaccess file:
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} /d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} /v/([^?]+)\.davmount(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=webdav.DownloadDavMount&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /w(/[^?]*)?(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_controller=webdav.WebDav&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_path=%1 [QSA,L]
# END Url Rewrite section
Can anyone throw any light on this? I am guessing that this script has a mistake in it and the single forward slash that is the rewrite base is not valid.
Fortunately the instructions also explain how to roll back the changes, which I guess I'll do if I have to.
Thanks,
Pat