Wednesday, February 27, 2008

Installing Joomla with IIS and MySql

I've been in a thread (http://forum.joomla.org/viewtopic.php?f=429&t=261531&sid=c25e81bdf98f38295af5fb76d0577fb0&p=1218870#p1218870) 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
<?php
phpinfo();
?>
<h2>Loaded Extensions</h2>
<pre>
<?php
print_r(get_loaded_extensions());
?>
</pre>

  • 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
extension=php_mysql.dll
; MySQLi extension
extension=php_mysqli.dll

  • 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
upload_tmp_dir=WHATEVER
session.save_path=WHATEVER
  • Make a temp directory somewhere like c:\phptemp and change those two lines
upload_tmp_dir="c:\phptemp"
session.save_path="c:\phptemp"
  • 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.

Dan
www.DVDs4theSAT.com
Top-quality A-Z SAT Prep on video

No comments: