How to setup moodle as web server in server 2008 standard 32-bit

How to setup moodle as web server in server 2008 standard 32-bit

von caulson chua -
Anzahl Antworten: 7

Hi, i have a problem when i followed the installation guide download from bcfnetwork website. They are following below:

step 1

Testing IIS and PHP

i cannot test connect to http://127.0.0.1/testphp.php. after installed the PHP 5.3.3 version and configuration with IIS

 

 

step 2

Configuration MYSQL server

i cannot test configuration MYSQL server after installed the MYSQL server 5.5 version.

 

 

 

 

 

 

Als Antwort auf caulson chua

Re: How to setup moodle as web server in server 2008 standard 32-bit

von Howard Miller -
Nutzerbild von Core developers Nutzerbild von Documentation writers Nutzerbild von Particularly helpful Moodlers Nutzerbild von Peer reviewers Nutzerbild von Plugin developers
You are going to have to give us more of a clue.... what errors are you getting etc etc?
Als Antwort auf caulson chua

Re: How to setup moodle as web server in server 2008 standard 32-bit

von Colin Fraser -

Howard is actually right, here, but I will go through this anyway. Is the IIS running properly? I assume you inserted into the wwwroot folder an index file and got the file to display properly in your browser. the probelm them comes from the rest of it.

A handy hint, DO NOT USE THE MSI installer for PHP. I know the documents say that you should but it does not need the MSI to work. Download the zip file, unzip it to its own folder and then set your path statements accordingly. REBOOT - you cannot rely upon Windows anything to work without rebooting - this lack of dynamism has always plagued Microsoft products. I have actually found using the zip file to be a far better (simpler) process than the MSI, but you still have to reboot - even when the instructions say you do not.

Create a new file and include one line:

<?php   phpinfo();  ?>

save it as phpinfo.php and put it into the wwwroot folder then enter http://127.0.0.1/phpinfo.php and check the response. If you have a page that lists the properties for php then you have made that first step.

Without that, nothing you will try will work - but there is no guarrantee that the database or Moodle will work even so. However, there is a better than even chance you can now get it all working.

If you go to the Beginning Administration FAQ the rest of your questions should be answered there.

 

Als Antwort auf Colin Fraser

Re: How to setup moodle as web server in server 2008 standard 32-bit

von caulson chua -
Als Antwort auf caulson chua

Re: How to setup moodle as web server in server 2008 standard 32-bit

von caulson chua -

HI...thank you for reply...i have a problem after i connect to http://127.0.0.1/phpinfo.php.

Als Antwort auf caulson chua

Re: How to setup moodle as web server in server 2008 standard 32-bit

von Colin Fraser -

have you put the c:/php;c:/php/exe into your path statement? (Obviously that is your installation drive and path.) As you have the browser window and it is not saying it cannot find the server, then we are assuming that iis is installed properly.

Hint: Download and unzip the PHP.zip file from Zend, NOT the .msi file, the zip is actually easier to install. ALSO, look for the PECL Win32 Binaries zip file, that contains some extra dll files that you may not otherwise have in the standard

Installation of PHP is really simple, unzip it to its own folder, and edit the path statement as above. You then need to edit the php.ini file and this is where is can all go pear shaped. For me, the less done the better, so take the php.ini-dist file and rename it to php.ini and then open it for edit. Look for Paths and Directories and edit these values to:

doc_root = "C:\inetpub\wwwroot\"

and

extention_dir = "C:/php/ext"

(or the same as your path statements).

You will also find the line

;cgi.force_redirect = 1

In IIS you MUST delete the semi colon and change the value to 0 so it reads:

cgi.force_redirect = 0

In IIS you may also neet to turn on FastCGI so uncomment the line and reset the value to 1:

fastcgi.impersonate = 1;

If you go to the Beginning Moodle 2.0 Administration, that will tell you what extensions you need to activate and a couple of other handy hints you can edit while in the php.ini file.

You also need to go to the Windows Registry and add

HKEY_LOCAL_MACHINE\SOFTWARE\PHP the key and value: "IniFilePath"="C:\\PHP"

Try the phpinfo.php file again and if it is working you can then move on.  If not then you may need a couple of extra things.

You may need to download and copy the php5servlet.dll and php5activescript.dll into C:\PHP, but you do not not need them in the \ext folder. You do not need to activate these extensions, they are only used by specific programs so you can get away with them just being in the root of the PHP folder.

You may also need to activate the php-cgi.dll and php5asapi.dll files in IIS. Your IIS help file should tell you how to do that and why. Essentially, these dlls offer support for IIS in handling php requests, and I am not sure if they are additional or critical, so please look it up in the help file.

Good luck...lächelnd

Als Antwort auf Colin Fraser

Re: How to setup moodle as web server in server 2008 standard 32-bit

von caulson chua -

HI, Colin Fraser, i still face the same problem, any guidance? thank you.