HTTP 500 Internal Server Error

Forum for questions and support relating to the 1.25.x releases only.
Locked
Karlwyatt
Posts: 5
Joined: Thu Dec 22, 2011 2:38 am

HTTP 500 Internal Server Error

Post by Karlwyatt »

I had a test system running on a 32bit OS, but ever since moving to the 64bit system i'm having lots of issues. This is on CENTOS 6.2 and again i'm a linux and ZM noob here.

I am getting a Http 500 Internal Server Error when i go to http : //{ip}/zm - if i go to just http : //{ip} i get the apache landing page, so i don't think its apache.

I went into the apache logs and found this: unexpected $end in /var/www/html/zm/includes/functions.php on line 2437

I did a bit of Googling and searching this forum and i found something about chaing the Short_open_Tags in the php.ini file to "On" which i did (i think):

; short_open_tag
; Default Value: On
; Development Value: On
; Production Value: On

Any other ideas? or did i do the above wrong? I also tried removing the ';' before each and that didn't help.

Also restarted httpd after every change attempt.
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: HTTP 500 Internal Server Error

Post by bb99 »

There's at least 2 short tag values in php.ini. The one you're interested in is the second one; down around line 229? Anyway have another look.
humbytheory
Posts: 13
Joined: Mon Aug 15, 2011 10:26 pm

Re: HTTP 500 Internal Server Error

Post by humbytheory »

I was having the same error. I change this line in my /etc/php/php.ini

Code: Select all

short_open_tag = Off
to this:

Code: Select all

short_open_tag = On
Be sure to remove the ";" from the beginning of the line as lines starting with ";" are treated as Comments in /etc/php/php.ini and are ignored.

After that I restarted the Apache daemon and all was well.
Hope that helps.
humbytheory
Posts: 13
Joined: Mon Aug 15, 2011 10:26 pm

Re: HTTP 500 Internal Server Error

Post by humbytheory »

hey Karlwyatt, it just occured to me that an easy way to confirm if your have short_open_tag set to on is to create a page to display php settings. You can do that by making a php doc that contains just the the following line:

Code: Select all

<?php phpinfo(); ?>
Just name it whatever.. for example name it "info.php" and after you add that line browse to it: http://your_ip_address/info.php

It should show all of the PHP details. Search the page for short_open_tag set and it should say if it's on or off.
Karlwyatt
Posts: 5
Joined: Thu Dec 22, 2011 2:38 am

Re: HTTP 500 Internal Server Error

Post by Karlwyatt »

You guys were right, there were two places that contained short_open_tag, i found the other and it works great now.

Thanks
Locked