Go Back   Computer Support Forum - Free IT Hardware & Software Help > Internet > Web Server Management

Web Server Management Discuss all aspects of setting up and running a web hosting server or business.

Closed Thread
 
Thread Tools Display Modes

Wordpress Not Working After Apache Compile
  #1  
Old 08-04-2009, 02:07 PM
Barnaby Barnaby is offline
Junior Member
 
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  
Old 08-04-2009, 03:11 PM
RecT RecT is offline
Super Moderator
 
Join Date: Nov 2007
Posts: 189
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  
Old 08-04-2009, 03:13 PM
Barnaby Barnaby is offline
Junior Member
 
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  
Old 08-04-2009, 03:17 PM
RecT RecT is offline
Super Moderator
 
Join Date: Nov 2007
Posts: 189
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!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT +1. The time now is 12:52 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Computer Forum, Comp Forum, Tech Support Forum, Free CPanel and MiLon Hosting are part of MiLon Technologies.