![]() |
HowTo.RunGalleryOnApache HistoryHide minor edits - Show changes to markup October 03, 2007, at 06:31 PM
by -- removed false wikilinks
Changed lines 75-76 from:
I installed Gallery2 on Unslung 6.8 beta with Apache2, PHP, MySQL? on the slug and Gallery Remote on an Windows 2000 PC. I used the MediaWiki for Unslung as a starting point. Got it to work after a while. Pitfalls I encountered: to:
I installed Gallery2 on Unslung 6.8 beta with Apache2, PHP, MySQL on the slug and Gallery Remote on an Windows 2000 PC. I used the MediaWiki for Unslung as a starting point. Got it to work after a while. Pitfalls I encountered: October 03, 2007, at 06:30 PM
by -- removed false wikilinks
Changed lines 60-61 from:
Tested with thttpd, ImageMagick 6.1.7-5-4 and Gallery 2.1.1 to:
Tested with thttpd, ImageMagick 6.1.7-5-4 and Gallery 2.1.1 Changed lines 81-82 from:
- I could not get ImageMagick to work on the NSLU. This resulted in missign thumbnails. I think this is the SlugBug Bug# 195 mentioned above. Symptom: when I configured the ImageMagick executable directory in the Admin page of Gallery, and tested it, Apache appeared to hang. I think the same happend during the Gallery installation but that could also be caused by my impatience. to:
- I could not get ImageMagick to work on the NSLU. This resulted in missign thumbnails. I think this is the SlugBug Bug# 195 mentioned above. Symptom: when I configured the ImageMagick executable directory in the Admin page of Gallery, and tested it, Apache appeared to hang. I think the same happend during the Gallery installation but that could also be caused by my impatience. Changed lines 85-89 from:
- ImageMagick did not work on the Windows machine. I saw this in the GR log file in the temp directory. Cause was a wrong value of the im.convertPath in C:\Program Files\Gallery Remote\imagemagick\im.properties. I changed it to im.convertPath=imageMagick/win32/convert.exe. Gallery2 is now working. Performance is a bit slow but not dramatic. One problem is remaining; I cannot get the thumbnails working. Normally they are generated on the slug, but due to the issue I mentioned above this does not work. The version of Gallery Remote I used generated thumbnails, but did not upload them to the slug. How I solved "unable to create thumbnail" describes a patchthat let's Gallery Remote upload the thumbnails but for now I do without. to:
- ImageMagick did not work on the Windows machine. I saw this in the GR log file in the temp directory. Cause was a wrong value of the im.convertPath in C:\Program Files\Gallery Remote\imagemagick\im.properties. I changed it to im.convertPath=imageMagick/win32/convert.exe. `Gallery2 is now working. Performance is a bit slow but not dramatic. One problem is remaining; I cannot get the thumbnails working. Normally they are generated on the slug, but due to the issue I mentioned above this does not work. The version of Gallery Remote I used generated thumbnails, but did not upload them to the slug. How I solved "unable to create thumbnail" describes a patchthat let's Gallery Remote upload the thumbnails but for now I do without. April 08, 2007, at 11:47 AM
by --
Changed lines 75-76 from:
I installed Gallery2 on Unslung 6.8 beta. with Gallery Remote on an Windows 2000 PC. I used the MediaWiki for Unslung as a starting point. Got it to work after a while. Pitfalls I encountered: to:
I installed Gallery2 on Unslung 6.8 beta with Apache2, PHP, MySQL? on the slug and Gallery Remote on an Windows 2000 PC. I used the MediaWiki for Unslung as a starting point. Got it to work after a while. Pitfalls I encountered: Changed lines 81-84 from:
- I could not get ImageMagick to work on the NSLU. I think this is the SlugBug Bug# 195 mentioned above. Symptom: when I configured the ImageMagick executable directory in the Admin page of Gallery, and tested it, Apache appeared to hang. - I used the "minimal" version of the Gallery2. Gallery Remote requires a "Remote Module"to be installed. Use the admin page of the Gallery to install this module. to:
- I could not get ImageMagick to work on the NSLU. This resulted in missign thumbnails. I think this is the SlugBug Bug# 195 mentioned above. Symptom: when I configured the ImageMagick executable directory in the Admin page of Gallery, and tested it, Apache appeared to hang. I think the same happend during the Gallery installation but that could also be caused by my impatience. - I used the "minimal" version of the Gallery2. Gallery Remote requires a "Remote Module" to be installed, which is missing from the "minimal" version. Used the admin page of the Gallery to install this module. April 08, 2007, at 11:43 AM
by --
Added line 78:
Added line 80:
Added line 82:
Added line 84:
April 08, 2007, at 11:42 AM
by --
Changed lines 75-78 from:
I installed Gallery2 on Unslung 6.8 beta. with Gallery Remote on an Windows 2000 PC. I used the MediaWiki for Unslung as a starting point. Got it to work after a while. Pitfalls I encountered: to:
I installed Gallery2 on Unslung 6.8 beta. with Gallery Remote on an Windows 2000 PC. I used the MediaWiki for Unslung as a starting point. Got it to work after a while. Pitfalls I encountered: Deleted line 77:
Deleted line 78:
Deleted line 79:
Deleted line 80:
April 08, 2007, at 11:42 AM
by --
Added lines 73-92:
More pitfallsI installed Gallery2 on Unslung 6.8 beta. with Gallery Remote on an Windows 2000 PC. I used the MediaWiki for Unslung as a starting point. Got it to work after a while. Pitfalls I encountered: - Accesrights for the Gallery files were initially wrong; corrected with chmod. - After installing Apache2 PHP must be enabled: add the modules in /opt/etc/apache2/conf.d/php.conf to /opt/etc/apache2/httpd.conf. Initially I forgot this. The installer did not start but showed the source code of the install script instead. - I could not get ImageMagick to work on the NSLU. I think this is the SlugBug Bug# 195 mentioned above. Symptom: when I configured the ImageMagick executable directory in the Admin page of Gallery, and tested it, Apache appeared to hang. - I used the "minimal" version of the Gallery2. Gallery Remote requires a "Remote Module"to be installed. Use the admin page of the Gallery to install this module. - ImageMagick did not work on the Windows machine. I saw this in the GR log file in the temp directory. Cause was a wrong value of the im.convertPath in C:\Program Files\Gallery Remote\imagemagick\im.properties. I changed it to im.convertPath=imageMagick/win32/convert.exe. Gallery2 is now working. Performance is a bit slow but not dramatic. One problem is remaining; I cannot get the thumbnails working. Normally they are generated on the slug, but due to the issue I mentioned above this does not work. The version of Gallery Remote I used generated thumbnails, but did not upload them to the slug. How I solved "unable to create thumbnail" describes a patchthat let's Gallery Remote upload the thumbnails but for now I do without. -Andreas July 05, 2006, at 11:10 PM
by -- !thttpd to -- krim
Added lines 58-65:
June 24, 2006, at 07:56 PM
by -- Clarification on php-apache install
Changed lines 24-27 from:
When you install PHP it will install both itself and Apache. to:
When you install PHP-apache it will install both itself and Apache. April 11, 2006, at 10:01 PM
by --
Changed line 64 from:
to:
April 11, 2006, at 10:00 PM
by -- libxml2
Added lines 63-64:
August 26, 2005, at 01:44 AM
by --
Changed lines 54-55 from:
To upload photos to gallery don't use the web interface. Uploading via the web interface causes all image processing to be done by the slug's processor, instead install Gallery Remote (a client side Java application) to upload and resize your pictures. to:
To upload photos to gallery don't use the web interface. Uploading via the web interface causes all image processing to be done by the slug's processor, instead install Gallery Remote (a client side Java application) to upload and resize your pictures. Changed lines 60-62 from:
to:
August 26, 2005, at 01:43 AM
by --
Changed lines 60-64 from:
Andrei Volkov, June 16, 2005
to:
August 25, 2005, at 03:15 PM
by -- Apache problem
Changed lines 62-64 from:
Andrei Volkov, June 16, 2005 to:
Andrei Volkov, June 16, 2005
August 22, 2005, at 08:16 PM
by --
Changed lines 24-25 from:
to:
August 01, 2005, at 08:13 PM
by -- file permissions deny server access
Added lines 45-48:
NOTE: If you received ERROR: Permission denied: file permissions deny server access: opt/share/apache2/htdocs/index.php run next command: chmod a+r opt/share/apache2/htdocs August 01, 2005, at 08:06 PM
by --
Changed lines 24-25 from:
to:
June 19, 2005, at 08:20 PM
by --
Deleted lines 53-54:
How do i fix a Starting OpenLDAP /usr/lib/ipkg/info/openldap.postinst: /opt/etc/init.d/S58slapd: No such file or directory error ? Changed lines 56-57 from:
to:
June 19, 2005, at 08:19 PM
by --
Changed lines 54-58 from:
How do i fix a Starting OpenLDAP? /usr/lib/ipkg/info/openldap.postinst: /opt/etc/init.d/S58slapd: No such file or directory error ? to:
How do i fix a Starting OpenLDAP /usr/lib/ipkg/info/openldap.postinst: /opt/etc/init.d/S58slapd: No such file or directory error ? Changed lines 58-60 from:
1. Recent ImageMagick 6.1.7 binary available for ipkg download seems to be incompatible with Gallery2 Beta3 because of some changes in ImageMagick command line options. Gallery 2 Beta3 code seems to "know" ImageMagick up to version 6.1.3. Either fix Gallery2 or downgrade ImageMagick by recompiling older version. to:
June 16, 2005, at 01:39 PM
by --
Changed lines 57-64 from:
directory error ? to:
directory error ? Pitfalls1. Recent ImageMagick 6.1.7 binary available for ipkg download seems to be incompatible with Gallery2 Beta3 because of some changes in ImageMagick command line options. Gallery 2 Beta3 code seems to "know" ImageMagick up to version 6.1.3. Either fix Gallery2 or downgrade ImageMagick by recompiling older version. Andrei Volkov, June 16, 2005 April 04, 2005, at 12:34 PM
by --
Changed line 24 from:
to:
Changed lines 26-30 from:
I found that if you install PHP first, it will install Apache automatically
This will install PHP and Apache to:
When you install PHP it will install both itself and Apache. March 17, 2005, at 12:10 PM
by --
Changed lines 43-45 from:
There are some things that I must tell you before installing ImageMagick. ImageMagick installs libltdl.so in /opt/lib. it should depend on libtool instead (http://slugbug.nslu2-linux.org/bug.php?op=show&bugid=105 SlugBug #105), if you already installed libtool then the installation of ImageMagick will fail. To overcome this problem use the -force-overwrite option to:
Changed lines 45-51 from:
ImageMagick will install and install all "dependent" packages except one. ImageMagick also needs bzip2 to function, although it isn’t listed as dependency (http://slugbug.nslu2-linux.org/bug.php?op=show&bugid=106 SlugBug #106), so type:
to:
ImageMagick will install and install all "dependent" packages. March 12, 2005, at 01:26 AM
by --
Added lines 65-69:
February 23, 2005, at 03:25 PM
by --
Changed line 60 from:
If everything went well then Gallery will see that ImageMagick is installed, and it will list its as path /opt/bin to:
If everything went well then Gallery will see that ImageMagick is installed, and it will list its path as /opt/bin February 23, 2005, at 03:24 PM
by --
Changed line 1 from:
Introduction:to:
IntroductionChanged line 9 from:
Dependencies:to:
DependenciesChanged line 20 from:
Installation:to:
InstallationFebruary 23, 2005, at 03:22 PM
by --
Changed line 38 from:
http://the.ip-address.of.my.slug:8000/ (if you changed the port in your config then change the port number accordingly in you URL) to:
http://the.ip-address.of.my.slug:8000/ (if you changed the port in your config then change the port number accordingly in your URL) February 23, 2005, at 03:21 PM
by --
Changed line 1 from:
Introduction: to:
Introduction:Changed lines 9-10 from:
Dependencies: to:
Dependencies:Changed lines 15-16 from:
to:
Changed lines 20-21 from:
Installation: to:
Installation:Changed line 23 from:
to:
Changed line 28 from:
to:
Changed line 30 from:
This will install php and Apache to:
This will install PHP and Apache Changed lines 37-39 from:
Now check if apache is running: http://the.ip-adres.of.my.slug:8000(if you changed the port in your config then change the port number accordingly in you URL) You should see a page that apache is running. to:
Now check if Apache is running: http://the.ip-address.of.my.slug:8000/ (if you changed the port in your config then change the port number accordingly in you URL) You should see a page that Apache is running. Added line 41:
If you are done installing Apache/PHP you are ready for the next step, ImageMagick: Changed lines 43-46 from:
If you are done installing Apache/php you are ready for the next step, Imagemagick: There are some things that I must tell you before installing Imagemagick. Imagemagick installs libltdl.so in /opt/lib. it should depend on libtool instead (slubug#105), if you already installed libtool then the installation of imagemagick will fail. to:
There are some things that I must tell you before installing ImageMagick. ImageMagick installs libltdl.so in /opt/lib. it should depend on libtool instead (http://slugbug.nslu2-linux.org/bug.php?op=show&bugid=105 SlugBug #105), if you already installed libtool then the installation of ImageMagick will fail. Changed line 49 from:
Imagemagick will install and install all "dependent" packages except one to:
ImageMagick will install and install all "dependent" packages except one. Changed line 51 from:
Imagemagick also needs Bzip2 to function, although it isn’t listed as dependency (slubug#106), so type: to:
ImageMagick also needs bzip2 to function, although it isn’t listed as dependency (http://slugbug.nslu2-linux.org/bug.php?op=show&bugid=106 SlugBug #106), so type: Changed line 57 from:
If you finished that, connect your browser again to: http://the.ip-adres.of.my.slug:8000 to:
If you finished that, connect your browser again to: http://the.ip-address.of.my.slug:8000/ Changed line 60 from:
If everything went well then Gallery will see that Imagemagick is installed, and it will list its path to /opt/bin to:
If everything went well then Gallery will see that ImageMagick is installed, and it will list its as path /opt/bin Changed line 62 from:
To upload photo's to gallery "don't" use the web interface, because then all image processing must be done by the slug's processor, just install Gallery remote (a java applet) to upload and resize your pictures. to:
To upload photos to gallery don't use the web interface. Uploading via the web interface causes all image processing to be done by the slug's processor, instead install http://gallery.sourceforge.net/gallery_remote.php Gallery Remote (a client side Java application) to upload and resize your pictures. Deleted lines 64-68:
February 23, 2005, at 02:29 PM
by --
Added line 2:
Added lines 7-8:
Gallery can be downloaded here: http://gallery.menalto.com/ Added lines 10-11:
Changed lines 19-28 from:
For advanced users this howto is finnished here, but if you still want to know more, just read on. to:
For advanced users this how-to is finished here, but if you still want to know more, just read on. Installation:
I found that if you install PHP first, it will install Apache automatically Changed lines 30-36 from:
Telnet into your Slug, then start your installation First update your ipkg list by typing: ipkg update I found that if you install PHP first, it will install Apache automaticaly So: ipkg install php this will install php and Apache to:
This will install php and Apache Changed lines 36-38 from:
After install of Apache go and take a look at the Apache conf files located in /share/hdd/conf/opt/etc/apache2/ See if there is anything you want to change like the portnumber that Apache listens on. (use vi or joe or whatever you like to use but dont use win/notepad) to:
After install of Apache go and take a look at the Apache conf files located in opt/etc/apache2/ See if there is anything you want to change like the port number that Apache listens on. (Use vi or Joe or whatever you like to use but don’t use win/notepad) Changed line 40 from:
http://the.ip-adres.of.my.slug:8000 (if you changed the port change the portnumber in you url) to:
http://the.ip-adres.of.my.slug:8000(if you changed the port in your config then change the port number accordingly in you URL) Added line 43:
Added line 45:
Changed line 47 from:
Imagemagick installs libltdl.so in /opt/lib. it should depend on libtool instead, if you allready installed libtool then the installation of imagemagick will fail. to:
Imagemagick installs libltdl.so in /opt/lib. it should depend on libtool instead (slubug#105), if you already installed libtool then the installation of imagemagick will fail. Changed lines 49-51 from:
so type: ipkg install imagemagick -force-overwrite to:
Changed lines 54-55 from:
Imagemagic also needs Bzip2 to function, altough it isnt listed as dependency so type: ipkg install bzip2 to:
Imagemagick also needs Bzip2 to function, although it isn’t listed as dependency (slubug#106), so type: Changed line 56 from:
After you installed everything you are ready to upload your Gallery package to share/hdd/conf/opt/share/apache2/htdocs to:
Changed lines 58-60 from:
If you finnished that, connect your browser again to: http://the.ip-adres.of.my.slug:8000 to:
After you installed everything you are ready to upload your Gallery package to opt/share/apache2/htdocs If you finished that, connect your browser again to: http://the.ip-adres.of.my.slug:8000 Changed lines 62-63 from:
Gallery has a very userfriendly step by step setup, so read and follow instructions. If everything went well then Gallery will see that Imagemagick is installed, and it will list it's path to /opt/bin to:
Gallery has a very user-friendly step by step setup, so read and follow instructions. If everything went well then Gallery will see that Imagemagick is installed, and it will list its path to /opt/bin Changed line 65 from:
To upload photo's to gallery "don't" use the webinterface, because then all imageprocessing must be done by the slug's processor, just install Gallery remote (a java applet) to upload and resize your pictures. to:
To upload photo's to gallery "don't" use the web interface, because then all image processing must be done by the slug's processor, just install Gallery remote (a java applet) to upload and resize your pictures. Added line 68:
February 23, 2005, at 01:43 PM
by --
Changed lines 1-56 from:
Describe RunGalleryOnApache here. to:
Introduction: Gallery is a web based software product that lets you manage your photos on your own website. And it will run on your Slug too. Because I am new to this all, and find some how-to's a bit short, I will try to make a beginners document here, so that the installation can't go wrong. Dependencies: To run Gallery you need to install a few other applications first.
For advanced users this howto is finnished here, but if you still want to know more, just read on. Telnet into your Slug, then start your installation First update your ipkg list by typing: ipkg update I found that if you install PHP first, it will install Apache automaticaly So: ipkg install php this will install php and Apache Note that Apache will be running on port 8000, make sure that nothing else is using that port otherwise Apache setup will fail. After install of Apache go and take a look at the Apache conf files located in /share/hdd/conf/opt/etc/apache2/ See if there is anything you want to change like the portnumber that Apache listens on. (use vi or joe or whatever you like to use but dont use win/notepad) Now check if apache is running: http://the.ip-adres.of.my.slug:8000 (if you changed the port change the portnumber in you url) You should see a page that apache is running. If you are done installing Apache/php you are ready for the next step, Imagemagick: There are some things that I must tell you before installing Imagemagick. Imagemagick installs libltdl.so in /opt/lib. it should depend on libtool instead, if you allready installed libtool then the installation of imagemagick will fail. To overcome this problem use the -force-overwrite option so type: ipkg install imagemagick -force-overwrite Imagemagick will install and install all "dependent" packages except one Imagemagic also needs Bzip2 to function, altough it isnt listed as dependency so type: ipkg install bzip2 After you installed everything you are ready to upload your Gallery package to share/hdd/conf/opt/share/apache2/htdocs If you finnished that, connect your browser again to: http://the.ip-adres.of.my.slug:8000 You should see the configuration pages of Gallery. Gallery has a very userfriendly step by step setup, so read and follow instructions. If everything went well then Gallery will see that Imagemagick is installed, and it will list it's path to /opt/bin To upload photo's to gallery "don't" use the webinterface, because then all imageprocessing must be done by the slug's processor, just install Gallery remote (a java applet) to upload and resize your pictures. Enjoy!
view ·
edit ·
print ·
history ·
Last edited by fcarolo.
Based on work by fcarolo, Andreas, krim, Postman, Sis, tman, MaBen, S Mazgavoi, Andrei Volkov, barrym, rwhitby, Nemo, and Peter Roubos. Originally by Peter Roubos. Page last modified on October 03, 2007, at 06:31 PM
|