Install Gallery 3 on a brand new installation of Ubuntu 10.10

erpezoa

Joined: 2010-12-20
Posts: 1
Posted: Mon, 2010-12-20 19:47

This is for people that want to install Gallery3 on a brand new installation of Ubuntu 10.10 and derivatives.

Run the following script, just copy and paste, perhaps some of these items are not necessary, but they will make your life easier;

(the entire command is a single line, it is possible that your browser will truncate or divide)

sudo apt-get install apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common imagemagick jhead libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libcdt4 libgraph4 libgvc5 libilmbase6 libjpeg-progs libjpeg8 libmagickcore3-extra libnetpbm10 libopenexr6 libpathplan4 netpbm php5 php5-cli php5-common mysql-server php-db php5-mysql graphicsmagick -y

Download Gallery 3 and extract on your /var/www folder.
Good luck.

 
dhunt84971

Joined: 2011-03-13
Posts: 1
Posted: Sun, 2011-03-13 19:51

I just used this on a new Ubuntu Server 10.10 VM and it worked great. THANKS!!!

One thing I did have to do right away was increase the default settings in the /etc/php5/apache2/php.ini file for upload_max_filesize and post_max_size. The defaults are 2M and 8M which are too small for many of today's cameras.

The frustrating thing for me was that the default post size was large enough to allow the posting of the file (which was 4M), but the default for the upload_max_filesize was too small. This caused the upload to appear to be successful while the image never actually showed up and I received no error message. I found the solution on the forum, but figured I would put it here so that anyone following the above instructions and encountering the same issue, might see this and avoid searching for it.

Again, great instructions. Thanks a bunch!

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Thu, 2011-05-19 14:02

hi thanks for this have got a working version of gallery3 now on ubuntu but when I try to hide a galley from people it states

Oh no! Your server needs a configuration change in order for you to hide photos! Ask your server administrator to enable mod_rewrite and set AllowOverride FileInfo Options to fix this

can ayone point me in the right direction please

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2011-05-19 15:34

You may need to just enable the rewrite module in Apache. Try typing sudo a2enmod rewrite
____________________________________________
Like Gallery? Like the support? Donate now!

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Thu, 2011-05-19 15:45

Tried that, also changed the 000-default in enabled sites to allowoverride to all as well

When I try a sudo apache2 -l

Rewrite isn't there

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2011-05-19 16:00

Look under /etc/apache2/mods-available and see if rewrite.load is there.
____________________________________________
Like Gallery? Like the support? Donate now!

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Thu, 2011-05-19 16:07

Yes rewrite.load is there 66bytes in size

 
zebadee

Joined: 2010-01-28
Posts: 21
Posted: Thu, 2011-05-19 16:08

It's also in mods-enabled