openSUSE Forums > Applications » FTP user for joomla installation

Go Back   openSUSE Forums > Applications
Forums FAQ Members List Search Today's Posts Mark Forums Read

Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-Jul-2009, 15:27
suse_tpx60s's Avatar
Busy Penguin
 
Join Date: May 2009
Location: EU
Posts: 406
suse_tpx60s hasn't been rated much yet
Default FTP user for joomla installation

I just installed Joomla and one of the things that came up during the install was to set the ftp username and password to allow Joomla to transfer files to and from the filesystem.

I left it blank as I didn't know what to fill in or how to set up a ftp user in Linux. As expected I am unable to upload any extensions to Joomla. It throws up a "Failed to move file" error.

How do I set up a ftp user in openSUSE and what permissions should I allow it to have in order for Joomla to work? Is it as simple as going to YAST>User and Group Management and just creating an user and assigning it to the ftp group?
__________________
IBM Thinkpad X60s | Intel L2400 1.66Ghz | Mesa DRI Intel 945GM video | 3GB Ram
openSuSE 11.1 | Linux 2.6.27.29-0.1 pae i686 | KDE 4.3.3
Reply With Quote
  #2 (permalink)  
Old 07-Jul-2009, 20:31
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,109
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: FTP user for joomla installation

I saw that too when I was doing a Joomla installation for a client.

I believe it's a feature that's provided by Joomla itself and doesn't involve the Linux authentication. So you would have to read the Joomla doco. Also if you have a firewall, particularly a NAT border firewall, there would probably also be hassles with the port forwarding rules for FTP, which is traditionally problematic for firewalls because it involves two ports, one of which is transmitted inside the command stream at connection establishment time.

I didn't enable for my client because I have already set up a more secure sftp (over ssh) system for them. Also the ssh protocol is easy to port forward.
Reply With Quote
  #3 (permalink)  
Old 08-Jul-2009, 01:42
Student Penguin
 
Join Date: May 2009
Location: Jakarta, Beijing
Posts: 75
maill hasn't been rated much yet
Default Re: FTP user for joomla installation

Hi,
i usually install joomla extension through the administrator page,
extensions>install/uninstall,

based on my experience you don't have to use the joomla FTP functionality to install the extensions,

just need to give the right permission to the apache user to write on the joomla folders
__________________
"And just as you want men to do to you, you also do to them likewise."
Luke 6:31 NKJV
Reply With Quote
  #4 (permalink)  
Old 08-Jul-2009, 01:58
suse_tpx60s's Avatar
Busy Penguin
 
Join Date: May 2009
Location: EU
Posts: 406
suse_tpx60s hasn't been rated much yet
Default Re: FTP user for joomla installation

I'm installing joomla so I can build and test a website locally and I'll be the only user using it. It will not be open for access from the outside.
Quote:
Originally Posted by maill View Post
Hi,
i usually install joomla extension through the administrator page,
extensions>install/uninstall,

based on my experience you don't have to use the joomla FTP functionality to install the extensions,

just need to give the right permission to the apache user to write on the joomla folders
I am trying to install extension through the admin page. I guess I have a permissions problem with writing to the joomla folder. How do I give the correct permissions to the apache user?

Quote:
I saw that too when I was doing a Joomla installation for a client.

I believe it's a feature that's provided by Joomla itself and doesn't involve the Linux authentication. So you would have to read the Joomla doco. Also if you have a firewall, particularly a NAT border firewall, there would probably also be hassles with the port forwarding rules for FTP, which is traditionally problematic for firewalls because it involves two ports, one of which is transmitted inside the command stream at connection establishment time.

I didn't enable for my client because I have already set up a more secure sftp (over ssh) system for them. Also the ssh protocol is easy to port forward.
During the install when it prompted for the ftp user details, it said due to the way permissions are handled on the Linux / Unix filesystems, that joomla requires an ftp user to transfer files to and from the filesystem. It said if you are installing on Windows that it's not necessary. I took that to mean that a local ftp user account would need to be created.

However if I can just assign the necessary permission to Apache then that would be better I think.
__________________
IBM Thinkpad X60s | Intel L2400 1.66Ghz | Mesa DRI Intel 945GM video | 3GB Ram
openSuSE 11.1 | Linux 2.6.27.29-0.1 pae i686 | KDE 4.3.3
Reply With Quote
  #5 (permalink)  
Old 08-Jul-2009, 02:12
Student Penguin
 
Join Date: May 2009
Location: Jakarta, Beijing
Posts: 75
maill hasn't been rated much yet
Default Re: FTP user for joomla installation

Hi,
if you are using it for testing, the easiest way is to:

Code:
chmod -R 777 yourjoomlafolder
__________________
"And just as you want men to do to you, you also do to them likewise."
Luke 6:31 NKJV
Reply With Quote
  #6 (permalink)  
Old 08-Jul-2009, 02:30
Student Penguin
 
