Tag: not working

Virtual Hosts

Virtual Hosts

Every now and then I come across a stupidly annoying problem with my website and it’s configuration before I can move on. This time it’s virtual hosts. Apache has the ability to allow you to host mobile domain names from the same directory and web server using the virtual hosts configuration.

 

I’m currently at this stage. I own more than one domain name and it’s annoying me.

I’m currently experiencing two problems with the domain

  • Apache not “serving” the index page for the virtual host directory. All it is serving is blank pages.

Initially I thought this was a permission problem. I later identified it and remembered it was the cause of problem#2 which is why I gave up in the first place. For reference, in the httpd.conf file there is a section called Include conf/extra/httpd-vhosts.conf this must be enabled (remove #) otherwise it won’t load the files

  • Apache now serves the home pages and finds them, but ignores the main /www root of the web server and goes straight to the virtual host directory

This is the current problem I’m encountering. Once I work out the virtual hosts configuration issue, I will post an update for future reference if I need to go back to it. Or help someone else out

I did a quick google search and find this post. Free link.

http://blog-rat.blogspot.co.uk/2009/05/apache-ignores-documentroot-in.html

 

I’m currently researching it

Views – 983

Getting awstats to generate reports

Getting awstats to generate reports

I’ve managed to go that one step further with getting awstats to generate reports and finally have it recording information.

The way awstats works is it generates all the file information from a local database, which stores all the records for your website. You have to run the command

perl awstats.pl -config=mysite -update each day so that your files are dragged in from the access_log in your log files directory and added to the database

You can then compile your reports using the -output -buildstaticlinks command

I’ve create a more documented guide for this on my website for people who need to understand the configuration and setup further and are having a little trouble with awstats on their website.

Views – 1846

Broken Theme Layout

Broken Theme Layout

A couple of days ago, I had an issue whereby my wordpress had a broken theme layout. Literally any themes I had applied where broken. It appeared that they lost their configuration and what was happening was, instead of the text being on top of the layout of the file. The text was on top and the layout was underneath the file, so basically I had all of the data but the layout was at the bottom of the page under the copyright information.

The broken theme layout, applied to any theme I had applied. I thought I bodged an update or messed up a PHP file without realising. So tried replacing the main root files after a database backup incase it was this. CSS really isn’t my strong point when it comes to websites. Although it was working fine under the dashboard when “customising” the theme (p.s I’m not American – I write it with an S not a Z)

I created a post on the wordpress forums and was helped out by a forum member. The “styling” of my wordpress was infact not being read. They suggested clearing the cache of wordpress

By default wordpress doesn’t have a cache (had to google this to find out), so it was obviously a plugin I was using causing the issue. I think I had more than one cache manager so I just disabled every plugin in my site (not to mention askimet is a hell of a spam guard).

Once I disabled every plugin on the site, the design was being read again. If that didn’t worked I could have done a hard refresh of firefox/chrome and also deleted my temp files / history etc to make sure. I wanted to find out the plugin causing the problem. It was my W3 Total Cache plugin that wasn’t refreshing my database cache. I’ve left it disabled for the moment. I went through every single setting one at a time and re-enabled, disabled them and couldn’t cause the problems to reoccur. So think it could have been a combination of settings. 

I think the setting causing the issue was the CDN ones, because I specified to use localhost to statically serve the files, and think it may not have been refreshing properly.

Just thought I’d chip in to see if this helps anyone else in the future

Views – 1035