Knowledge Base Article

How can I install/configure my Gallery2 to work properly with the server URL?

If you want to be able to access your Gallery2 through the server's URL, you have to edit the main configuration file, which is config.php and it is located into the main Gallery2 directory. You can edit the file using the File Manager in your cPanel. Once you open the file in edit mode, you have to replace the following line:

$gallery->setConfig('galleryBaseUrl', '');

with this one:

$gallery->setConfig('galleryBaseUrl', 'servername.com/~username/gallery2/');

where "yourserver.com" has to be replaced with the hostname of your server, and "gallery" - with the name of your gallery's root directory.



Rating

Please indicate if this article was helpful for you.

rating :  4.2 from 5
views :  1550
votes :  4

Related Articles

Views

How to reset my Gallery 2 administrative password. 6754
How to clear Menalto Gallery2's cache? 1962
How can I upgrade my Gallery2 application? 1888
Gallery navigation hacks 1432
What is Gallery 4237

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!