Receiving an error suphp internal server error on the website? We can help you fix it.
This error occurs due to many reasons which include improper permissions, ownerships and incompatible PHP version.
At Bobcares, we receive requests to resolve errors related to suPHP as a part of our Server Management Services.
Today, let’s see what causes this suPHP error to occur and see how our Support Engineers fix it.
What causes suphp internal server error to occur?
We’ve seen many of our customers experience this error in the website. This error arises due to many reasons.
It includes incorrect permissions set for the files or folders, incorrect ownership set to the files and folders.
Also, if there is any error in the .htaccess file then it will also cause an error.
Incompatible PHP version can also be another reason for this error to occur.
How we fix suphp internal server error?
Recently, one of our customers approached us with an error ‘internal server error’.
Now, let’s see how our Support Engineers fix this error.
Incorrect permissions
Our Support Engineers started troubleshooting the error by checking the logs. We found that there was nothing helpful available in the suPHP logs.
While checking, we found that few files had incorrect permissions. So we ran the below command to fix the file permission.
chmod -R 644 /home/username/public_html
Also, we ran the below command to set the ownership of the files to username itself,
chown -R username:username /home/username/public_html/*
Finally, this fixed the error.
Editing the .htaccess
In another case the error was the same. However, the permissions of the files and folders was not the problem.
So we tried editing the .htaccess file. We added the below code within it.
Also, we added the below code in php.ini file under public_html.
register_globals = On
allow_url_fopen = On
upload_max_filesize = 80M
post_max_size = 80M
memory_limit = 80M
upload_tmp_dir = /home/user/tmp
max_execution_time = 20000
Finally, this resolved the error.
[Need assistance in fixing suPHP errors? – We’ll help you]
Conclusion
In short, the suPHP internal server error occurs due to permissions or ownership error or due to incompatible PHP version. Today, we saw how our Support Engineers fix this error.
0 Comments