HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Internal server error (http://www.howtoforge.com/forums/showthread.php?t=60568)

Ghostdare 14th February 2013 17:28

Internal server error
 
Hello HTH users,

I've set up a WordPress site installing and everything but when I try to upload files via web I get an Internal Server Error >> The server encountered an internal error or misconfiguration and was unable to complete your request.

I've search to see if there are problems with latest Wordpress package and almost everyone said that is from mod_security and I must put in .htaccess
Code:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

but no efect. Can anyone point me in the right direction?

till 14th February 2013 19:20

Take a look in the error.log of the website, you will find the reason for the error listed there.

Ghostdare 17th February 2013 11:24

Quote:

Originally Posted by till (Post 292087)
Take a look in the error.log of the website, you will find the reason for the error listed there.

Hi Till,

Sorry for my late response, but I had no time to investigate until now. I've open an SSH connectiont to server and made an
Code:

tail -f /var/log/apache2/error.log
, then I've tried to upload an image via webpage and I didn't receive any errors.

Then I've entered in ISPC administration page and modify PHP handler. First tried with Mod-PHP and received The uploaded file could not be moved to /var/www/clients/client1/web3/web/wp-content/uploads/2013/02.. Then switch to suPHP and seems that now it's working OK.

till 18th February 2013 09:41

The recommended php handelr for wordpress is php-fcgi, but you have to enable the "suexec" checkbox then as well. This is much faster then using suphp.


All times are GMT +2. The time now is 05:27.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.