Posts Tagged ‘Apache’

Redirecting a Domain into a Folder

Wednesday, May 7th, 2008

Some web hosts who allow you to have multiple domains on one account treat one differently from the rest. Your “main” domain uses the top level of the account while all the add-on domains go in folders. This arrangement makes sense for the many who only have one domain on their account since it saves them going dowen an extra level every time they want to access their domain content. For those with multiple domains a few lines of extra code in your .htaccess file (assuming you are on Apache) will move the main domain into a folder just like the add-on domains.

,p>Redirecting a Domain into a Folder

XAMPP and WAMP5 - Looking back

Friday, November 30th, 2007

A few weeks ago I attempted to install XAMPP and when I couldn’t get that to work I tried WAMP5 which didn’t work either.

In both cases the install ran with few problems and it was only when I went to create the databases I needed using phpmyadmin that I struck problems. More recently I did separate installs of Apache, PHP, mySQL, and phpmyadmin. This also had the same problem with phpmyadmin when I got to that stage.

The big difference between my attempts with the two integrated products and the later separate installs is that in the latter case I was able to run tests in between installing each compoment in order to more closely identify why there was a problem. In fact the testing that I did showed that there was no problem whatever with the Apache, PHP, and mySQL installs and that only phpmyadmin had a problem.

In each of the three different attempts I actually reached the same point before striking a problem. The difference (and what enabled me to track down and fix the problem) was that in installing each component separately I had narrowed down where the error could be. With the XAMPP and WAMP5 installs I had no idea whether the reason that phpmyadmin wasn’t working was because of a problem with Apache, PHP, mySQL, or something else. The separate installs proved that it was something else.

At the time I wrote about XAMPP and WAMP5 a few weeks ago I was rather annoyed at being unable to get either install to work. Now that I know that the flaw is actually in phpmyadmin, I can now say that either XAMPP or WAMP5 would be an easier way to install these products all in one go provided that you have your security set such that phpmyadmin will run. After allowing for the problem that I had which stopped any install of those products from working until I fixed it, I can now say that if I had not had the problem with phpmyadmin then the WAMP5 install would have run perfectly with no additional customisation of the configuration files being required. XAMPP makes for a nicer final install than WAMP5 bit did need some minor changes to the php.ini file as it made assumptions about everything being installed to the C: drive (which was not where I was installing it).

I am not going to reinstall XAMPP now that I know why I couldn’t get it to work before but only because I have already installed all of the components of it that I need (some of which are more recent versions than in XAMPP).

Web Server Install

Wednesday, November 14th, 2007

After the adventures that I had a few weeks ago trying to install XAMPP and WAMP5, having to manually edit the config files, and still not being able to get either of them to work, I decided to have another go - this time with separate installs for Apache, PHP, mySQL, and phpMyAdmin.

The individual installs were somewhat more awkward than the all in one install in that in each case manual edits of config files were required but it did make testing each component part much easier so as to allow me to get it all up and running properly (eventually).

(more…)

WAMP5

Thursday, October 25th, 2007

After spending several hours attempting to track down and fix all the errors in the various config files that XAMPP managed to totally stuff up (by inserting \ insead of / and leaving off drive letters), I still kept getting errors all over the place when trying to access web pages I copied there. As for phpMyAdmin, it absolutely refused to allow me to import any databases or run any SQL commands at all.

The next step was to uninstall the Apache and mySQL services from XAMPP and try an install of WAMP5 instead.

WAMP5 installed much easier than XAMPP did since it did not stuff up the config files. That saved me the time I had spent manually rebuilding the config files in XAMPP and got me to the same point with WAMP5 in tem minutes that it had taken over five hours to get to with XAMPP. Unfortunately the install was still corrupted in exactly the same way as the “repaired” XAMPP install was and still refused to allow me to run any SQL.

(more…)