PDA

View Full Version : Wordpress Not Working After Apache Compile



Barnaby
08-04-2009, 03:07 PM
Since recompiling Apache, after suggested to do so (http://www.techsupportforum.co.uk/f25/ipanel-cron-not-working-after-mysql-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?

RecT
08-04-2009, 04:11 PM
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!

Barnaby
08-04-2009, 04:13 PM
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

RecT
08-04-2009, 04:17 PM
Type:



pico /etc/httpd/conf/httpd.conf


Or with whatever text editor you prefer. (I find Pico easiest.)