This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

500 Internal Server Error
#1
[Not Solved] 500 Internal Server Error
If I install a script on my localhost xampp server everything is Ok.

If I install the same script on webserver running Sentora - I get 500 Internal Server Error.

My .htaccess file looks like this:
Code:
Options All -Indexes

How should I tweak the system / htaccess ?

Thanks
Reply
Thanks given by:
#2
[Not Solved] RE: 500 Internal Server Error
check logs.

What kind of paths the script might use? Zpanel is far more locked than xampp
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS

Reply
Thanks given by:
#3
[Not Solved] RE: 500 Internal Server Error
logs:

Code:
[Sun Dec 21 07:57:46.434815 2014] [:error] [pid 11326] [client xxx.xxx.xxx.xx:61204] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE) in /var/sentora/hostdata/zadmin/public_html/website_com/xxx/admin/index.php on line 230, referer: http://website.com/xxx/install/info.php
[Sun Dec 21 07:57:47.066957 2014] [:error] [pid 11240] [client xxx.xxx.xxx.xx:61205] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE) in /var/sentora/hostdata/zadmin/public_html/website_com/xxx/admin/index.php on line 230, referer: http://website.com/xxx/install/info.php
[Sun Dec 21 07:57:47.677063 2014] [:error] [pid 11244] [client xxx.xxx.xxx.xx:61206] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE) in /var/sentora/hostdata/zadmin/public_html/website_com/xxx/admin/index.php on line 230, referer: http://website.com/xxx/install/info.php
[Sun Dec 21 07:58:09.735045 2014] [:error] [pid 11241] [client xxx.xxx.xxx.xx:61215] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE) in /var/sentora/hostdata/zadmin/public_html/website_com/xxx/admin/index.php on line 230
[Sun Dec 21 07:58:15.848940 2014] [:error] [pid 11328] [client xxx.xxx.xxx.xx:61217] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE) in /var/sentora/hostdata/zadmin/public_html/website_com/xxx/admin/index.php on line 230
[Sun Dec 21 07:58:32.704726 2014] [:error] [pid 11242] [client xxx.xxx.xxx.xx:61218] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE) in /var/sentora/hostdata/zadmin/public_html/website_com/xxx/admin/index.php on line 230

paths:

include '../config.php';
include '../core/classes/example.php';
include '../core/classes/example2.php';
include '../core/classes/example3.php';


maybe it's version of PHP?(xampp has a newer one) or it's about file rights? btw. tried to change everything to 777, but nothing helps..
Reply
Thanks given by:
#4
[Not Solved] RE: 500 Internal Server Error
line 230 you have the issue there....

May be this don't work on php shipped with setnora / 5.4.

compare the PHP you have.
Check

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS

Reply
Thanks given by: blackside
#5
[Not Solved] RE: 500 Internal Server Error
The script probably has short tags.
Either enable short tags in the php.ini or update the script's code with full tags.
Code:
short_open_tag=On
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by: blackside
#6
[Not Solved] RE: 500 Internal Server Error
Thank you TGates & Me.B ! It works with "short_open_tag=On" ! Smile
I appreciate your help and time!
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
Having both HTTP & HTTPS (Port 443 and Port 80) sites on a server dsmarter 15 21 228 08-22-2020, 02:49 PM
Last Post: kenzopoker1
redirect error after letsencrypt + subdomain mizerek 1 505 08-06-2020, 04:54 AM
Last Post: mizerek
Critical Error: [0100] - Unable to connect or authenticate to the Sentora database whatshisface77 1 476 07-31-2020, 10:58 AM
Last Post: whatshisface77

Forum Jump:


Users browsing this thread: 1 Guest(s)