Jump to content
Walter-Sobchak

Simple .htaccess Question

Recommended Posts

I am trying to install gallery. I am getting a "short_open_tag" needs to be on error message. What is the code that I need to place in the .htaccess in my public_html folder to enable that function? I have tried adding "php_flag short_open_tag on" but it causes a 500 error. What is my mistake?

 

Thank you for any help!

Share this post


Link to post
Share on other sites

Welcome to the forum, Walter-Sobchak. :)

 

Please see if the solutions on this page helps: gallery.menalto.com/node/86140

Share this post


Link to post
Share on other sites

Welcome to the forums Walter :)

 

Make sure to wrap your variables with the IfModule like so.

 

><IfModule php_config>
php_value short_open_tag on
</IfModule>

Share this post


Link to post
Share on other sites

Posted here as it seems a very closely related issue...

 

I'm working on Gallery as well (v2), and I would like to be able to upload files above 2Mb in size. I've followed TCH-Bruce's advice, code as follows:

 

><IfModule php_config>
php_value upload_max_filesize 10M
</IfModule>

 

That's all that's in the .htaccess file in the gallery root. When the file is there I can't upload any images (there are no errors, even in debug mode), and when the file is not there I can - provided they are less that 2Mb of course!

 

This seems a weird one, and I haven't been able to find anything on the Gallery forums. Any ideas what might be happening?

 

Thanks,

 

Pete

Share this post


Link to post
Share on other sites

Please post a ticket to our Help Desk (link on my signature and on top menu). We will gladly check it out.

Share this post


Link to post
Share on other sites

Can you please try this;

 

>
<IfModule php_config>
php_value post_max_filesize 11534336
php_value upload_max_filesize 10485760
</IfModule>

Share this post


Link to post
Share on other sites

TCH-Alex, I salute you!

 

Made the changes and it works a treat. Bit of a weird one but there we go!

Share this post


Link to post
Share on other sites

And thanks for the welcome guys, I've been a long term customer of TCH but this is the first time I've used the forum.

 

Hope you're all having a great weekend.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...