Wednesday, February 27, 2008

Installing Joomla with IIS and MySql

I've been in a thread ( on the Joomla forums on how to install Joomla on Windows IIS.

Here are the steps:
  • Get your MySql working. Know your username and your password, and the host it's on. Create a database whose name you will also have to know (perhaps "joomla1" if it's your first shot).
  • Install the latest version of PHP on your IIS and make sure you can run a PHP file from IIS.
  • Make an info.php file with the following code
<h2>Loaded Extensions</h2>

  • Put the PHP in a directory where you can see it from a Web browser through IIS and execute it (something like, "http://localhost/whatever/info.php").
  • You will see, at the bottom of the PHP, the numbered list of loaded extensions.
MySql Extensions in PHP
  • If MySql is named in the numbered list, you're done, and something strange has happened and I cannot help you.
  • Otherwise, you'll have to change your php.ini.
  • Where is your php.ini? Is it in your PHP installation? No. That one will never be read by IIS. You must copy that php.ini to your c:\windows (or equivalent) directory.
  • Now you have to download the MySql extensions and put them in c:\windows
  • Then put the following lines in your php.ini
; Directory in which the loadable extensions (modules) reside.
extension_dir = "./"
; MySQL extension
; MySQLi extension

  • Now you have to stop and restart the World Wide Web publishing service.
  • Now check your info.php and see if the MySql extensions are being shown in the numbered list at the bottom of the output. If so, move on, otherwise you have to get your MySql extensions loaded. Follow the last bunch of steps again carefully.
Unzip Joomla and Try The Automatic Installation
  • Unzip Joomla into one of the subdirectories of your IIS
  • Try to execute it (navigate to it) from your browser
Hey My Cookies Don't Work With Joomla
  • That's normal.
  • Find these two lines
  • Make a temp directory somewhere like c:\phptemp and change those two lines
  • Now you have to stop and restart the World Wide Web publishing service.
  • Oh yeah, I almost forgot: you have to add index.php as a document type in IIS for your entire Website. You'll see a list somewhere that includes default.htm and index.html and all those things. Index.php should be one last type in that list.
If you have any problems, put 'em in the comments here and I'll respond even if I don't know the answer.

Top-quality A-Z SAT Prep on video

No comments: