Author Topic: Help! Websites in PHP - Internal Server Error!  (Read 10693 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Help! Websites in PHP - Internal Server Error!
« on: March 19, 2015, 09:00:21 PM »
Hello. Help! Simple HTML sites work .

4 days trying to run websites in PHP. Indicates 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, *****@*****.ru 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.

Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips Server at foresthouse.ru Port 80"

Re: Help! Websites in PHP - Internal Server Error!
« Reply #1 on: March 19, 2015, 09:52:28 PM »
Seems like permission issue. Can you check cat /usr/local/apache/logs/error_log and see if it show you something. Also look in the link below:

http://wiki.centos-webpanel.com/500-internal-server-error
« Last Edit: March 19, 2015, 10:30:09 PM by brijendrasial »

Offline
*
Re: Help! Websites in PHP - Internal Server Error!
« Reply #2 on: March 20, 2015, 04:29:26 AM »
Seems like permission issue. Can you check cat /usr/local/apache/logs/error_log and see if it show you something. Also look in the link below:

http://wiki.centos-webpanel.com/500-internal-server-error

Hello! This is my error_log

[Fri Mar 20 04:26:25 2015] [crit] [client 37.147.209.9] configuration error:  couldn't perform authentication. AuthType not set!: /
[Fri Mar 20 04:26:30 2015] [crit] [client 37.147.209.9] configuration error:  couldn't perform authentication. AuthType not set!: /
[Fri Mar 20 04:26:33 2015] [error] [client 37.147.209.9] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Mar 20 04:26:34 2015] [error] [client 187.94.99.195] SoftException in Application.cpp:249: File "/home/admin/sadmeb.ru/index.php" is writeable by group, referer: http://www.sadmeb.ru/promo/otbel.html
[Fri Mar 20 04:26:34 2015] [error] [client 187.94.99.195] Premature end of script headers: index.php, referer: http://www.sadmeb.ru/promo/otbel.html
[Fri Mar 20 04:26:40 2015] [error] [client 95.167.189.108] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Mar 20 04:26:45 2015] [error] [client 66.249.67.17] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Mar 20 04:26:45 2015] [error] [client 95.167.189.108] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Mar 20 04:27:05 2015] [error] [client 141.8.147.2] SoftException in Application.cpp:249: File "/home/admin/sadmeb.ru/index.php" is writeable by group
[Fri Mar 20 04:27:05 2015] [error] [client 141.8.147.2] Premature end of script headers: index.php
[Fri Mar 20 04:27:05 2015] [error] [client 217.118.79.45] SoftException in Application.cpp:249: File "/home/admin/\xd0\xb3\xd0\xb5\xd0\xbb\xd0\xb5\xd0\xbd\xd0\xb4\xd0\xb6\xd0\xb8\xd0\xba-\xd0\xba\xd0\xb2\xd0\xb0\xd1\x80\xd1\x82\xd0\xb8\xd1\x80\xd1\x8b.\xd1\x80\xd1\x84/index.php" is writeable by group, referer: https://www.google.ru/
[Fri Mar 20 04:27:05 2015] [error] [client 217.118.79.45] Premature end of script headers: index.php, referer: https://www.google.ru/
[Fri Mar 20 04:27:06 2015] [error] [client 217.118.79.45] File does not exist: /home/admin/\xd0\xb3\xd0\xb5\xd0\xbb\xd0\xb5\xd0\xbd\xd0\xb4\xd0\xb6\xd0\xb8\xd0\xba-\xd0\xba\xd0\xb2\xd0\xb0\xd1\x80\xd1\x82\xd0\xb8\xd1\x80\xd1\x8b.\xd1\x80\xd1\x84/favicon.ico
[Fri Mar 20 04:27:07 2015] [crit] [client 141.8.147.5] configuration error:  couldn't perform authentication. AuthType not set!: /dreves_grib.php
[Fri Mar 20 04:27:14 2015] [crit] [client 37.147.209.9] configuration error:  couldn't perform authentication. AuthType not set!: /
[Fri Mar 20 04:27:21 2015] [error] [client 95.167.189.108] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Mar 20 04:27:22 2015] [error] [client 66.249.67.9] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.


