2000px-PHP-logo.svgUbuntu Server 14.04 with Apache 2.4.

A while ago, we worked with a project to move some domains from one.com to a server we built for a company. Everything went smoothly until we tried logging into their order systems on the local server.

We came to the login page, but when we entered the correct password for login we got forwarded to a blank page (white) and couldn’t do anything.

The error

In the Apache error.log it showed us this:

Parse error: syntax error, unexpected end of file in /var/www/html/ordersystem/order_show_new.php on line 142

We got a connection to the database with a test file we did, so that part worked, but it didn’t load the rows in MySQL so that they generated as they should.

Old code

The code was old and built a few years ago. Also, the file (order_show_new.php) mixed up <? and <? php. Another thing was that the new environment had short open tags disabled.


Set short_open_tags to “ON” by changing this in php.ini located in /etc/php5/apache2/php.ini

short_open_tag = On

Of course this is a temporary solution and what you really should do is update your PHP code!


Pro tip

Install ownCloud and host your own private cloud. Download  the pre-configured ownCloud VM today!