Internal server error after changin php.ini - php

So i was having issues while sending emails from my php code, the emails doulnd't get out from my domain, but they worked with in the domain, example, from info#domain.com to another_mail#domain.com it was ok, but from info#domain.com to my_personal_mail#gmail.com it wasn't. So i tried to add the following line to my php.ini:
sendmail_path="/mail"
And the following started to appear in my index (and all other pages):
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster#domain.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
After that I erased that line, but there was no turning back.
Also I tried to use the cpanel MultiPHP INI editor to override the php.ini file, but the problem still persist
Also i tried to add this line to my php.ini:
sendmail_path = "/usr/sbin/sendmail -t -i"
I wasn't able to find the server error log.

The solution was given by the support of my service, they "reloaded the php version" and "restoring" the permissions on the system files.

Related

Getting Error on Php Internal Server Error

I am getting Error i tried to find but did not get why getting Error.While its working fine on my localhost but not working on live server.
http://wellnessvisit.com/vascular-new/assets/global/plugins/jquery-file-upload/server/php/
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster#wellnessvisit.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.
Normally production servers are configured to hide all error information.
You can add these two lines in your main php file to see if there's a way to get the error information (temporarily, be sure to delete them after you're done debugging):
error_reporting(E_ALL);
ini_set('display_errors', 'On');
You can also check if there's an error_log file in the same folder as your PHP script, many servers log the errors to a file.
If no luck, with the previous lines, it might be a syntax error so the parsing is not completed.

The server encountered an internal error or misconfiguration and was unable to complete your request

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

Internal Server Error

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

Error in configuration file

I have copied my project folder from my live server to my local host and edited the config file as per localhost, but still i am displayed with the "Internal Server Error:500"
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 cannot understand what should be the problem here, please help me to track the issue here....
I found It, There was an issue with the apache setting, rewrite module was not activated... I rectified it..
Thank you all for your Guideline....

how to know if my users got a 500 Error?

my boss says "when I try to serf the website I get a server error... after a reload I get every thing back to normal". I think that he gets 500 error. how can I log it? I want to know when and where it happens. any ideas?
500 errors are logged in your web server's error log, for Apache that is usually error.log. You should be able to find all errors there, including the requesting IP and the exact message.
If you don't have access to the error logs, if you have Apache, you can try this in a .htaccess file:
ErrorDocument 500 /my_error_handler.php
my_error_handler.php would then send out an E-Mail to you or something. This won't give you the exact error message, though.
According to the comments, this is not the case on Apache, but is the case on IIS. If you think the error is related to your PHP code then it's possible this is what's causing the status 500 error.
There are several ini directives you can set to deal with server errors. I recommend having error logging switched on. See the following site for each ini directive:
http://www.addedbytes.com/drafts/php-ini-guide/php-ini-guide-error-handling-and-logging/
Add/Change/Uncomment the ones you want in your php.ini file.
With logging switched on, the following php code generates the following error string in the error log file:
<?php this_is_undefined(); ?>
error log -
[05-Jan-2010 12:44:29] PHP Fatal error: Call to undefined function this_is_undefined() in D:\websites\leaguers.co.uk\test.php on line 1

Categories