I just freshly installed osTicket version 1.8.1. However, I cannot get the setup or the main page to open. It just displays a white page, no HTML.The server error log contains this entry, repeated whenever I try to access the app:mod_fcgid: stderr: PHP Parse error:  syntax error, unexpected T_STATIC in {path}/include/class.plugin.php on line 110My server is on a Go Daddy account. The Go Daddy control panel says I'm running PHP 5.3, although phpinfo() says it is 5.2.17. MySQL 'version' = 5.0.96-log.I have a copy running locally on my OS X machine, and it works just fine.

I guess I posted that too soon. I believe I found my problem. A little more research revealed that "unexpected T_STATIC" occurs with PHP versions prior to 5.3. And since phpinfo() was reporting the version as 5.2.17, that would be a likely culprit. I used Go Daddy's control panel to upgrade the version to 5.4, and am waiting on that process to complete. I will report back if that fixes it.

I believe that you have already found the culprit to your error.  I will leave this thread open for now, but please keep us posted as to how you make out on this.

On Go Daddy shared hosting, if you have an .htaccess file with "addhandler" directives in it, that can cause Go Daddy's servers to disable FastCGI and consequently cause the PHP version to revert to 5.2.17, despite the PHP language setting active in the Hosting Control Center. So in my case, I had these entries in my .htaccess file, and had to comment them out:addhandler x-httpd-php-cgi .php4addhandler x-httpd-php5-cgi .phpaddhandler x-httpd-php5-cgi .php5So even though months ago I had set the PHP version to 5.3, and when this problem arose, I set it to 5.4, still the active PHP version was 5.2.17. Once those addhandler commands were commented out, I could immediately see that the correct PHP version 5.4 was active.And immediately after doing that, I could proceed with the osTicket setup.

By the way, the installation requirements on the osTicket wiki say that required PHP version is only 4.4 or better: http://osticket.com/wiki/Installation.Based on this issue, it appears that with the current version of osTicket, at least, you need PHP 5.3 or higher.

The wiki can be a little dated.  I've actually asked for permission to work on updating it. :)Yes, osTicket 1.8+ requires PHP 5.3. You may run into a similar issue if you are running cron locally.  To get around this you would get the path to PHP5.4 and use that when you create your cron job. I don't know what GoDaddy's path on your server is but instead of using "/user/bin/php" it probably should be something like "/user/bin/php54".

2 months later

WTF!!! My hostgator plan is running PHP 5.2.17.Now what? 

https://support.hostgator.com/articles/hosting-guide/hardware-software/php-5-3

Write a Reply...