Creating a Gallery2 virtual site: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Prepare the virtualhost by creating a directory /home/sites/www.sitename.ext/site/gallery for the gallery files and giving it the correct permissions (chown razor:group /home/sites/www.sitename.ext/site/gallery/) NB owner must be razor at this time, because he can access the gallery2 installation files (due to suPHP) | Prepare the virtualhost by creating a directory /home/sites/www.sitename.ext/site/gallery for the gallery files and giving it the correct permissions (chown razor:group /home/sites/www.sitename.ext/site/gallery/) NB owner must be razor at this time, because he can access the gallery2 installation files (due to suPHP) | ||
Also create a directory for the gallery data /home/sites/www.sitename.ext/g2data. Chown razor:group this directory as well. | Also create a directory for the gallery data /home/sites/www.sitename.ext/g2data. Chown razor:group this directory as well. | ||
Should you not want suphp or something, g2data/ dir and subfiles has to be chown www-data | Should you not want suphp or something, g2data/ dir and subfiles has to be chown www-data | ||
Log in to | Go to the Virtual site Installer at http://gallery2.edgarbv.com/install/ or http://gallery2-wraith.edgarbv.com | ||
Log in to edgarghost, cd /usr/share/gallery2 | |||
In the install you will recieve a string, which must be pasted in to /usr/share/gallery2/login.txt to authenticate. | In the install you will recieve a string, which must be pasted in to /usr/share/gallery2/login.txt to authenticate. | ||
Choose a Multisite Installation and enter the path in the first step. | Choose a Multisite Installation and enter the path in the first step. | ||
When it gets to the database setup, I've put all the galleries into one database: gallery2. | When it gets to the database setup, I've put all the galleries into one database: gallery2. | ||
Every user gets their own specific table and column prefixes, so remember to enter them as well! | Every user gets their own specific table and column prefixes, so remember to enter them as well! | ||
Then it's mainly a whole load of clicking untill you get to the modules. Here, deactivate GD under the graphics toolkits because it eats a LOT of memory! | Then it's mainly a whole load of clicking untill you get to the modules. Here, deactivate GD under the graphics toolkits because it eats a LOT of memory! | ||
Go to http://www.sitename.ext/site/gallery/main.php and log in, go to site admin (top right) and then | |||
Go to http://www.sitename.ext/site/gallery/main.php and log in, go to site admin (top right) and then plugins (left bar). Configure URL Rewrite. Choose PHP Path Info and save. Then in the modules list, 'activate' URL Rewrite. | |||
ImageMagick won't activate because it's not installed. | ImageMagick won't activate because it's not installed. | ||
Remember to cat /dev/null > login.txt after the installation! | Remember to cat /dev/null > login.txt after the installation! | ||
For more information, the documentation is here: http://codex.gallery2.org/Category:Gallery_2:Installation | For more information, the documentation is here: http://codex.gallery2.org/Category:Gallery_2:Installation |
Latest revision as of 19:57, 18 January 2017
Prepare the virtualhost by creating a directory /home/sites/www.sitename.ext/site/gallery for the gallery files and giving it the correct permissions (chown razor:group /home/sites/www.sitename.ext/site/gallery/) NB owner must be razor at this time, because he can access the gallery2 installation files (due to suPHP)
Also create a directory for the gallery data /home/sites/www.sitename.ext/g2data. Chown razor:group this directory as well.
Should you not want suphp or something, g2data/ dir and subfiles has to be chown www-data
Go to the Virtual site Installer at http://gallery2.edgarbv.com/install/ or http://gallery2-wraith.edgarbv.com
Log in to edgarghost, cd /usr/share/gallery2
In the install you will recieve a string, which must be pasted in to /usr/share/gallery2/login.txt to authenticate.
Choose a Multisite Installation and enter the path in the first step.
When it gets to the database setup, I've put all the galleries into one database: gallery2.
Every user gets their own specific table and column prefixes, so remember to enter them as well!
Then it's mainly a whole load of clicking untill you get to the modules. Here, deactivate GD under the graphics toolkits because it eats a LOT of memory!
Go to http://www.sitename.ext/site/gallery/main.php and log in, go to site admin (top right) and then plugins (left bar). Configure URL Rewrite. Choose PHP Path Info and save. Then in the modules list, 'activate' URL Rewrite.
ImageMagick won't activate because it's not installed.
Remember to cat /dev/null > login.txt after the installation!
For more information, the documentation is here: http://codex.gallery2.org/Category:Gallery_2:Installation