problem with ftp and apache
Hello cPanel People.
I have a problem with Cpanel / Whm 11.48.1 with Centos 6.6 x64.
WHM work correctly, create users properly.
Step by cPanel,in the administrative area of the account, everything works fine.
The problem is when I try to log in ftp: can not connect, and ftp client goes in Time Out.
Step by accessing terminal server with root account, creating an index.php file in the root of the client www.andinacom.net (/home/andinacom/public_html/index.php)
If you go to www.andinacom.net the answer is:
Internal Server Error
Apache / 2.2.29 (Unix) mod_ssl / 2.2.29 OpenSSL / 1.0.1e-fips mod_bwlimited / 1.4 Server at andinacom.net Port 80
The file index.php contain only php info:
I came back to cPanel customer acccount and installing any application by Softoculos, tall working properly (Joomla, Drupal, Magento, etc..):
www.andinacom.net/joomla
I have some experience with Linux, but I come from debian / plesk, and in this world you never stop learning!
I tried to read the log files, but did not find anything strange.
Someone is able to help me?
-
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 -
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.
Comments
2 comments