Re: Help! Websites in PHP - Internal Server Error!
« Reply #3 on: March 20, 2015, 09:15:03 AM »
did you do as explained in the link below:

http://wiki.centos-webpanel.com/500-internal-server-error

Offline
*
Re: Help! Websites in PHP - Internal Server Error!
« Reply #4 on: March 20, 2015, 09:25:57 AM »

Offline
*
Re: Help! Websites in PHP - Internal Server Error!
« Reply #5 on: March 20, 2015, 09:29:32 AM »
httpd.conf conf

ServerRoot "/usr/local/apache"

Listen 12.34.56.78:80


Listen 108.61.210.142:80


<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>

User nobody
Group nobody

</IfModule>
</IfModule>

ServerAdmin xxxxxxx@xxxxxxx.ru

ServerName foresthouse.ru:80


DocumentRoot "/usr/local/apache/htdocs"

<Directory />
    Options FollowSymLinks
    AllowOverride all
    Order deny,allow
     Allow from all
</Directory>


<Directory "/home/admin/public_html">

 Options Indexes FollowSymLinks Includes ExecCGI

    AllowOverride all
    Order deny,allow
    Allow from all

</Directory>


<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>


<Files "^\.ht">
    Order allow,deny
    Allow from all
    Satisfy All
</Files>


ErrorLog "logs/error_log"

#LogLevel warn

<IfModule log_config_module>
   
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

   
    CustomLog "logs/access_log" common

       
    #CustomLog "logs/access_log" combined
</IfModule>

<IfModule alias_module>
   
    ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"

</IfModule>

<IfModule cgid_module>
   
    #Scriptsock logs/cgisock
</IfModule>


<Directory "/usr/local/apache/cgi-bin">
    AllowOverride all
    Options None
    Order allow,deny
    Allow from all
</Directory>


DefaultType text/plain

<IfModule mime_module>
   
    TypesConfig conf/mime.types

    AddType application/x-gzip .tgz
   
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
 
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

   AddHandler cgi-script .cgi

    #AddHandler type-map var

    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
   
</IfModule>

#MIMEMagicFile conf/magic

#EnableMMAP off
#EnableSendfile off


# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
Include conf/extra/httpd-autoindex.conf

# Language settings
#Include conf/extra/httpd-languages.conf

#User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
#Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Include /usr/local/apache/conf/sharedip.conf
Include /usr/local/apache/conf.d/*.conf
ExtendedStatus On
<Directory "/home/admin">
        suPHP_UserGroup nobody nobody
</Directory>

Offline
*
Re: Help! Websites in PHP - Internal Server Error!
« Reply #6 on: March 20, 2015, 09:31:11 AM »
vhosts.conf

<VirtualHost 108.61.210.142:80>
    ServerName foresthouse.ru
   ServerAlias www.foresthouse.ru
    DocumentRoot /home/admin/public_html
   
    <Directory /home/admin/public_html>
        DirectoryIndex index.php index.html index.htm
      AllowOverride All
        Require all granted #<-- 2.4 New configuration
    </Directory>
      
       ScriptAlias /cgi-bin/ "/home/admin/public_html/cgi-bin"
    <Location /cgi-bin>
        Options +ExecCGI
    </Location> 

Offline
*
Re: Help! Websites in PHP - Internal Server Error!
« Reply #7 on: March 20, 2015, 09:32:28 AM »
sharedip.conf

<VirtualHost 108.61.210.142:80>
    ServerName foresthouse.ru
    DocumentRoot /home/admin
    ServerAdmin xxxxxxx@xxxxxxx.ru
    <IfModule mod_suphp.c>
        suPHP_UserGroup nobody nobody
    </IfModule>
</VirtualHost>
<Directory "/">
      Options Indexes FollowSymLinks Includes ExecCGI

  AllowOverride None
    Order deny,allow
    Allow from all

</Directory>

Re: Help! Websites in PHP - Internal Server Error!
« Reply #8 on: March 20, 2015, 02:51:12 PM »
Check if user permission of file's are correct. You need analyse everything.