I'm running a Linux server with cPanel installed.
I keep getting a 500 error when visiting a certain page, but I'm trying to find the logs that can provide me with more information.
Here's one place I've found some logs for it:
/usr/local/apache/domlogs/mydomain.com
But all that has is generic information stating that a 500 error occurred, but not necessarily what caused it. Where should I be looking for that information?
Running Apache2 in a CentOS, you can check the logs with the following command:
tail /usr/local/apache/logs/error_log
Related
I've researched about settings.php, index.php, and .htaccess but to no avail.
Basically I want to back up my production site to my acquia dev desktop 2 site. Here I made a back up of the folder and database.
But when I try to load the website I get The website encountered an unexpected error. Please try again later. and in the console log I get:
GET https://omgyay.dd:8443/favicon.ico 404 (Not Found) favicon.ico:1
GET https://omgyay.dd:8443/ 500 (500 Service unavailable (with message)) omgyay.dd/:1
Navigated to https://omgyay.dd:8443
and inside the apache log I get PDOException: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.'
Any information is helpful. Mostly on how to print out the specific error message. Again, this error message is after I migrated my code over locally and before I can see any webpages once installed.
In my case php7.0-crul missing.
sudo apt-get install php7.0-crul
service apache2 restart
solved the problem.
Figured out my question. Basically The GET error had nothing to do with the error itself, but the Apache log was very informative.
You can find the log by clicking on Acquia Dev Desktop on the top left > preferences > Logs > Apache errors. Then it opens up a .txt and scroll all the way to the bottom. It told me I had no access to the database.
I had the wrong username and password to my database in Settings.php and changed them.
I wanted to create a new blog so I tried, then was greeted with this message:
This development build of composer is over 60 days old. It is
recommended to update it by running "/usr/local/bin/composer
self-update" to get the latest version.
So I did, and it seemed fine, then I created the blog and I got this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, you#example.com 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.
Then I went to the directory of the blog and executed this command
chmod 755 -R storage
So as to allow composer to log my errors, the command seemed to be executed properly, I refreshed my blog in the browser and still, 500 error, so I check the logs, and still nothing, it is still not logging anything.
Then I check my previous projects and they had a 500 internal server error too.
I have probably tried solutions from 20+ different forums and threads and nothing will work. I have changed my .htaccess file to every variation of every correct answer I could fined (backup the original) but it is obviously not to do with the .htaccess because my previous projects worked and now they don't.
If anyone knows why this may be happening or if there's something else I should try, please help me, thank you.
Localhost showing 500 internal server error after changing port from 80 to 81.
I have configured project in IDE(Zend Studio).
I am seeing this:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, admin#localhost 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.
I am unable to understand this error as other projects on my system are working but when import any project in Zend Studio it shows above error.
There might be several reasons which can cause 500 Internal Server Error.
A Permissions Error-In most cases, a 500 Internal Server Error is due to an incorrect permission on one or more files or folders.
A PHP Timeout-If your script connects to external resources and those resources timeout, an HTTP 500 error can occur.
A Coding Error in .htaccess - While not as common, be sure to check that your site's .htaccess file is properly structured.
Try the following methods.Hope one of this might work.
Try refreshing the web page(you can use f5 key or ctrl+r)
Clear browser cache.
Delete browser cookies and restart the browser.
Troubleshoot as a 504 Gateway Timeout error instead.( It's not very common, but some servers produce a 500 Internal Server Error when in reality 504 Gateway Timeout is a more appropriate message based on the cause of the problem.)
I installed one product. I got error like this. I dont know how to resolve this. I checked Php.ini file, .htacess file and file permission too. All are correct. Anybody tell the solution.
Error Message :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webadmin#xxxxxx.xx 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.
The reason why the 404 error showed was because it was trying to write the error to a log, which you do not have enabled:
First thing to do is if you can get in the admin section of your site, make sure you have error reporting set to on:
Here is how to enable error reporting:
system_configuration_ADVANCED_Developer (system>configuration>ADVANCED>Developer)
When you open that tab you'll see a section called "log settings" choose the following:
-enabled to yes
- System Log File Name: system.log (or you can replace the system with another word like magensys.log)
-Exceptions Log File Name: exception.log
Now both these log files can be found in /var_log (www.domainhere.com/var/log or if it's a local installation magentofolder/var/local)
Try reloading the page where this error occurs and if it does occur again, then open your error log to see the error.
Most of the time it's due to extensions not agreeing with what you are trying to accomplish.
Option 2) Go to app_etc_local (app/etc/local) and delete the local.xml then reload your site and reinstall magento, this will not delete your site just reload your basic settings so you can everything back to normal.
If you could be a little more clear to what kind of product you were installing, where you were installing, etc... that would help pinpoint the error.
You need to check your php error log, if you don't know where it is you can do the following from your terminal:
$ -> `php -i | fgrep -i error`
You should see an entry for error_log. Tail that file and refresh the page, it should display the error.
Maybe this article
will help you. Try to use
<?php
# test.php
error_reporting(E_ALL);
ini_set('display_errors','On');
ini_set('error_log','my_file.log');
foreach(1 as $i);
ini_set('error_log','');
foreach(1 as $i);
ini_set('error_log','/dev/null'); #linux
foreach(1 as $i);
?>
I was facing this error because of wrong entries in httaccs file. Plz check your http access file
I am getting an error
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster#**.com 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."
on trying to access my site. I even tried on a different server that was working properly and yet the same result.
Kindly help me out.
Thanks in advance.
The 500 Internal Server Error status code is normally caused by a misconfiguration in the web server or a server-side app that fails to work properly or is crashing. Find the web server error log: you should find the exact details of the error right there. In Apache, logs tend to be under %ProgramFiles%\Apache Software Foundation\Apache2.2\logs (Windows) or /var/log/httpd (Linux).
The 404 Not Found status code when using the ErrorDocument directive is exactly that: you've customized your "not found" page with a file that does not exist. Find such directive in your Apache settings and fix it accordingly.
looks like you are having problem in your server configuration. If you are using apache server then it might be problem in .htaccess file check if there is any .htaccess file exists in your root folder if it is remove it and check it again
Sometimes it is a permission issue
Setting a 777 permission on a directory can cause this error