joomla in /srv/www


i installed joomla, every package done for suse seem to install directly under /srv/www/

apache don’t seem to see thing outside /srv/www/htdocs/

what can i do to get joomla working from there?


Could you point out where you acquired these packages because /srv/www/htdocs is the default location for content - if you are installing Joomla you should just uncompress it there and change the file permissions so that wwwrun can access the cache/temp directories but otherwise the files should be owned by root.


I’m guessing they’ve done it this way because they assume people want to setup a virtual host for joomla and thus make a new .conf file.

Will this be a production system or are you just installing it to see how it works?

You could take a look at /etc/apache2/vhosts.d/vhost.template and copy it as joomla.conf then edit it accordingly - Documentroot should be /srv/www/joomla

only for local test…

so i moved folder to htdocs, but with localhost/joomla
i get a permission problem

4 drwxr-xr-x 4 root root 4096 10 août 14:40 htdocs
drwxr-xr-x 18 wwwrun www 4096 10 août 14:13 joomla

If it’s just for local testing, you can just recursively change the permissions for the joomla directory, files and subdirectories to wwwrun:www, however you should never set it up like that for a production system or any system connected to the internet in any way (where the Apache is accessible of course).

What permission errors are you getting?

i downloaded joomla directly from their homesite and that worked fine directly.

Crazy then for a so much popular package there is not package done by suse directlly.

It’s yet-another-package that takes a lot of maintenance and if there’s no one with the time to do it…

Joomla gets constant updates and security fixes, not to mention many of the modules get updated at a crazy rate. It’s pretty painful to keep up to date.

If you wanted to simply re-point the default website to where the Joomla files exist,

Probably the easiest way (assuming you installed Apache) is to install the YAST http server applet.
Within that applet, you can do a number of things easily, including what is needed here.

You should probably install the YAST http server applet anyway…