500 Internal Server Error for index.php code

August 25, 2013 15.1k views
See The Error_Log will upload here http://lx5.in/500error.txt i will buy a VPS and install zpanel and then add domain and upload script use FTP use Apache v2.2.15 (CentOS) DAVv2 PHP v5.3.3 Server now i'm gate 500 Internal Server Error. i don't understand these script come from script or some problem in server install or configar if now run my site i will gate 500 Internal Server Error. and then if i delete the .htaccess then if i access my site (eooly.com) i will gate server error. if i change the index.php any outher code like


. that have no problem its how hi with or with out .htaccess its work. .htaccess Code is RewriteEngine on RewriteCond %{HTTP_HOST} ^eooly\.com [NC] RewriteRule (.*) http://www.eooly.com/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} ^(.*(data|tmp|log).*\.php)$ RewriteRule .*$ – [F,L] RewriteCond %{REQUEST_FILENAME} ^(.*(assets|themes|data).*\.(css|png|js|jpeg|gif|jpg))$ RewriteRule .*$ $0 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] and index.php is 5.0'); define('MODE', 'debug'); if (defined('MODE')){ switch (MODE){ case 'debug': error_reporting(E_ALL & ~E_NOTICE); break; case 'released': error_reporting(0); break; default: exit('The application mode is not set.'); } } //file name define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); define('EXT', '.php'); define("BASEPATH",dirname(__FILE__).'/'); define("APPPATH",BASEPATH.'app/'); define("SYSPATH",BASEPATH.'core/'); define("MODPATH",BASEPATH.'modules/'); require_once SYSPATH.'core/Core.php'; pleas tell me what is the problem . if you need any ting more info tell me Thanks
4 Answers
Try following the steps outlined in this article? How to Install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 6
by Etel Sverdlov
This tutorial explains how to install Apache, how to install MySQL, how to change the root MySQL password, how to install PHP, and how to see what libraries are available. LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache ( the web server) , MySQL (the database), and PHP (the language). This tutorial is written for Centos.

I have exactly the same problem, followed strictly the tutorial:
- Latest Ubuntu
- ZPanel

1/ instead of logging through zpanel.mydomain.com I have to enter my droplet's ipaddress

2/ my domain.com shows an error 500. I am quite lost without any support team, on this, the ZPanel forum do not show anything as it seems to be more on the server config side.

All installation steps went well.

I am puzzled. Tried checking everything through ZPanel, checked again the DNS for the domain, they point well to DigitalOcean.

Any clue or troubleshooter?

Try temporarily removing your .htaccess files. If that doesn't work then most of the times it would be an error in your application, check the error logs or enable error reporting.

I installed the lamp image and I have error 500

Have another answer? Share your knowledge.