500 Internal Server Error - php_value issue
HM2K
Joined: 2003-06-12
Posts: 53 |
Posted: Thu, 2006-01-12 15:59 |
The following information is required to get an answer: When I visit http://gallery.example.com/setup/index.php It gives me an error 500 Internal Server Error. But then when I visit the url, I get the following message: Quote:
Apache is not obeying the 'php_value' lines in your .htaccess file. Try entering the following into your web server's httpd.conf file: I tried adding the Directory parameter to .htaccess and the httpd.conf, but they both resulted in an error 500. How do I go about fixing this problem? |
|
Posts: 6818
You own example.com ? WOW ;)
Solution: Just delete .htaccess file in the setup/ folder of your Gallery.
Jens
--
Last Gallery v1 developer and translation manager.
Posts: 53
Please see rfc2606.
Deleting .htaccess in setup would mean that I cannot upload files larger than 2mb which is rather annoying.
Any better solutions?
Posts: 6818
well, if your host doesnt allow php settings ?! What can you do ?
So deleting this .htaccess is the only way to run Gallery on this server
Jens
--
Last Gallery v1 developer and translation manager.
Posts: 53
I own the host/server.
How do I allow php settings?
Posts: 6818
Just to the changes gallery suggest.
Then stop and start the webserver.
(Not restart)
Jens
--
Last Gallery v1 developer and translation manager.
Posts: 53
As I said in my original post. I made those changes to my "httpd.conf" and issued "apachectl graceful", the directory still gave me an error 500.
Where do I go from here?
Just checked my logs, it says:
gallery/setup/.htaccess: php_value not allowed here
So I tried re-adding the Directory line to the httpd.conf
I have the following now:
/usr/local/sbin/apachectl graceful: httpd gracefully restarted
Still says:
gallery/setup/.htaccess: php_value not allowed here
And I still get an error 500.
Any further suggestions?
Posts: 6818
nono
try stop and start.
not restart or somethig.
Jens
--
Last Gallery v1 developer and translation manager.
Posts: 53
/usr/local/sbin/apachectl stop: httpd stopped
/usr/local/sbin/apachectl start: httpd started
I didn't think that would make any difference.
Still the error 500.
Posts: 53
No solution to this problem then?
Posts: 6818
Well,
to be honest you are the first that i hear of where this does not work.
An reason could be that you placed this direction at a wrong place its overwritten by a later/other setting.
Jens
--
Last Gallery v1 developer and translation manager.
Posts: 53
I assure you, It has not been placed in the wrong place, and nothing was overwritten.
I have searched high and low about this issue.
It seems most people simply overlook it and just delete the .htaccess, limiting themselves to the 2mb upload.
This is not a real solution, its a "quick fix" solution.
I'm looking for a real solution.
Any further help will be much appreciated.
Posts: 6818
Well, the limit is set in (your) php.ini.
Many people can not change the limit.
So this *is* a real solution.
Jens
--
Last Gallery v1 developer and translation manager.
Posts: 53
I have already changed this to 10mb, however the script still errors or 500's
Why would they put a .htaccess file that doesn't work?
Posts: 53
And the beat goes on...
Still no real solution.
Posts: 53
I overcame this issue by adding
To my user directories in my httpd.conf
This isn't really a practical solution as it gives all the users too much control, rather than just a single directory.
This will have to do until I can figure out a better solution.
Posts: 1
You could set up that directory as an alias as follows:
and
In this example, magic_quotes_gpc is turned on only for http://example.com/foo.
The other directories are using whatever php values values from the php.ini.
I'm curious why Apache was grousing about the .htaccess files. Perhaps you had some naughty command in there? I can't reproduce your error; I'm running Apache 2.x, but I don't think that is the issue.
Cheers,
MD
Posts: 1
What if you create local php.ini for each gallery
and set your parameters there ?
post_max_size="10MB"
upload_max_filesize="10MB"
Suppose to work....
Everything can be done.