Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th January 2007, 22:28
grazman grazman is offline
Junior Member
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
Reply With Quote
Sponsored Links
  #2  
Old 10th January 2007, 17:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 10th January 2007, 18:41
grazman grazman is offline
Junior Member
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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).
Reply With Quote
  #4  
Old 11th January 2007, 19:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

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).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 15th January 2007, 04:54
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

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.
__________________
Shuttle XPC | Intel 865g | P4 3.2Ghz | ATI 9800 Pro
Hosts: Ubuntu 6.10 ~ XGL-Beryl SVN-Gnome | OS X 10.4.8 | WindowsXP
Virtual Appliances: Ubuntu Server 6.10 | WindowsXP | CentOS 4.4
Reply With Quote
  #6  
Old 17th January 2007, 10:26
lostmail lostmail is offline
Junior Member
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 ?
Reply With Quote
  #7  
Old 17th January 2007, 12:41
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

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.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #8  
Old 17th January 2007, 15:00
lostmail lostmail is offline
Junior Member
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question

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...
Reply With Quote
  #9  
Old 18th January 2007, 14:20
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

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.
__________________
Shuttle XPC | Intel 865g | P4 3.2Ghz | ATI 9800 Pro
Hosts: Ubuntu 6.10 ~ XGL-Beryl SVN-Gnome | OS X 10.4.8 | WindowsXP
Virtual Appliances: Ubuntu Server 6.10 | WindowsXP | CentOS 4.4
Reply With Quote
  #10  
Old 18th January 2007, 20:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
 
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu ispconfig joomla .htaccess steve1084 General 8 6th January 2007 15:55
Joomla images doesn't show off ! gabrix Server Operation 7 2nd November 2006 18:01
Joomla & ISPconfig ikaros General 7 3rd October 2006 12:16
HELP: ispconfig startup issue..need help quickly csharp2a General 1 8th September 2006 11:31
Perfect setup Joomla with ISPConfig ? bogdinator Installation/Configuration 22 19th January 2006 18:34


All times are GMT +2. The time now is 16:18.


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