Announcement

#1 2010-12-27 01:31:18

arno
Member
2010-12-27
7

New piwigo user ! very bad install experience :(

Hello,
I am owning a new server, and as I am both photographer with some (small) skills in computer, I was trying some solutions to store my own gallery instead of using proprietary tools like picasa, flickr ..

So I was very enthiusiastic to discover and try Piwigo !

Unfortunately, I've been very disapointed, as I simply can't use it ..
I swear, I 've made some efforts  ! But 4 hours later the first try, I still can't display my albums ..
So I give up, I will try to install  Gallery or Phtagr, or TinyWebGallery to see if I'm more lucky

To help you understand why the experience was so bad, here are the steps that I encountered.


> I'm on a headless ubuntu server, with php5, mysql,..
> full root access, on a dedicated server.


Ok, I follow the install steps.

Wow, an auto installer with a simple php file, impressive !

I'm setting a decicated subdomain, I wget the install file at the web root, and run it.
Fine, it works !

I remove the path as I want to install it in '/' . (because I already set up a piwigo.mydomain.com )

> total failure, plenty of errors ...... (can't remember the error message).

Eh ? why doesn' it accept an empty path ?
And, if it can't be accepted, why doesn't it catch the error on form ?

Anyway, let's try again, with a subpath . (too bad for my pretty urls ..)

Ok,  installed !

I'm auto logged as an admin, fine !

Let's import my pics.

Ok , I've seen the warning about dangers with thumbnails generation. I don't care, since I'm on a dedicated server.

Ok, my pics are moved into galleries folder.

Let's generate the thumbnails ...

ehh.. where is it ? I don't see any "Administration » Images » Miniatures " section ?
Ha, small typo on help page, In fact, it was Administration » Tools » Miniatures
ok, let's go

Nothing to generate ? What's going on ?
I triple-check my pictures, they are here, with the correct rights, ... what's wrong ?

(half an hour after)


Ok. At first try, it has failed installing correctly on '/' path, but it has copied most of the files here ..
so that's a total mess , because files are on both '/' and '/al' folders.. So I was confusing both 'galleries' directories ..

Let's start it all over again, with a fresh clean folder

(half an hour after).

Ok, i'm at the thumbnails step again.

Argh. don't work because some files have a space in filename ..
Ooh, common guys, there is no system, nor database , that can't handle it ... that's a useless restricton ..
Anyway, let's rename my files;

For other users that may have the problem on linux system : that is the magic command :

for i in *\ *; do mv "$i" `echo $i | tr " " "_"`; done

Ok, let's try it again.

> Failed,  no writing permission access.
Hum. yes, of course. May be a global check on whole catalog would be nice , not to have all errrors one after the other.
Anyway, chmod 771 myfolder -R

> let's try again.

AAAAhhhh .... the webpage says 'successfull', but above I've got some php errors !

Warning: opendir(./galleries/Inde): failed to open dir: Permission denied in /var/www/clients/client1/web7/web/al/admin/include/functions.php on line 723 Warning: closedir() expects parameter 1 to be resource, boolean given in /var/www/clients/client1/web7/web/al/admin/include/functions.php on line 763


But, well, it says it was succcessfully generated, so let's ignore these errors and continue ..

Let's go to the Synchronisation :

Warning: opendir(./galleries/Inde): failed to open dir: Permission denied in /var/www/clients/client1/web7/web/al/admin/include/functions.php on line 398 Warning: opendir(./galleries/Inde): failed to open dir: Permission denied in /var/www/clients/client1/web7/web/al/admin/site_reader_local.php on line 83


Ok. Maybe it's a mess because of the mysql database, with the 2 installs and to different paths .....
let's try again from the beginning, with a clean database.

(half an hour after)
ok, I'm at the thumbnails step again.
What is that 'number of thumbnails' settings ? all of course !
> let's go

> no server response, no timer, no progress bar ..
Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/clients/client1/web7/web/al/admin/thumbnail.php on line 102

Why there isn't a loop that works 10 by 10, with an answer at each loop ?
(either client side with ajax, or server side , with timers between each iteration loop. ..)
Why using GD and not ImageMagick ? (much less ressource consumming)

2nd try:
ok, all my thumbnails are generated, yoohoo !

But .. on the feedback page, half of miniatures display are broken ?!

3rd try:
all mintures are already ok , but still some broken pictures .. strange..

Should be a cache, let's try to synchronize pics;
-> it says ok ..

let's try to view the gallery
> no gallery on home page ???

let's try to view it by gallery list
> blank thumbnail ??

Refresh
> same ??

Hum.

Let's go back to admin
recent pics > I've got some broken pic also ..

Let's see the 'categories' item :
empty ?!

let's try to synchronize again
> it's says 343 synchronized again ?!

   3 catégories ajoutées dans la base de données
   343 éléments ajoutés dans la base de données

let's go back to categories
> empty again ???!

let's make a 'quick syncrnization'
> it's say again 343 added ?!!

Let's try it again
> it's says 0 added, 343 updated ????!!!!

ok, may be it works now, let 's try to view the gallery

> ok, it works ! but half of the thumbnails are still broken ...

let's go back to thumbanails management
-> no thumbnail is missing ?!!

Something is wrong .. hey , I've seen a link 'repair database', let's try it
> not a chance

Ok, let's try to understand what's going on, let's click on a missing thumbnail
-> big picture is missing too ??!!!!!!!!!!!!
http://piwigo.cumulodata.com/al/galleri … C02503.jpg
let's try to get the link directly
-> it won't work, saying The requested URL /index.php was not found on this server.
?????????????????????

Ok, let's try to understand better.
Oh, there is an htaccess file inhere. Oh, there is a rewrite rule , to /index.php
But ????? I haven't got any index.php at the root ? is it normal ?  did I miss something ? Did I something wrong ? Or was it the install script ?

Ok, let's try to copy the file /al/index.php into /index.php, and retry
> Acess denied.

Ah ..

Ok folks, I've tried too much .. I've give up .

Too bad, it sounds promising ...

It's open source, so I won't complain, I can just help to improve it, I hope the time I took to write this feedback may help newcomers avoid some common install mistakes, and developpers improve the setup part.

If you need others informations, don't hesitate .

- Arno

Offline

 

#2 2010-12-27 01:41:17

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: New piwigo user ! very bad install experience :(

Hi arno,

I wget the install file at the web root, and run it. Fine, it works !

I remove the path as I want to install it in '/'

What do you mean? (give explicit examples please)

Offline

 

#3 2010-12-27 01:48:15

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: New piwigo user ! very bad install experience :(

It seems that you have a single database and 2 Piwigo installations : one a on "/" and another one on "/al", I'm sorry but I confirm that it just can't work because path to images is relative. If you have your photos in /galleries and open the Piwigo installed on /al then it will only see photos in /al/galleries

I agree that the thumbnail generation screen should be improved with an AJAX system to refresh the thumbnail list to generate. This is what [extension by Dsls] Ajax Thumbnailer does but it is not compatible with Piwigo 2.1 unfortunately.

ImageMagick is implemented in Piwigo 2.2 (coming soon) but only in the upload form currently, not on the thumbnail generation page.

Offline

 

#4 2010-12-27 01:50:58

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: New piwigo user ! very bad install experience :(

I really wonder why Piwigo doesn't work at the root of your webserver. There is no specific constraint in Piwigo, many Piwigo galleries are at the top of a domain name.

Offline

 

#5 2010-12-27 02:07:54

arno
Member
2010-12-27
7

Re: New piwigo user ! very bad install experience :(

Hello plg,

thank you for being so reactive, that's a pleasure !
I'm sorry, why feedback wasn't meant to be very explicit on each problem, but rather to give a global impression of what I've been through ..
As as I said, I'll gladly help to debug each of them to improve Piwigo.

First : the install on root path.
- When saying 'I removed the path', that's was to say : at the first setup step, there is a default path in form field, next to  'Destination: http://piwigo.myserver.com/ ..'  I remove the default value, to install it directly into 'root path', and continue.

- Next, I've got a nice '500 error'
BUT : everything seems to be installed in web folder. (I've not checked them 1 by 1 though)
in logfile :
warn] [client 81.57.58.***] mod_fcgid: stderr: PHP Fatal error:  Call to undefined function __() in /var/www/clients/client1/web7/web/pwg_unzip.php on line 209, referer: http://piwigo.myserver.com/install.php?language=en_UK

Last edited by arno (2010-12-27 02:08:22)

Offline

 

#6 2010-12-27 02:30:59

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: New piwigo user ! very bad install experience :(

arno wrote:

- When saying 'I removed the path', that's was to say : at the first setup step, there is a default path in form field, next to  'Destination: http://piwigo.myserver.com/ ..'  I remove the default value, to install it directly into 'root path', and continue.

OK, I understand, you modified this in the NetInstall form

arno wrote:

- Next, I've got a nice '500 error'
BUT : everything seems to be installed in web folder.

That's not enough. If the installation doesn't say "Everything went fine" or any equivalent, you should not consider the installation went fine.

Offline

 

#7 2010-12-27 02:52:13

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: New piwigo user ! very bad install experience :(

arno wrote:

warn] [client 81.57.58.***] mod_fcgid: stderr: PHP Fatal error:  Call to undefined function __() in /var/www/clients/client1/web7/web/pwg_unzip.php on line 209, referer: http://piwigo.myserver.com/install.php?language=en_UK

on line 209, we have:

Code:

throw new Exception(__('Unable to write destination file.'));

"__" is just a function to localize the string. What's important is that it seems Apache does not have enough rights to write in the directory (which seems unexpected because you saw some files that were written by the NetInstall).

Offline

 

#8 2010-12-27 02:58:04

arno
Member
2010-12-27
7

Re: New piwigo user ! very bad install experience :(

Here is the file list after
- cleaning the whole  webapp folder
- installing with 'net install'
- just after the 500 error occured

I don't know if they list is complete or not.

I don't know either what should or should not be the apache rights and if they are ok or not, but won't the install script check it before installing ?

After seeing that there were some problems with the install afterwards, I deleted everything and reinstalled it from scratch into a subfolder.

Last edited by arno (2010-12-27 03:02:34)

Offline

 

#9 2010-12-29 22:16:52

arno
Member
2010-12-27
7

Re: New piwigo user ! very bad install experience :(

We'll, I feel indeed alone with my problems.
Too bad for this promising tool.

Offline

 

#10 2010-12-31 10:51:59

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: New piwigo user ! very bad install experience :(

The list seems to be complete. I don't see why the NetInstalled failed.

Offline

 

#11 2011-01-08 10:17:05

J.Commelin
Member
2011-01-08
36

Re: New piwigo user ! very bad install experience :(

Hi Arno,

I think you should not give eXecute rights on your PHP files. For, is the Apache server member of your client group?

I guess Apache is running as nobody or http. So that one should at least be in your group. You could even consider chowning your files to the Apache-user.

Code:

cd $piwigoroot
# Remove x from file-permissions. But directories still have x
find . -type f | xargs chmod -x
# Chown everything by the apache user
echo "<?php phpinfo(); ?>" > tmpphpinfo.php
apacheuser=lynx -dump http://localhost/tmpphpinfo.php | grep\
 User/Group | cut -d\( -f1 | cut -d\  -f5
chown -R $apacheuser *
rm tmpphpinfo.php
unset $apacheuser

I guess this would work, but I did not test it. But you will get the idea.

J

Last edited by J.Commelin (2011-01-08 10:17:44)

Offline

 

#12 2011-01-14 21:34:57

arno
Member
2010-12-27
7

Re: New piwigo user ! very bad install experience :(

Hello
Happy new year to all

Thanks for answer,
as I had a bit of time, I've tried it all again from beginning, with netinstall.
No install problem, this time. I can't understand what was wrong the first time ..

But

When trying to setup the albums, same problems :
- The miniatures are generated correctly
- the database is synced correctly
- but when I try to display, every picture is empty :
see
http://piwigo.cumulodata.com/
I try to follow a picture, for example :
http://piwigo.cumulodata.com/galleries/ … C02505.jpg
The picture is at the right path.
But , when you click on the picture link, the homepage is displayed instead of the picture !
A problem with htaccess I suppose, but why ?!

Thanks for help !

- Arno

Offline

 

#13 2011-01-14 21:43:58

rvelices
Former Piwigo Team
2005-12-29
1960

Re: New piwigo user ! very bad install experience :(

too much .htaccess - yes
why ? only you know ...
sorry to be to direct, but how could anyone know whats wrong with your .htaccess ?

Last edited by rvelices (2011-01-14 21:45:34)

Offline

 

#14 2011-01-14 22:11:11

J.Commelin
Member
2011-01-08
36

Re: New piwigo user ! very bad install experience :(

Please post your .htaccess, or part of it. So we can help you with it.
It might indeed have to do with your .htaccess

Offline

 

#15 2011-01-14 22:15:00

arno
Member
2010-12-27
7

Re: New piwigo user ! very bad install experience :(

Hello,

thanks for answering,

I've no problem with 'direct' messages, as long as they are appropriate,
in this case, it 's not.

I haven't created .htaccess, piwigo did. I only tried to give some clues to help finding piwigo bug, to fix my install.

This is the content of the htaccess in the folder which is not displayed
How could I know what is the aim of this redirect, and why it fails ?

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule (.*) /index.php?kohana_uri=/file_proxy/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
  Order Deny,Allow
  Deny from All
</IfModule>

PS: @J.Commelin, my message was for rvelices,  ours crossed each others.

Last edited by arno (2011-01-14 22:18:14)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact