Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2005
    Posts
    62

    Unhappy can't access cpanel using /cpanel, only direct port? https not working

    Hi, I have a serious problem here.

    Problem 1

    I am able to access my cpanel and whm directly using direct ports at http://www.apc.sg:2082 and http://www.apc.sg:2086 respectively. however when I tried to access using http://www.apc.sg/cpanel or /whm, it returns 'page not found error'.

    Problem 2

    Also, I have installed all the relevant SSL modules, openssl, curl with ssl. And I even has a SSL installed on my server. But the problem is when I try to access using https://www.apc.sg:2083 or :2087, it returns page not found at all.

    I can access my ssl site at https://www.apc.sg/ but when I try to access SSL of cpanel or whm, it just returns page not found. anyone has this problem can enlighten me? Thank you very much!

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2005
    Posts
    62

    Default

    I am using cpanel on redhat 9.

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2005
    Posts
    62

    Default

    This is my recompile of apache. could it be any of the error below that is leading to the problem above?

    "/etc/rc.d/init.d/httpd start: httpd started
    Setting /home permissions to 0711......Done
    Setting permissions
    17:49:04 URL:http://layer1.cpanel.net/buildapache...t-2.5.7.tar.gz [5233 21/523321] -> "libmcrypt-2.5.7.tar.gz" [1]
    Untarring mcryptDone
    configure libmcrypt-2.5.7...(--prefix=/usr --disable-posix-threads)............. .....................Done
    make -j 4 libmcrypt-2.5.7....................................................... .............................Done
    make libmcrypt-2.5.7...(install)........Done
    17:51:03 URL:http://layer1.cpanel.net/buildapache...-0.8.18.tar.gz [347483/ 347483] -> "mhash-0.8.18.tar.gz" [1]
    Untarring mhashDone
    configure mhash-0.8.18...(--prefix=/usr)........................................ .Done
    make -j 4 mhash-0.8.18...........................Done
    make mhash-0.8.18...(install).....Done
    17:52:09 URL:http://layer1.cpanel.net/buildapache...-7.12.0.tar.gz [1520041/ 1520041] -> "curl-7.12.0.tar.gz" [1]
    Untarring curl......Done
    configure curl-7.12.0...(--prefix=/usr)......................................... ...................................................Done
    make -j 4 curl-7.12.0........................................................... ........Done
    make curl-7.12.0...(install).........Done
    Untarring imap....Using RPM Backend: RPM version 4.2
    installed: imap-devel-2001a-18.1.rh9.swsoft
    ln: `c-client.a': File exists
    Using RPM Backend: RPM version 4.2
    installed: gettext-0.11.4-7.2.legacy
    17:55:15 URL:http://layer1.cpanel.net/buildapache/1/php-4.4.1.tar.gz [5110458/51 10458] -> "php-4.4.1.tar.gz" [1]
    Untarring php....Done
    Applying CURL curl_formfree patch
    patching file ext/curl/curl.c
    Hunk #1 succeeded at 590 (offset 45 lines).
    Hunk #2 succeeded at 904 (offset 19 lines).
    configure php-4.4.1...(--with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/loca l --with-xml --enable-bcmath --enable-calendar --with-curl --enable-exif --enabl e-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/u sr/X11R6 --with-gettext --with-imap --with-imap-ssl --with-kerberos --enable-mbs tring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --with-mhash --ena ble-magic-quotes --with-mysql=/usr --with-openssl --enable-discard-path --with-p ear --enable-sockets --enable-track-vars --enable-versioning --with-zlib)....... ................................................................................ ..........Done
    configure: error: build test failed. Please check the config.log for details.
    make -j 4 php-4.4.1...(clean)....Done
    Can't open Makefile: No such file or directory.
    make -j 4 php-4.4.1.......Done
    make php-4.4.1...(install)....Done
    /etc/rc.d/init.d/httpd start: httpd started
    configure php-4.4.1...(--prefix=/usr --with-xml --enable-bcmath --enable-calenda r --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local -- with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap --with-im ap-ssl --with-kerberos --enable-mbstring --enable-mbstr-enc-trans --enable-mbreg ex --with-mcrypt --with-mhash --enable-magic-quotes --with-mysql=/usr --with-ope nssl --enable-discard-path --with-pear --enable-sockets --enable-track-vars --en able-versioning --with-zlib).................................................... .............Done
    configure: error: build test failed. Please check the config.log for details.
    make -j 4 php-4.4.1...(clean)....Done
    Can't open Makefile: No such file or directory.
    make -j 4 php-4.4.1.......Done
    make php-4.4.1...(install)....Done
    initfpsuexec: using apache 1.x support
    chattr: Inappropriate ioctl for device while reading flags on _vti_bin/fpexe
    chattr: Inappropriate ioctl for device while reading flags on _vti_bin/fpexe
    PHP version file is up to date
    Executing /scripts/postbuildapache (if exists)...Done
    /etc/rc.d/init.d/httpd start: httpd started
    Waiting for httpd to restart..............finished.

    root 4512 0.6 0.0 5628 3332 ? S 17:58 0:00 /usr/local/apache /bin/httpd -DSSL

    httpd started ok"

  4. #4
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    Do you have this line in your httpd.conf:
    ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi

    Here are all the redirects that cpanel uses:

    Code:
    ErrorDocument 400 /400.shtml
    ErrorDocument 401 /401.shtml
    ErrorDocument 403 /403.shtml
    ErrorDocument 404 /404.shtml
    ErrorDocument 500 /500.shtml
    ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
    Alias /sys_cpanel/ /usr/local/cpanel/sys_cpanel/
    Alias /java-sys/ /usr/local/cpanel/java-sys/
    Alias /img-sys/ /usr/local/cpanel/img-sys/
    Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/
    Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/
    ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
    ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
    ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
    ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi
    ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /controlpanel /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/sredirect.cgi
    Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
    ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
    Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
    Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/
    Alias /interchange-5/ /usr/local/cpanel/3rdparty/interchange/share/interchange-5/

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2005
    Posts
    62

    Default

    Yes I checked all the lines are there exactly the same.

    The problem is there seems to be a dns error when I access using /cpanel or /whm and not direct port access.

  6. #6
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    Ok, I see what's going on...


    You have the option alwaysredirecttossl set to 1 in /var/cpanel/cpanel.config so it always sends http://domain.com/cpanel to https://domain.com:2083 - set it to 0 and it will redirect to http://domain.com:2082 and since your ssl for cpanel isn't working for you, it's not working.

    https access to cpanel on your domain is working for me, but appearantly not for you. Try generating a new certificate in WHM, maybe? Not sure why it wouldn't be working for you...

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2005
    Posts
    62

    Default

    Hi, Thank you so much for your help! Yep https is working for me now but I am not sure what they have done to fix it. I asked them for the solution and hope we can learn from it!

    Btw I will try to change the settings see how it goes. Thank you!

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2005
    Posts
    62

    Default

    Thanks its fixed now! But I have another problem.

    My https for cpanel/whm is using different ssl cert from the one i installed for https://www.apc.sg. I don't know how does it happen. is it possible to set cpanel/whm to use the ssl cert i installed for https://www.apc.sg as well?

  9. #9
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    Go to:
    WHM > SSL/TLS > Change Server Certificates > cPanel/WHM Server
    Type the domain that your certificate is for in the "Domain this CRT is for" box
    Press tab or click on a blank part of the page
    The crt and key should be filled in automatically. If not, check that the domain is exactly the right one, i.e. "www" may or may not be in your certificate.

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2005
    Posts
    62

    Default

    thank you very much! I will try it now~

Similar Threads & Tags
Similar threads

  1. Cpanel access via https?
    By BigLebowski in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 10-30-2008, 01:54 PM
  2. Direct url access to AWstats not working since last update
    By seattlegrunge in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-10-2007, 01:20 PM
  3. CPanel/WHM Access over HTTPS
    By Piratez in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-05-2006, 05:52 PM
  4. https:// no longer working so i can't access whm
    By infinityws in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-25-2003, 04:21 PM
  5. https not working anymore on port 2087
    By Paulblo in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-07-2002, 10:49 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube