Why no php opening tags on any php files?
Closed this issue · 6 comments
When i run "berryio" it just prints the file on the terminal... i examine the file and it looks to be a php file with no <?php tag at the beggining... only <?
My understanding of php is that if there is no <?php tag it will interpret at html and thus just print the file. I examined more of the .php files and non of them have the opening tag. Please explain, im sure I am missing something.
The install script should have installed the following file: https://github.com/NeonHorizon/berryio/blob/master/default_config/php5/cli/conf.d/berryio.ini
This allows <? to be used instead of <?php
If you ran the install script it may be that you have an old version of Raspbian that doesn't use the conf.d type of configuration for PHP.
Brand new Raspbian install as of last night and freshly updated as well.
So i checked the php config and your file wasnt there, so I manually put it there and now the php files run with the short open tag, however I am getting all sorts of errors when I just try to run "berryio help". Might be related to the apache config changes I had to make in the comment below???
Also there are some syntax changes you will need for the apache configuration if you want it to be compatible with the latest Raspbian...I had to change to these lines in the installer
a2dissite 000-default.conf || { echo -e "Install failed!" 1>&2; exit 1; }
a2ensite berryio.conf || { echo -e "Install failed!" 1>&2; exit 1; }
and I had to remove "Options Indexes None" from the apache conf file in order to get apache to start.
Interesting, did you do a clean install of the latest version of BerryIO as "Options Indexes None" was removed in this commit on the 10th October?
f6facc8
well, actually I was working off of a fork... I just updated to your master and now everthing works. Sorry for the hassle.
LOL, thats a relief, I thought I was in for a few days work there :)