Apache config help

Discussion in 'Apache' started by muffinsincream, Oct 12, 2007.

  1. #1
    When I go to my site, it shows me the default cPanel Apache page, even though I have files in the public_html directory. How do I fix this?
     
    muffinsincream, Oct 12, 2007 IP
  2. hostusfree

    hostusfree Banned

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    are you sure the dns has resolved yet? what is your ip?
     
    hostusfree, Oct 12, 2007 IP
  3. qualityhostings

    qualityhostings Well-Known Member

    Messages:
    1,764
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    105
    #3
    This may be because, the hosting account for that domain does not exists in the server.

    Do this.

    If you are sure , it is there in your WHM , then terminate it(after taking necessary backup)

    Then re create the hosting account.

    It should work now. This will remove the old entries from the apache httpd.conf file and re write it.

    If your problem is still there, then you need to manually edit httpd.conf file.

    Let me know , I can help you.
     
    qualityhostings, Oct 12, 2007 IP
  4. muffinsincream

    muffinsincream Active Member

    Messages:
    175
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    @hostus: Yes, I checked using DNSStuff.com.
    @qualityhostings: I accidentally broke my httpd.conf file. Once I figure out where the problem is, I will try your fix.
    Thank you both.
     
    muffinsincream, Oct 12, 2007 IP
  5. qualityhostings

    qualityhostings Well-Known Member

    Messages:
    1,764
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    105
    #5
    Please be take care of httpd.conf file. IF you put a dot anywhere without any cause, then the apache server will fail to restart.

    let me know, if you need assistance

    Thanks
     
    qualityhostings, Oct 12, 2007 IP
  6. muffinsincream

    muffinsincream Active Member

    Messages:
    175
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Ok, I'm trying to fix it, but it is a pain in the ass to edit it using pico /usr/local/apache/conf/httpd.conf. When I login to my admin FTP I see a folder filled with only a few invisible files. Can I download/upload files using SSH? Also, how can I find out what line the error is on?
     
    muffinsincream, Oct 12, 2007 IP
  7. qualityhostings

    qualityhostings Well-Known Member

    Messages:
    1,764
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    105
    #7
    I think the httpd file is located at

    /etc/httpd/conf/httpd.conf

    you can use nano.

    nano /etc/httpd/conf/httpd.conf

    When you finish, press F3 to save.

    The goto WHM and restart Apache

    Let me know if you need assistance
     
    qualityhostings, Oct 12, 2007 IP
  8. muffinsincream

    muffinsincream Active Member

    Messages:
    175
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #8
    Ok, with the help of the cPanel forums and a very kind DP member, I got the server to work. cURL is not installed however. How do you install cURL with cPanel/Apache?
     
    muffinsincream, Oct 12, 2007 IP
  9. qualityhostings

    qualityhostings Well-Known Member

    Messages:
    1,764
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    105
    #9
    It can be install from the WHM-> Apache update.

    What version of cpanel you are using ?

    cPanel CURRENT version contains EasyApache 3 which contains Apache 3 also.

    Dont update cPanel to CURRENT build, if you are not sure. Just use STABLE release.

    Let me know if you need further help

    Vivek
    SunTex Hosting
    www.SunTexHosting.com
     
    qualityhostings, Oct 12, 2007 IP
  10. muffinsincream

    muffinsincream Active Member

    Messages:
    175
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #10
    I have cURL installed now. You said easy apache has Apache 3, I believe Apache is at 2.2.6 or something. Does cPanel STABLE work with Apache 2? I hear that Apache 2 is faster.
     
    muffinsincream, Oct 14, 2007 IP
  11. qualityhostings

    qualityhostings Well-Known Member

    Messages:
    1,764
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    105
    #11
    Hello

    Sorry, it was my mistake, I typed 3 instead of 2.
    Yes
    Easy Apache 3 has got Apache 2.2 which is the latest one.

    It can install Apache 1.3,2 and 2.2

    I tried these all. But ,let me tell you , 2.2 has got some problems,(al least in my case)
    and I reverted to 1.3.

    Later, I changed it to version 2.

    Version 2 is working fine in my server.

    You can check my server signature here
    http://www.suntexhosting.com/sassdasdasd

    I heard from cPanel Staff, that cPanel CURRENT version has only EasyApache3. So, IF you need apache 2 then upgrade your cPanel to CURRENT build.

    I am also thinking 2 is much faster than 1.

    Recompile it with version 2. (not 2.2)

    Enjoy :)
     
    qualityhostings, Oct 14, 2007 IP
  12. qualityhostings

    qualityhostings Well-Known Member

    Messages:
    1,764
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    105
    #12
    Also, When you install Apache 2, select PHP version 5 .
    Got some problems with PHP 4
     
    qualityhostings, Oct 14, 2007 IP
  13. muffinsincream

    muffinsincream Active Member

    Messages:
    175
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #13
    Qualityhostings: Have you had any problems with the CURRENT cPanel build?
    If I upgrade to Apache 2 will I have to re-configure my optimized httpd.conf files? Also, do you know if php5 is fully backwards compatible?
     
    muffinsincream, Oct 14, 2007 IP
  14. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Hah ! PHP 5.2 isn't even compatible with 5.1.x !

    At my work we are migrating about 70 custom built websites across to our new load balanced servers and at the same time moving to Apache 2 and PHP 5. There are SO many little problems from changing the order of the needle and the haystack to removing the underscore from the name of the function to building certain PECL extensions into the PHP core (and changing some of the function names, but not all of them) to removing parts of the core and making them into extensions.

    We're running into the same problems again with the 5.1.6 - 5.2 upgrade. Luckily, it looks like RedHat are back-porting all the security fixes of the 5.2 branch into the 5.1.6 branch so we may be able to stick with that and not have to worry about the incompatibility problems.

    If your software hasn't been built from the ground up to only use functions compatible across the PHP 4 - 5 divide then you'll want to run it on a test machine before attempting it on your live webserver.
     
    Ladadadada, Oct 14, 2007 IP
  15. muffinsincream

    muffinsincream Active Member

    Messages:
    175
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #15
    I only run the Zelune and PHProxy scripts. I am not sure if those are compatible with php 5. I might have to make a new thread 0.o.
     
    muffinsincream, Oct 14, 2007 IP
  16. muffinsincream

    muffinsincream Active Member

    Messages:
    175
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #16
    Overall, do you think it is worth it to upgrade? Or is the CURRENT build too unstable?
     
    muffinsincream, Oct 15, 2007 IP
  17. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #17
    It is worth the upgrade. PHP5 is generally an improvement over PHP4. Some sites don't use functions that have changed between revisions and their upgrades go very smoothly.

    I wouldn't go with a nightly build, if that's what you're planning. Pick either 5.2 or 5.1.6 and install the normal, stable distribution versions of those... unless you're in to compiling your own, in which case you probably don't need my help :p
     
    Ladadadada, Oct 16, 2007 IP
  18. qualityhostings

    qualityhostings Well-Known Member

    Messages:
    1,764
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    105
    #18

    Yes, I had lot of problems ( corrected about 30 - 50 problems on that same day , (was a bug headache) )

    But now its fine. The cPanel tech helped me a lot.

    The main one was "500 internal server error"

    When I updated the cPanel to CURRENT build, some of my domain's file permission changed ! So it caused internal server error msg on some sites.

    I had changed all by logging into ssh and chmod 755 to folders and 644 to php files.

    2 days I worked hard for all ...


    Well, My opinion is to go with the STABLE build.

    But I felt some change in performance of Apache(better speed) after updating to current..

    This is my version now

    WHM 11.11.0 cPanel 11.15.0-C17483
    CENTOS Enterprise 4.5 i686 on standard - WHM X v3.1.0


    I am using PHP 5.2.3 , Its working great.. Had some problem on that day. But all solved within 2 days and now I am relaxing... The server is now working great

    See the phpinfo here http://www.suntexhosting.com/php.php


    SERVER_SIGNATURE Apache/2.0.61 (Unix) mod_ssl/2.0.61 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_jk/1.2.25 FrontPage/5.0.2.2635 mod_bwlimited/1.4 PHP/5.2.3 Server at www.suntexhosting.com Port 80
     
    qualityhostings, Oct 16, 2007 IP