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
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
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

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#3
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
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

200$ free to start your VPS 60 days credit
Reply
Thanks given by: blackside
#5
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 - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: blackside
#6
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
Repo update error hostingms 3 6 ,827 02-14-2024, 09:20 AM
Last Post: TGates
apt-get install mod_ssl ERROR CMs222 9 28 ,342 11-11-2022, 09:14 PM
Last Post: zustudios
Sentora debug and error files johnnyp 0 1 ,593 10-27-2022, 06:16 PM
Last Post: johnnyp

Forum Jump:


Users browsing this thread: 3 Guest(s)