I have just upgraded my site from Magento 1.7 to 1.9 and i'm now getting a 500 Internal Server Error. From other posts, I have done the following:
Deleted the maintenance.flag file
Changed permission on index.php to 755
Changed permission on downloader/index.php to 755
Changed permissions recursively on /var to 777
I've also gone through the files and all directories seem to be 755 and all main files '666'.
I'm still getting the 500 Internal Server Error. The bigger problem is that I have no error files in /log to be able to identify the problem. I created the folder /log (because it didn't exist) but no files are in there. I do not have access to the frontend of backend (because of the 500 Internal Server Error) to make sure that logging is turned on.
Any idea how I can try to troubleshoot / get these error logs?
Thanks!
It sounds like you're getting a plain, un-styled 500 Internal Server Error page, which means its your web server that's returning the error. This means any error logging is likely to be in your web server log files, and not PHP or Magento's log files.
You'll need to check with your system administrator to find out
What web server you're running
Where it's log files are
And if you have access to those log files
Common places these files might be are
/var/log/apache2/error_log
/var/log/nginx/...
However, every distribution keeps them in a different place.
I have a website template that I uploaded to my ftp server using FileZilla. However when I visit the domain I get the error:
Directory Listing Denied
This Virtual Directory does not allow contents to be listed.
in the console it displays a 403 forbidden error. After researching I recognize that the default web page inside the root directory is not set. All my attempts to set the default page have failed. Here is what I tried:
1) Logged into ftp server with FileZilla. Clicked File > Site Manager > Advanced and set the root directory. The root directory contains a file that says index.html
2) Created a .htaccess file in the root that contains the text "DirectoryIndex index.html"
Solutions involving IIS are welcomed as well.
Any advice on how I can get this fixed?
Unfortunately I did not have permissions to access the actual server files so I contacted the hosting company.
They resolved my issue I believe using the approach #alvits recommended, however they have not returned my request to confirm how they solved it.
Thanks for the support
I have this website. The problem I have is
The freelancer-ngohungphuc.rhcloud.com page isn’t working
freelancer-ngohungphuc.rhcloud.com is currently unable to handle this
request.
500
I develop this website using Laravel 5.1. So what I have to do to fix this error.
Although you can usually check logs to see why you are getting a 500 error, it would appear that this is due to insufficient permissions - which need to be set on the storage and bootstrap/cache folders (as per the docs).
The folders both need to be writeable by your web server, so whilst 777 permissions will definitely work 775 should be fine (and more secure).
Doing this via a command line can be done with the following command (run it with sudo if you need to elevate to root permissions) chomd 777 -R storage bootstrap/cache or chomd 775 -R storage bootstrap/cache.
Doing this via an FTP client is doable, generally speaking you can just right click on the folder and choosing to edit permissions from there.
In some instances, vendor may need to be done too - from my experiences anyway.
These folders are all inside the root project directory for your Laravel application.
Edit
Excerpt from bottom of error log:
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE)
This would indicate that the PHP version you are running is not >= 5.5.9 (one of the Laravel requirements).
This is confirmed in the screenshot shown of the OpenShift configuration. The version of PHP needs to be updated for Laravel to work - this wasn't just a permission issue.
I am using Joomla on my website. Now when i try to access the Extension Manager under Extensions, it gives me the following server error
The website encountered an error while retrieving
http://myURL/upload/administrator/index.php?option=com_installer.
It may be down for maintenance or configured incorrectly.
How do i fix it?
Thanks
You should definitely find more information in the error log, but a few things to look at are:
permissions: com_installer may need the tmp folder to be writable
configuration: is your tmp folder configured properly (you can check in system information)
corruption: try reinstalling the update package of Joomla over your current installation (the update package) with ftp/shell
improper routing configuration: you may have some wrong configuration either in your httpd.conf or .htaccess file (try renaming them quickly to see if this is the issue; look for an .htaccess in the administrator folder, and each parent up to the web root (so ./uploads/administrator, ./uploads, . )
I repeat, reading the error log (apache error_log or php error, or turn on debug in Joomla) should give you more than enough information to pinpoint the issue.
I had the same issue when I had forgotten to rename htaccess.txt to .htaccess
i use com_google_map_vision in my site.when i click on view map then following error display:-
500 Internal Server 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#openxcelltechnolabs.info 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.
how to solve this error
hope someone help me
In general the first step when dealing with this sort of error would be to turn on error reporting by putting the following at the beginning of your index.php:
ini_set('display_errors','On');
error_reporting(E_ALL);
Doing so might give you some php specific error message with which you will find it easier to troubleshoot the problem.
Error 500 generally occurs when the (web) server is not configured correctly. Many times it means that there is problem with your .htaccess file. Please check if you need to do any changes to .htaccess file things to work correctly.
According to Abhijeet Pathak, probably it is related with .htaccess file, specially with the Rewrite module
Check out the "Rewrite /" parameter
That's a long shot, but I recently had a similar issue with Community Builder extension. It turned out it was running out of memory, because it was not able to use all available memory. Adding the following line to .htaccess solved my problem:
RLimitMEM MAX MAX
I added it right at the beginning of the file. It supposedly allows a php script to use more of the memory assigned in php.ini...
Try recursively setting the permissions on components/com_google_map_vision and administrator/components/com_google_map_vision to 755 for folders and 644 for files.
This type of error is usually due to a permissions issue in Joomla.
Please change the file permission as follows.
All folders to 755
All files to 644
This error is caused by the permissions of files and folders.
The files should be chmod 644 and folders 755
Executing these instructions into the shell solves the problem
sudo find. -type f-print0 | xargs -0 chmod 0664
sudo find. -type d-print0 | xargs -0 chmod 0775
PD: enter the root of joomla before executing commands
Its because of IP address,you used foreign or totally different,therefore your host company denied permission,you should firstl identify your Ip then call them to add this Ip to their secure ip's.
If you are loading Joomla! on local development machine, remember to check if you have enabled mod_rewrite.Because this causes Internal Server Error 500. Most of the time it happens
Because it was never enabled in the first palce
A wamp/lamp update may have reset your .conf file
The new version of apache may use a different file name or a directory altogether for the .conf file.
Uncomment the row in httpd.conf or a file named something similar (whatever your wamp/lamp stack names it, eg. mine is httpd_uwamp.conf so yours may vary).
And you should be good to go, after restarting the server.
try this please.. All you have to do is put this line of code on your .htaccess file:
AddType x-mapp-php5 .php