Installing Gallery2

singel

Joined: 2008-06-10
Posts: 9
Posted: Mon, 2010-04-19 11:54

I changed my provider to one.com and tried to install Gallery2.3.1. I keep getting the message that I need to put the login.txt in the directory. The installer accepts this code but with the next step it instructs me again to put the login.txt (this time with a different code). I pointed to the node: http://gallery.menalto.com/node/59927 but the say that Gallery is incompatible with PHP5.3 and cannot work.

They instruct me to use Gallery 3 but I'm unable to import my 5000+ files, and I need the module customfield.

Can someone pls telle me what to do?

Thx

 
Dayo

Joined: 2005-11-04
Posts: 1555
Posted: Mon, 2010-04-19 15:24
singel wrote:
... but the[y] say that Gallery is incompatible with PHP5.3 and cannot work.

This is incorrect. Gallery2 is fully compartible with php 5.3.x.

Your host seems to have something screwed up and is just trying to fob you off instead of fixing it.
--
dakanji.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2010-04-19 19:16

Just to clarify, 2.3 was incompatible with PHP 5.3.x, but the current version of G2, 2.3.1, is compatible. So your host appears to have old information.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
singel

Joined: 2008-06-10
Posts: 9
Posted: Wed, 2010-04-21 16:58

Thx for your help. One.com finally did something after I pointed them to some resources and your remarks. I installed Gallery 2.3.
But I can't login to my site. I get the error: HTTP/1.1 200 OK Date: Wed, 21 Apr 2010 16:39:03 GMT Server: Apache
X-Powered-By: PHP/5.3.2 Set-Cookie:
G2SETUPSID=34222a604977b30e51352e99f26c82f7; path=/ Expires: Thu, 19 Nov
1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0 Pragma: no-cache Connection: close
Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1
OK

The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator,

and inform them
of the time the error occurred, and anything you might have done that
may have caused the error.

More information about this error may be available in the server error
log.

I got in version.dat :
1.3.0
2.3

Thx

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2010-04-21 17:12
Quote:
I got in version.dat :
1.3.0
2.3

That's the wrong version. That's 2.3, which isn't supported under PHP 5.3. You need to get the next point release which has the minor changes to make it compatible with 5.3.

http://gallery.menalto.com/downloads

The version is 2.3.1

If you're still getting this error:

Quote:
The server encountered an internal error or misconfiguration and was

Then you'll need to look at or have your host look at the server's error logs (not access logs) to see why the server is generating a 500 internal server error.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Dayo

Joined: 2005-11-04
Posts: 1555
Posted: Wed, 2010-04-21 19:20
Quote:
Quote:
I got in version.dat :
1.3.0
2.3

That's the wrong version. That's 2.3, which isn't supported under PHP 5.3. You need to get the next point release which has the minor changes to make it compatible with 5.3.

Actually, That is the correct data in the versions.dat file for v2.3.1 ... at least that is what I have in mine. I suspect this file may not have been updated between 2.3 and 2.3.1.

Worryingly though, the OP said he installed 2.3 rather than 2.3.1 and 2.3 as you pointed out, is not php 5.3 compatible.

--
dakanji.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2010-04-21 19:27

My versions.dat shows:

1.3.0.1
2.3.1

I can't remember if that's a fresh install or an upgrade.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
singel

Joined: 2008-06-10
Posts: 9
Posted: Thu, 2010-04-22 16:07

I know, I'm asking a lot, but could anybody out here look into the problem I have. The server (info : http://www.retinaproject.be/info.php) runs dramatically slow. I can't log in with my admin name & pass. If I request a forgotten password: I can login through that page. Whatever else I do: no avail; after a lot of time: either a blank page (safari mac) or a option to save the main.php (firefox mac) altough it shows in the statusbar: done.
The people at one.com tell me they don't understand what's causing the problems. I think their server isn't configurated as it should.
Thx

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2010-04-22 16:18
Quote:
I think their server isn't configurated as it should.

It's not, or, as at most low-end cheap hosts, they've oversold the server and it's overloaded. Your phpinfo page doesn't even load for me, it's timing out because it's taking so long to load.

