I've just installed Gallery on my names.co.uk shared server using a 'one click' installer in the names.co.uk control panel and everything went OK but when I clicked on the administration URL link it said 'Gallery requires short_open_tag to be on'.
Googling this gave me a number of ways to switch it on but I would needed to be able to type at a command prompt that I don't seem to have. So my question basically is am I OK with a basic shared server package or do I need something else?
Posts: 27300
We have no controll over 3rd party installers so I would recomend that you talk to your host telling them that the 'one click' installer does not work or they need to configure their servers to work with short_open_tags.
We have a FAQ about it as well:
http://codex.galleryproject.org/Gallery3:FAQ#Why_do_you_use_PHP.27s_short_open_tags.3F
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7
Thanks Dave
It seems you can't run it on names.co.uk hosting servers as you can't set short tags to on - I just e-mailed them and got the following response:
[
PHP short tags are disabled by default, both in all downloadable versions of PHP and the version installed on our server.
Short tags shouldn't be used in production code because they rely on a php.ini setting being enabled, meaning the code isn't portable
You should always use standard PHP tags eg <?php [code here] ?> in production code as this format is always available in every version of PHP and doesn't rely on the servers' configuration of php.ini, which will vary from company to company.
]
Interestingly though, they still have your software available for a one click install!
Posts: 27300
Not to get in a fire storm with your host but the default for sort open tags is on not off
http://www.php.net/manual/en/ini.core.php
So they are wrong.
Perhaps what they ment to say is 'PHP short tags are disabled by default, in the PHP versions installed on our servers.'
I would ask them why they have a one click install that does not work and if they have actually tried it.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7
I asked them that and they haven't got back to me!
Anyway, I had a long chat with another guy there and he said I would need an unmanaged server (virtual would do) if I wanted to get access to a Unix command prompt! Am I right in thinking that I'm probably going to need one to run and maintain a Gallery website. If this is the case, how does everyone else do it - do they all have their own unmanaged servers?
Posts: 27300
is that a sign of good things or bad?
If you are happy with G2 why change?
Each host is different. I have 2 hosts and each is not a un-managed server. I only have command prompt access to one and both work just fine.
So if you want to still use G3 then I guess you have 3 options:
1. wait for a favorable response from your host
2. use a un-managed server as the other guy suggests
3. most to a different host.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7
I don't currently use G2. I've just started to look at G3 and don't know anything about it. So it's possible to get a command prompt from other host providers is it (even if they are managed)? I didn't know that. Can you recommend any?
Posts: 27300
Since 2007 then you must be way behind the times with G1?
http://galleryproject.org/node/88391 and on the front page there is a hosting partner http://www.inmotionhosting.com/
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team