The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

problem with ftp and apache

Discussion in 'General Discussion' started by andinacom, Mar 23, 2015.

  1. andinacom

    andinacom Registered

    Joined:
    Mar 23, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    ecuador
    cPanel Access Level:
    DataCenter Provider
    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:

    <?php

    // Show all information, defaults to INFO_ALL
    phpinfo();

    ?>



    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?
     
  2. andinacom

    andinacom Registered

    Joined:
    Mar 23, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    ecuador
    cPanel Access Level:
    DataCenter Provider
    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
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page