Join Date: May 2009
Location: Jakarta, Beijing
Posts: 75
maill hasn't been rated much yet
Default Re: FTP user for joomla installation

And for further testing, if you decided to install another joomla site locally, you can also change the default apache user to your current user, by editing /etc/apache2/uid.conf

Code:
User yourusername
Group yourusergroup
and restart apache

HTH
__________________
"And just as you want men to do to you, you also do to them likewise."
Luke 6:31 NKJV
Reply With Quote
  #7 (permalink)  
Old 08-Jul-2009, 03:11
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,109
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: FTP user for joomla installation

Quote:
Originally Posted by suse_tpx60s View Post
I'm installing joomla so I can build and test a website locally and I'll be the only user using it. It will not be open for access from the outside.

I am trying to install extension through the admin page. I guess I have a permissions problem with writing to the joomla folder. How do I give the correct permissions to the apache user?

During the install when it prompted for the ftp user details, it said due to the way permissions are handled on the Linux / Unix filesystems, that joomla requires an ftp user to transfer files to and from the filesystem. It said if you are installing on Windows that it's not necessary. I took that to mean that a local ftp user account would need to be created.

However if I can just assign the necessary permission to Apache then that would be better I think.
Simply put the extension in the appropriate Joomla folders and use chown (with the recursive option -R if necessary) to change the ownership to wwwrun, which is the account that Apache runs as. Also check that it has write permission to owner.

The ftp upload is only a convenience for people who want to upload using a ftp client. If you have access to the command line, it's just as easy to deposit the files there directly.

I do not recommend using mode 777 or changing the uid of the Apache process.
Reply With Quote
  #8 (permalink)  
Old 08-Jul-2009, 06:10
suse_tpx60s's Avatar
Busy Penguin
 
Join Date: May 2009
Location: EU
Posts: 406
suse_tpx60s hasn't been rated much yet
Default Re: FTP user for joomla installation

Quote:
Originally Posted by ken_yap View Post
Simply put the extension in the appropriate Joomla folders and use chown (with the recursive option -R if necessary) to change the ownership to wwwrun, which is the account that Apache runs as. Also check that it has write permission to owner.

The ftp upload is only a convenience for people who want to upload using a ftp client. If you have access to the command line, it's just as easy to deposit the files there directly.

I do not recommend using mode 777 or changing the uid of the Apache process.
I really need to get to grips with Linux permissions because it seems to be the root of most of my problems

I'm a little confused now as conflicting advice is being offered. I appreciate the suggestions being offered and clearly there are differeing opinions as to what is correct / acceptable or not. I'm trying to get my head around this. On my local system (localhost), I am unable to install extension, modules, templates, etc through the Joomla web admin page. I cannot make changes to the joomla global site configuration from the joomla web admin page. However, on my host with the live site I can do all those things. So what's different? It seems my local server is not properly configured. It doesn't make sense to have to keep changing permissions to install components or make site configuration changes.

The advice is against using mode 777 or changing the uid of Apache. So what is the best way for me to set things so I can use Joomla on localhost without having to manually change permissions to folders and files before wantting to install a component or make a global site config change?
__________________
IBM Thinkpad X60s | Intel L2400 1.66Ghz | Mesa DRI Intel 945GM video | 3GB Ram
openSuSE 11.1 | Linux 2.6.27.29-0.1 pae i686 | KDE 4.3.3
Reply With Quote
  #9 (permalink)  
Old 08-Jul-2009, 08:25
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,109
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: FTP user for joomla installation

You can change the ownership of the Joomla directories and files to wwwrun and then you will be able to modify things through the web interface.

Once your site is bedded down though, it would be additional security to change the ownership away to some other account so that the site cannot be defaced through any latent bug in the Joomla code that takes advantage of being able to write to the installation files. (Yes, web apps do remain a large area of vulnerability for servers.) Any areas that are used for uploads (e.g. pictures, attachments, etc) should however remain writable to Apache.

You could also enable the FTP feature, since it shouldn't be an issue if you are accessing it internally. But you still have to make the Joomla directories owned by wwwrun for FTP to be able to write there. I can't tell you how to get the Joomla FTP feature working though, I didn't use it.
Reply With Quote
  #10 (permalink)  
Old 08-Jul-2009, 09:24
suse_tpx60s's Avatar
Busy Penguin
 
Join Date: May 2009
Location: EU
Posts: 406
suse_tpx60s hasn't been rated much yet
Default Re: FTP user for joomla installation

Quote:
Originally Posted by ken_yap View Post
You can change the ownership of the Joomla directories and files to wwwrun and then you will be able to modify things through the web interface.
Thanks that did it.
__________________
IBM Thinkpad X60s | Intel L2400 1.66Ghz | Mesa DRI Intel 945GM video | 3GB Ram
openSuSE 11.1 | Linux 2.6.27.29-0.1 pae i686 | KDE 4.3.3
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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2