Common Website Errors¶
Here's a list of common errors you might come across in your adventures as a website webmaster. We'll try our best to help solve them, but understand you'll need to understand the basics of how to edit files & file permissions. Reach out to fused if you're in doubt.
Internal Server Error¶
The error message itself simply says
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
There's a few possible solutions to an internal server error:
All folders must be chmodded to 755 and all php files to 655 or lower (644 recommended).
.htaccess references to php settings¶
Check your .htaccess file within the same folder for references to php_flag entries from .htaccess files are not supported on our system. If you require php flags you can create a php.ini file and place the statements there.
The best & quickest solution to finding the source is checking the 'error_log' file in the same folder.
Can't figure it out? contact us, we see these errors all of the time & can narrow down the culprit very promptly.
Fatal Error: Allowed Memory Size exhausted¶
You might have higher memory requirements than our default settings allow. Increasing your php memory is simple. Here are twp options below.
Adjusting it by editing a php.ini file¶
Edit the php.ini file in your public_html folder (or create one if it doesn't exist) and have the following values in it:
memory_limit = 64M
Adjusting it via cPanel¶
- Login to cPanel
- Navigate to the MultiPHP INI Editor
- Select the relevant domain in the dropdown.
- Adjust the settings as needed. In this case, you're looking for the memory_limit line.
The uploaded file exceeds the upload_max_filesize directive in php.ini¶
You've hit the maximum defined upload size of the server. You can adjust this as desired though, like such:
Edit the php.ini file in domain's docroot (usually "public_html" directory) and add these lines:
upload_max_filesize = 64M post_max_size = 64M
Save the file and you're done!
Cannot modify header information¶
"Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/config.php:40) in /home/user/public_html/index.php on line 6"
In order to sort it, edit the file referenced & look for excess whitespace at the end of the file. If you run into this specific error & have trouble solving it, contact fused.
554 Security Error¶
Warning: exec() disabled for security reasons¶
By default, we disable a series of PHP features that need exempted before they can be wielded. You can adjust these in your default php.ini file in public_html.
Warning: exec() has been disabled for security reasons in /home/username/public_html/script.php on line 5, you are permitted to override the restrictions and specify list of disallowed functions manually, or disable the restriction at all.
Enabling a php feature¶
- Go to domain's document root directory. This is usually the place you've uploaded your files to. In our case, it's /home/username/public_html.
- Find the file named php.ini. Open it up for editing.
- Look for disabled_functions line. Edit it as needed (recommended) by removing the specific feature you require or comment the whole line out (as last resort), placing comment sign ";" before it.
- Save the file and try your PHP script once more.
If you still run into trouble, contact Fused