+ Reply to Thread
Results 1 to 4 of 4

Thread: Wordpress Not Working After Apache Compile

  1. #1
    Join Date
    Jan 2008
    Posts
    20

    Question Wordpress Not Working After Apache Compile

    Since recompiling Apache, after suggested to do so (http://www.techsupportforum.co.uk/f2...-update-t1367/), some of my wordpress sites no longer work.

    I have a domain, xxx.com that provides WPMu hosting. But some sites have actual subdomain.xxx.com accounts that they use - its these that don't work anymore. Whenever you try to go to them, they redirect to xxx.com.

    Any ideas?

  2. #2
    Join Date
    Nov 2007
    Posts
    212

    Default

    Easy enough to rectify:

    When you recompile Apache, (I'm assuming EasyApache was used?) the httpd.conf file is sorted to put all of the domains into alphabetical order.

    In order for subdomains to be used for WPMu, your httpd.conf file will have xxx.com's 'ServerAlias' setting to include '*.xxx.com' as one of the entries.

    If your main domain is bbb.com and your other site is subdomain.bbb.com (for example) then since 'b' comes before 's', bbb.com will be placed near the top. The problem for this is that once bbb.com has been used, the *.bbb.com will overrule the subdomain.bbb.com found lower down.

    In order to fix the problem, you simply need to cut the entire bbb.com entry from your httpd.conf file and paste it to after the last virtual machine entry (or at least after the subdomain.bbb.com entry).

    Let us know how you get on!
    Need to know your IP? Need to find WHOIS data for a website or IP address? Want to know your Google PageRank? Then you need Domain Tools!

  3. #3
    Join Date
    Jan 2008
    Posts
    20

    Default

    Thanks RecT! But where do I find the httpd.conf file?

    I'm using WHM / CPanel and CentOS with Apache 2.2.

    Thanks in advance

  4. #4
    Join Date
    Nov 2007
    Posts
    212

    Default

    Type:

    Code:
    pico /etc/httpd/conf/httpd.conf
    Or with whatever text editor you prefer. (I find Pico easiest.)
    Need to know your IP? Need to find WHOIS data for a website or IP address? Want to know your Google PageRank? Then you need Domain Tools!

+ Reply to Thread

Posting Permissions

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