Results 1 to 13 of 13
  1. #1
    Join Date
    Aug 2009
    Posts
    147

    how to open ports in server??

    Hi
    I have dedicated server..i installed cpanel on it but when am accessing it

    http://91.121.24.67:2087

    i am not able to open it..so i think port is not open so can any one tell me how to open ports...the os installed is centos..

  2. #2
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    3,262
    Assuming the cPanel installation was successful, simply restart cPanel using this command:

    /etc/init.d/cpanel restart

    Or reboot the server (not recommended).

    Regards
    Joe
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    Server Management - Unlimited Servers. Unlimited Requests. One Plan!
    cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
    Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy

  3. #3
    Join Date
    Dec 2005
    Posts
    3,110
    For HTTP its port 2086. Port 2087 is for SSL (HTTPS)

    Use these links:

    http://91.121.24.67:2086 or https://91.121.24.67:2087

    That still doesnt work however, try flushing out your iptables rules:

    iptables -F

  4. #4
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    3,262
    Quote Originally Posted by PCS-Chris View Post
    For HTTP its port 2086. Port 2087 is for SSL (HTTPS)
    cPanel's cpsrvd responds to either SSL or non-SSL requests on port 2087. cpsrvd should give a clue either way.

    Regards
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    Server Management - Unlimited Servers. Unlimited Requests. One Plan!
    cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
    Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy

  5. #5
    Join Date
    Aug 2009
    Posts
    147
    hi
    thanks every one ...but still its not working??? can any one help me out.....how to make it work..

  6. #6
    Find the open and closed of your server ports using the below command

    #nmap localhost
    #nmap ip-Address

    Also Check is it connected from out side and inside

    eg)
    sahab@sahab-laptop:~$ telnet xx.xx.xx.2\xx 2082
    Trying xx.xx.xx.xx...
    Connected to xx.xx.xx.xx.
    Escape character is '^]'

    Is it not connected means try to reinstall cpanel, In default cpanel port open automatic on installation time.

  7. #7
    Join Date
    Oct 2009
    Posts
    51
    Do you have it open with iptables?

  8. #8
    Join Date
    May 2006
    Posts
    1,426
    Well if you flush iptables and you have default deny it will lock you out until reboot.

    Are you getting connection reset or connection timeout?

    you would do iptables -L -n to see your iptables rules. If it is default centos webserver I think it does come with some default rules, just install a firewall like csf and configure it for the open ports would be easy way.

    connection reset usually means the daemon (whm) is not running or your default deny is reject but I would assume it is drop so if it is firewalled you would get a connection timeout.

  9. #9
    Make sure cPanel is installed successfully. I even didn't get Apache Success page while browsing http://91.121.24.67. If cPanel is installed successfully and Apache is up and running, you should get "Apache is working on your cPanelŽ and WHM™ Server" page.

    Kailash
    || Web Hosting Blog - Web Hosting security & latest web hosting industry Announcements
    || Web Hosting Discussion - A Web Hosting community

  10. #10
    Join Date
    Feb 2004
    Location
    USA
    Posts
    1,572
    Do you have an firewall installed? CSF, AFP?

    Try doing

    # iptables -F

  11. #11
    Join Date
    Oct 2009
    Location
    India
    Posts
    23
    You can try after,

    service iptables stop
    service apf stop
    csf -f

  12. #12
    Join Date
    May 2008
    Posts
    340
    Running a telnet on the IP address 91.121.24.67 on the ports 2082/2083 resulted in a connection refused message.

    Performing a port scan on the IP address reveals cPanel ports are not being filtered nor are running.

    Are you sure the cPanel service is running ?

    ps aux | grep cpsrvd
    Secondly, is this a VPS wherein the server might be running out of memory. Can you paste the output of the following command,

    tail -f /var/log/chkservd.log
    Twitter : http://twitter.com/eth1networks
    Contact Us : support[at]eth1.in

  13. #13
    Try to open the port using the iptables as given below,

    #iptables -A INPUT -p tcp --dport portno -j ACCEPT

    and/or

    #iptables -A OUTPUT -p tcp --dport portno -j ACCEPT

    after that save and restart iptables using command,

    #service iptables save
    #service iptables restart
    Shared Hosting | Reseller Hosting | VPS Hosting | Dedicated Servers
    KeserHosting.Com

Similar Threads

  1. Ports to open for web server (PLESK, cPanel, etc.)
    By dimsys in forum Hosting Security and Technology
    Replies: 2
    Last Post: 03-11-2008, 07:34 AM
  2. how can i open ports in my server ?
    By Medo Hard in forum Dedicated Server
    Replies: 8
    Last Post: 04-05-2007, 11:36 AM
  3. Why would a windows server show all ports as open
    By stooley in forum Hosting Security and Technology
    Replies: 1
    Last Post: 04-24-2006, 11:05 AM
  4. Is this safe with this ports being open for a cpanel server?
    By jayzee in forum Hosting Security and Technology
    Replies: 3
    Last Post: 09-28-2005, 08:25 PM
  5. What are the normal ports that are supposed to be open? on a windows IIS server
    By Cephren in forum Hosting Security and Technology
    Replies: 7
    Last Post: 08-27-2002, 10:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •