htaccess question

photofamily

Joined: 2010-05-25
Posts: 10
Posted: Tue, 2010-05-25 20:17

* the version of Gallery,
# Powered by Gallery 3.0 RC1 (Santa Fe)
My host has Apache version 2.2.14
PHP version 5.2.13
* operating system and hardware,
windows/xp

* (if applicable) the web browser and version you are using,
firefox,ie

* any debug output or clues that you've already discovered.

I ran into the page not displaying after the initial install and contacted my host to correct the "flag short_open_tag needs to on"

I see that the htaccess file already contains this: flag short_open_tag On

My host said it was installed in a sub-directory which probably caused the issue. I didn't want to install
in the main directory and this is just for personal photos anyway.

They added the following to my htaccess file and the page displayed successfully.

suPHP_ConfigPath /home/username/public_html

I hope that information helps someone however the upload script isn't found when I tried
to upload a photo via web which probably means that path fix is failing me.

My gallery3 site is a subdomain as it is and within that subdomain I have it in a sub folder.

so I was wondering if anybody had any suggestions on how it can fix it.

Everything else appears to work but the web upload -- so can i alter the path directly or
would it be better to change this: suPHP_ConfigPath /home/username/public_html

Any comments are appreciated.

My cpanel reads: Apache version 2.2.14
Host: Inmotionhosting

Server API CGI
Virtual Directory Support disabled
HP API 20041225
Configuration File (php.ini) Path /usr/lib
Loaded Configuration File /home/username/public_html/php.ini
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams compress.zlib, compress.bzip2, dict, ftp, ftps, http, https, imap, imaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp, php, file, data, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-05-25 21:20

What upload script isn't working? When you click on Add > Photos that's not working?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
photofamily

Joined: 2010-05-25
Posts: 10
Posted: Tue, 2010-05-25 22:43

yes

After I click the add button the box pops up with the "select photos" button & after selecting the photos a little bar runs across the screen but after that I get a little pink warning with text that reads:

bear.jpg - The upload script was not found.

I believe it's called simple_uploader but I'm able to click the "select photos" and everything appears to be working but then after it runs I get the:

whatever.jpg - The upload script was not found.

**************************************************************************

side note: the server add feature works fine. I love it. I can upload everything and then add them via folder.
Great Work...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-05-25 22:45

What is the exact error message?

Is there anything in your log files under your /var/logs directory?

I suspect you have a file size limitation. Try this:
FAQ: Why can't I upload big files (over a megabyte or two)?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
photofamily

Joined: 2010-05-25
Posts: 10
Posted: Tue, 2010-05-25 23:41

from /var/logs

2010-05-25 16:13:38 -07:00 --- error: Kohana_404_Exception [ 43 ]: The page you requested, simple_uploader/add_photo/1, could not be found.
/home/user/public_html/testsite.com/gallery3/modules/gallery/helpers/access.php [ 123 ]
#0 /home/user/public_html/testsite.com/gallery3/modules/gallery/controllers/simple_uploader.php(39): access_Core::required('view', Object(Item_Model))
#1 [internal function]: Simple_Uploader_Controller->add_photo('1')
#2 /home/user/public_html/testsite.com/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Simple_Uploader_Controller), Array)
#3 /home/user/public_html/testsite.com/gallery3/system/core/Event.php(208): Kohana_Core::instance(NULL)
#4 /home/user/public_html/testsite.com/gallery3/application/Bootstrap.php(67): Event_Core::run(Array, Array)
#5 /home/user/public_html/testsite.com/gallery3/index.php(91): require('/home/user/p...')
#6 {main}

I also see this in gallery3/error_log

[25-May-2010 16:13:38] PHP Warning: Adding option (Name: suhosin.session.encrypt Value: 0) (23, 1) failed!
in Unknown on line 0

[25-May-2010 16:13:38] PHP Warning: POST Content-Length of 38510 bytes exceeds the limit of 100 bytes in Unknown on line 0

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-05-25 23:36

Do you happen to trying to use HTTPS? If so, is it a self-signed cert? If so, that's not going to work and there's nothing we can do about that. You'll need to complain to Adobe about that.

If that's not the case, post a link to phpinfo:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
photofamily

Joined: 2010-05-25
Posts: 10
Posted: Tue, 2010-05-25 23:42

no it's http://

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2010-05-26 00:00
nivekiam wrote:
If that's not the case, post a link to phpinfo:
FAQ: How do I create a phpinfo page?

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
photofamily

Joined: 2010-05-25
Posts: 10
Posted: Wed, 2010-05-26 01:13

*

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2010-05-26 01:55
Quote:
[25-May-2010 16:13:38] PHP Warning: Adding option (Name: suhosin.session.encrypt Value: 0) (23, 1) failed!
in Unknown on line 0

See:
FAQ: Why am I seeing errors about suhosin.session.encrypt?

Dave

 
photofamily

Joined: 2010-05-25
Posts: 10
Posted: Wed, 2010-05-26 12:51

floridave

thank you, thank you -- this led to me solving the problem.

This worked for my host: inmotionhosting

To disable suhosin:

Create a file and name it php.ini and put it in the directory where you wish to install gallery 3
and write the following in it:

display_errors = Off
log_errors = On
error_log = logs/errors
suhosin.session.encrypt = Off

Now open your .htaccess file in the root directory.

and add the following to it:

suPHP_ConfigPath /path/to/new/php.ini/file/in/root/directory

For me this was:

suPHP_ConfigPath /home/user/public_html/sitename.com/gallery3

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2010-05-27 01:14

Glad you got it sorted.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
spurrymoses

Joined: 2004-02-22
Posts: 12
Posted: Sun, 2010-06-06 10:20

Thank you, this solved the problem for me as well.
This solution (using php.ini) probably should be mentioned in the FAQ, which didn't help me at all.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-06-06 16:27

Few people can actually use that method and it's really dependent upon how your host has things setup. But I did update the FAQ to point people to their host if those methods don't work.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here