HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   ISPCONFIG - JOOMLA - extensions (images) issue (http://www.howtoforge.com/forums/showthread.php?t=9681)

grazman 9th January 2007 22:28

ISPCONFIG - JOOMLA - extensions (images) issue
 
I've installed a coupe of test sites using ISPCONFIG (on a vmware test machine with the precompiled image).

With the exception of not having a spec file to properly re-issue the certificate (it is not in the standard place, but hey, it' only a test).

I can set up a user, create sites, FTP content, etc. no problem.

As an example, if I create a brand new site it works fine. If I add a component/module there is an issue with permissions on ISPCONFIG.

I get:

-----
"403 Forbidden"

The following error occurred:

You are not permitted to access the requested URL

Please contact the Webmaster with any queries.
-----

This happens with multiple components/modules. And it seems to only relate to "images". They are not broken links, they simply will not show up in the page. I am sure the relative link, live site config and DNS are working exactly as they should.

It only happens when you add a module into the Joomla (virtuemart fails to show any images, same with Jevents). If I install the virtue ecommerce edition of Joomla it's fine. But if I add a module AFTER the original install, it still fails to show images and looks cosmetically like a permissions issue somewhere.

Does anyone have any insight on this? I am installing with the same user that owns the web site, I have also checked the permissions on the directory. I works fine on other control panels, just not with ISPCONFIG in the manner I have it deployed to test. Any ideas?

falko 10th January 2007 17:46

This might be related to Joomla's .htaccess file. Search for "joomla .htaccess" and "joomla ispconfig" with the forum's search function. You should find some interesting threads. :)

grazman 10th January 2007 18:41

Definitely a "rpermissions" issue.
 
Quote:

Originally Posted by falko
This might be related to Joomla's .htaccess file. Search for "joomla .htaccess" and "joomla ispconfig" with the forum's search function. You should find some interesting threads. :)

This is my first post. After I submitted I realize it was in the wrong place. Sorry.

I believe I have it figured out. It was not an htacces issue, it was stranger than that. If I set the rights for the directories to "755" and contents to "644", it works. If I do it in the directory above that, recursive, it does not. Does anyone have any answer for that? Again, I am using the VMWARE image posted at their site.

As I was trying to pull the image through the browser directly and getting the "403" error, it seemed that .htaccess was not the issue, because it is as defaults and I have not enabled SEF or any 3rd party SEF modules.

If I change the CHMOD in the JOOMLA config (Site>Global Configuration>Server) it will work (the how-to does not address this so I assumed the defaults would work properly). It seems the limited permissions on the directories negate the ability to use the contents (images).

falko 11th January 2007 19:40

Quote:

Originally Posted by grazman
If I set the rights for the directories to "755" and contents to "644", it works. If I do it in the directory above that, recursive, it does not.

Maybe you did a
Code:

chmod -R 644 *
in the parent directory? That way, also all subdirectories get 644 permissions, but directories must always be executable (like 755 or 775).

domino 15th January 2007 04:54

Some files created through Joomla's admincp will automatically give it 755 and sometimes 777 perms. Joomla also chowns the files and directories it creates when installing modules and components, making it almost impossible to edit and add files via ftp client.

lostmail 17th January 2007 10:26

Installed joomla - can not install components, modules...
 
I installed joomla successfully in var/www/web20/web/home as decribed in the manual in this forum here.

All seemed to be fine.

But now I try to install some modules/componentes - not possible.

i.e. com_joomlaxplorer.zip:

Quote:

Upload component - Upload Failed
ERROR: Could not find an XML setup file in the package.
[ Continue ... ]
Upload component - Failed
Installation file not found:
/var/www/web20/web/home/media/install_45ade9249423a/
[ Continue ... ]
It seems that joomla has no permissions to install files....

when I look with FTP in components there is a new directory "com_joomlaxplorer" but it is empty.

Is ISPConfig not "Joomla-Compatible" ? Or something wrong in server-configuration ?

Owner of directory "com_joomla" is "www-data" - is that correct ?

Hans 17th January 2007 12:41

If the user www-data is the owner of the folder, you do not have access to that folder via FTP.

You can considder to change the permissions as described here:
http://www.howtoforge.com/forums/sho...ghlight=joomla
I have good experience with these permission settings.

You also can work with suphp. Information about that can be found in the forums.

lostmail 17th January 2007 15:00

Yes - but if i install a component the owner is www-data - what is the reason that joomla doesn`t insert files into that new by joomla created directory.

The new folder ist created but empty.

Quote:

drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_banners
drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_contact
drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_content
drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_frontpage
drwxr-xr-x 2 www-data www-data 4096 Jan 16 08:03 com_joomlaxplorer
drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_login
drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_messages
drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_newsfeeds
drwxrwxr-x 3 web49_1 web49 4096 Jan 15 06:17 com_poll
drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_registration
drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_rss
drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_search
drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_user
drwxrwxr-x 2 web49_1 web49 4096 Jan 15 06:17 com_weblinks
-rw-rw-r-- 1 web49_1 web49 47 Jan 15 06:14 index.html
You can see - web49 is the user of root and the one created folder "com_joomlaxplorer" ist user www-data.

Joomla system creates the folder but than nothing more happens - no files in it...

domino 18th January 2007 14:20

Either delete the components and modules through ftp and reinstall them through administration or chown -r 4096:4096 every folder and file in components and module both in admin and joomla root directories.

falko 18th January 2007 20:05

Quote:

Originally Posted by lostmail
Yes - but if i install a component the owner is www-data - what is the reason that joomla doesn`t insert files into that new by joomla created directory.

The new folder is owned by www-data, but when you log in with FTP, you are logged in as the user web49_1. That's why you can't upload to that folder with FTP. You could run
Code:

chmod 777 com_joomlaxplorer
to solve the problem.


All times are GMT +2. The time now is 04:27.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.