Skip to main content

problem with ftp and apache

Comments

2 comments

  • andinacom
    I have solve the problem! if you create any files with root access by terminal, owner is root. So, you must change index.php owner by terminal: 1. Command: chown andinacom:andinacom index.php Next, active passive mode in ftp : 1. For open file command nano /etc/pure-ftpd.conf 2. Change that line to the following: PassivePortRange 49152 65534 3. Command: sudo rm -f /var/cpanel/conf/pureftpd/main.cache for clear cache 4. Command: sudo echo "PassivePortRange: 49152 65534" >> /var/cpanel/conf/pureftpd/main to append the passive ports to the configuration file 5. Open ports in your iptables by this commands: Command sudo iptables -I INPUT -p tcp --dport 49152:65534 -j ACCEPT Command sudo service iptables save I came from plesk panel, and i think that cPanel for security, power and flexibility is without doubt the best panel in the world. All this at a ridiculous price!!! Regards
    0
  • cPanelMichael
    Hello, I am happy to see you were able to address the issue. Note that you may want to upload files while logged in as the account username so you don't have to adjust ownership values. Thank you.
    0

Please sign in to leave a comment.