• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

how can I change ftpd settings

E

Entrofi

Guest
I am a new plesk user and I have root access to my server. I have created domains and corresponding ftp accounts succesfully and can log in through ftp to the domain's hosting folders.
Well my problem is this:
when I login through ftp (for e.g. with user foo) and create files new files are created with owner foo and group psacln however, apache runs with user/group apache therefore when I try to use a CMS system like Joomla I could not install it at all because apache/apache has no access to write to it.
To resolve this problem I have edited /etc/proftpd.conf
from: ...
<Directory var/www/vhosts>
GroupOwner psacln
</Directory>
...
to: ...
<Directory var/www/vhosts>
GroupOwner apache
UserOwner apache
</Directory>
and restarted server but this didnot resolve the problem. Thank you for your helps in advance
 
Revert your proftpd.conf and just chmod 777 on the dirs Joomla needs to be able to write to. Sadly there is no suPHP support built into Plesk (which would make PHP scripts run as their owner instead of apache).
 
Well thank you for your quick reply breun. However this is not a safe way of installing joomla , in addition for a customer who wants to setup his/her own site using joomla it requires additional work for me to explain them using chmod. Also I know one of my friends using plesk vps (hired from other co.) does not have such problems.
I had also another problem because of that user stuff: I couldnt run one of my Ajax codes.
I think the problem can be solved if we could force newly created ftp files tobe owned with www user which is "apache" in this case. However, I couldnt handle it by changing proftpd.conf (normally I could in my local server) . But in this case editing those lines didnt change anything.
 
It's not going to work any other way as long as Joomla runs under mod_php. And I believe it's not that unsafe since vhosts are trapped in their own httpdocs dir using open_basedir.
 
Well the problem is not only joomla installation with these settings any simple php upload can nnot run and gives error. This means that if you let users to upload files the script cannot handle the process. Assume you managed that in some way, then when you log in through ftp you will not have access to make changes on that file

After you(breun) told me about mod_suphp I searched for it but I cannot find a suitable package for Centos4 which is provided to me by turkticaret.net although I wanted my vps on a Debian system.

I am novice to Centos and do not want to compile mod_suphp using a tarball. I'd be pleased if anyone who knows an mod_suphp rpm package for Centos4 post a link here.
 
Dag probably has a package, but just installing suPHP will not solve your problems as you'll probably need to tweak a thing or two to get it to work with Plesk. You might be able to find some instructions on the forums. I'd really just do the chmod trick.
 
Back
Top