404 at www.mysite.com/gallery2 after apt-get install gallery2
psi36
Joined: 2006-02-16
Posts: 16 |
Posted: Wed, 2007-04-25 09:50 |
I just did an install with "sudo apt-get install gallery2", but when I surf to http://ddhuyvet.no-ip.info/gallery2 I get a "404 Not Found". Gallery version: 2.1.1-1 |
|
Posts: 32509
maybe it's at apache2-default/gallery2/, who knows... depends on your linux distribution.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 23
I had the same problem when I did a gallery2 install on Debain Sarge. I had to edit /etc/apache2/sites-available/default and add a new alias. You should check that or you could add an Include in apache2.conf to /etc/gallery2/apache.conf and modify that to your needs. Hope that helps.
Posts: 16
I've added the lines
to /etc/apache2/apache2.conf
/etc/gallery2/apache.conf itself I left unchanged:
I restarted Apache, but still get the 404 Error.
Did I do something wrong or did I forget something?
Posts: 108
Edit /etc/gallery2/apache.conf and remove the comment (#) in front of Alias /gallery2 /usr/share/gallery2) and restart apache. Once the alias has been enabled, your gallery should then be available at www.example.com/gallery2 (where www.example.com is replaced with your actual host name.).
--
Debian gallery package maintainer
Posts: 16
I uncommented the first line:
Alias /gallery2 /usr/share/gallery2
And restarted Apache, but got a warning:
And I still et a 404 error.
Posts: 108
The warning says the alias will never match. I'd edit the apache configuration for www.mysite.com and set the Alias there. The 404 should go away once you get /gallery2 to point to the gallery files.
--
Debian gallery package maintainer
Posts: 16
If I set the alias in /etc/apache2/apache2.conf I get the same warning:
I understand I need to get /gallery2 to point to the gallery files, I just don't know how.
Posts: 108
Is all of your apache configuration in /etc/apache2/apache2.conf? There's some other alias you have defined in some configuration file that is effectively nullifying the /gallery2 alias. If you'd like to e-mail your configuration file(s) to me at
I can see if I can diagnose the issue.
--
Debian gallery package maintainer
Posts: 16
I think I found why this alias is already defined:
In /etc/gallery2/apache.conf there's a link to /etc/gallery2/apache.conf
Thing is that I edited /etc/gallery2/apache.conf uncommenting Alias /gallery2 /usr/share/gallery2 so the alias should work.