My advice, find a different host, especially since they "don't understand what's causing the problems"
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
singel

Joined: 2008-06-10
Posts: 9
Posted: Thu, 2010-04-22 16:25

Do you have suggestions for a server that's reasonable priced for a large databese?
Thx anyhow

 
singel

Joined: 2008-06-10
Posts: 9
Posted: Thu, 2010-04-22 16:25

I meant a provider.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2010-04-22 16:41

Here's my opinion:
http://gallery.menalto.com/node/88391#comment-310594
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ccusa

Joined: 2010-04-23
Posts: 8
Posted: Fri, 2010-04-23 14:32

hi, i have troubles in installinf the galleryyou can look through the log in rar archive, please
thanks

Quote:
AttachmentSize
installlog.txt3.08 KB
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2010-04-23 15:37
    Gallery version:	1.2.0.8
    File integrity:	Ok
    SVN install:	No
    PHP version:	5.2.11 cgi
    PHP memory limit:	28M

That's a really old version of Gallery, get the latest version from here:
http://gallery.menalto.com/downloads

I'd recommend also bumping the memory limit to at least 32MB. This link explains how:
FAQ: PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted?

Which could easily explain the failure of installing the core module. And also explains exactly why you got the message in the other thread you started. In the future, please don't post about the same problem in multiple threads.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ccusa

Joined: 2010-04-23
Posts: 8
Posted: Mon, 2010-04-26 11:25

Hi, nivekiam !
As you recommended,
I just downloaded the latest version of the gallery and tried to install it onto my server. the same problem occured. My server has 28 MB limit, do I need have to have 32 MB or I can make changes in the script or somewhere? I read http://codex.gallery2.org/Gallery2:FAQ#PHP_memory_limit_-_Why_do_I_get_the_error_Allowed_memory_size_of_Xxx_bytes_exhausted.3F , followed the instructions but it did not help.
Do I need to chnge htaccess in the root or where? (should I write php_value memory_limit 32M)?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2010-04-26 13:29

Where did you change the setting?

If you changed it in .htaccess and that didn't change it, then try the ini_set method in main.php:

ini_set("memory_limit","32M");

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

 
ccusa

Joined: 2010-04-23
Posts: 8
Posted: Tue, 2010-04-27 08:49

1)added to htaccess:

php_value memory_limit 32M

Run installation again - same effect.

2) added into main.php

ini_set("memory_limit","32M");

By bу way, which place in main.php should I put it?
Any place after <?php ?

same topic: Fatal error: Out of memory (allocated 7340032) (tried to allocate 1245184 bytes) in /usr/home/artquest/www/gallery/modules/core/CoreModuleExtras.inc on line 2202

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2010-04-27 15:22

Yes, after <?php should be fine.

Post a link to phpinfo:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2010-04-27 15:30

Yes, after <?php should be fine.

Post a link to phpinfo:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ccusa

Joined: 2010-04-23
Posts: 8
Posted: Wed, 2010-04-28 08:15

ok,
done /gallery/phpinfo.php

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2010-04-28 13:30

Can you post a working link?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ccusa

Joined: 2010-04-23
Posts: 8
Posted: Thu, 2010-04-29 07:59
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2010-04-29 13:24

Yep, memory limit is still at 28MB, if you changed the .htaccess and/or main.php and it still doesn't increase that you'll need to contact your host.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ccusa

Joined: 2010-04-23
Posts: 8
Posted: Thu, 2010-04-29 19:51

if I change the .htaccess, my website gives error 500 Internal Server error
if I change main.php - it results in installation error mentioned above.
Why does the gallery installation wizard say Success in first steps when checking (28 MB is OK) ? If it does not work with 28 MB ?
My host says they can not enlarge the limit because it is set for everyone.
So, I think there is nothing we can do? I can not use the gallery?
Can you suggest something else please so that it can fit my server?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2010-04-29 19:59

Unfortunately the installer was never updated and still checks for only 16MB.

I've used Gallery for nearly 7.5 years, I don't know what else is out there that's any good.

My suggestion, find a quality host.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ccusa

Joined: 2010-04-23
Posts: 8
Posted: Sat, 2010-05-01 16:07

ок, thank you very much for helping out!