server 2008 iis7 mysql php setup
TRANSCRIPT
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 1/18
Server 2008, IIS7 MySQL & PHP setup
by Paul Stewart - Friday, 15 May 2009, 09:22 PM
Hello everyone,
I've got my self all confused with the vast amount of conflicting advice on the net with regards to the
proper installation of Moodle on a server 2008 environment. Its server 2008 32 bit ed running as a
webserver with IIS7 and FastCGi installed.
I have used the non-thread safe build of PHP and will use MySQL too. At first i used SQL server 2005 but
found out this was no good.
I set up php and run php -i in command prompt and it floods with text so i assume its working, however
if i create a php file with the php info and place it in the wwwroot folder, i get a internal 500 error.
My installation of moodle is in C:\inetpub\wwwroot
I have set up a site in IIS 7 and pointed it to this location.
I set up MySQL via this site and successfully created the moodle database with the user being
moodleuser.
I just wanted to know if i'm doing things right of should i just go back and start again using server 2003
and IIS6?
thanks
Paul
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup
by Keshwar White - Sunday, 17 May 2009, 10:22 AM
Hi Paul,
You can follow my instructions.
First let me know, Are you willing to start from scratch?
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup
by Paul Stewart - Sunday, 17 May 2009, 05:11 PM
Yes i'm quite willing to start from scratch. On Monday morning i'll be re-installing server 2008 just so i
know that its a clean slate.
thanks for your reply
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 2/18
Re: Server 2008, IIS7 MySQL & PHP setup
by Keshwar White - Sunday, 17 May 2009, 08:47 PM
Paul, you really don't need to go back that far but if you do, do not install IIS7 from server roles.
If you do not want to reinstall Server 2008, you can do this:
1.
Point your "default web site" back to /inetpub/wwwroot/2. The run "start /w pkgmgr.exe /uu:IIS-WebServerRole;WAS-WindowsActivationService" from the
elevated command prompt (start->right click on command prompt -> run as administrator)
3. Restart the computer
4. Uninstall MySQL if installed
5. Remove/delete PHP directory that you installed
6. You should be clean.
I will walk you through a rock solid IIS7/MySQL/Server2008 setup that will run any PHP App you want
(moodle, joomla, etc).
-Keshwar
Show parent | Reply
http://moodle.org/user/view.php?id=583516&course=5
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup
by Paul Stewart - Monday, 18 May 2009, 02:54 PM
Came in first thing to do this Keshwar. Its all done as per instruction
Thanks for your help
Paul
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Keshwar White - Monday, 18 May 2009, 09:22 PM
Ok let's get started:
Download the following to your desktop (do not Install):
Web platform 2.0
Xamp for Windows
MySQL Essentials
After you finish downloading these, Install the web platform 2.0 Installer with these options (Select web
platform tab on the left):
1. Web Server (Click Customize)
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 3/18
Common HTTP Features
Static Content
Default Document
Directory Browse
HTTP Errors
HTTP Redirection
URL Rewrite 1.1
Application Development
ASP.NET
.NET Extensibility
CGI
ISAPI Extensions
ISAPI Filters
Server Side includes
Compatibility
IIS Metabase and IIS 6 Configuration Compatibility
IIS 6 Management Console
Deployment and Publishing
FTP Management Console
FTP Publishing 7.5
Web DAV 7.5
Health and Diagnostics
HTTP Logging
Logging Tools
Request Monitor
Management (Choose All Features)
Media (Optional)
Performance (Choose All Features)
Security
Request Filtering
WAS (Choose All Features)
Frameworks and Runtimes (Click Customize)
.NET Framework
.NET Framework 3.5 SP1
PHP
PHP 5.2.8-2
Now Click Install. Your computer will need to be restarted so check back with me when installation is
complete. Let me know the if installation was successful ( To Check type localhost, into your web
browser and tell me what you get)Show parent | Reply
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 4/18
http://moodle.org/user/view.php?id=583516&course=5
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Paul Stewart - Monday, 18 May 2009, 09:56 PM
Hi Keshwar,
I installed Webplatform like you said and restarted. I look to local host but just get the 'Page cannot be
displayed' Is this supposed to happen?
thanks for your help on this,
Paul
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5 Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Keshwar White - Monday, 18 May 2009, 10:17 PM
Two things:
Open IIS Manager and make sure that your sites are running
and
Have you ever altered your host file?
Show parent | Reply
http://moodle.org/user/view.php?id=583516&course=5
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Paul Stewart - Monday, 18 May 2009, 10:20 PM
in the original install some features were missing, so i took away the WEB server role and reinstalled the
WPI. I have altered the host file before by commenting out the ::1 line.
Show parent | Reply
http://moodle.org/user/view.php?id=583516&course=5
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Paul Stewart - Monday, 18 May 2009, 10:27 PM
Sorry Keshwar i'm being a total nub here i think.
I cant even get my test.php file to show. Its in inetpup\wwwroot with this code in the file
<?php phpinfo();?>
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 5/18
Re-installed the WPI exactly how you desribed, the IIS6 compatability mode was missing from the last
attempt.
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Keshwar White - Monday, 18 May 2009, 10:36 PM
make sure your host file slooks like this:
127.0.0.1 localhost
::1 localhost
If you have a public address for moodle i.e "learn.example.com"
127.0.0.1 localhost learn.example.com
::1 localhost
also in IIS Manager a make sure bindings on your Default Web Site is set to "All Unassigned"
Show parent | Reply
http://moodle.org/user/view.php?id=583516&course=5
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Paul Stewart - Monday, 18 May 2009, 10:43 PM
My host file was sorted and my bindings are set to All unasigned.
I have the Moodle folder in the wwwroot, and pointed the default document to index.php. Now when i
look to localhost i get this http error 404.3
'The page you are requesting cannot be served because of the extension configuration. If the page is a
script, add a handler. If the file should be downloaded, add a MIME map.'
Should i have installed the MySQL essentials and xampp? i havent yet but as you can tell i'm the moodle
virgin
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 6/18
by Keshwar White - Monday, 18 May 2009, 10:47 PM
take the moodle or anything related to it out of the wwwroot
we will get to that later
Show parent | Reply
http://moodle.org/user/view.php?id=583516&course=5
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Paul Stewart - Monday, 18 May 2009, 10:50 PM
oops sorry thats that out of there.
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Keshwar White - Monday, 18 May 2009, 11:00 PM
Now We will install XAMPP, run the installer
OK to the vista notice
intsall to the C:\xampp\ folder
SERVICE SECTION (important!!)
All boxes unchecked!!!
Show parent | Reply
http://moodle.org/user/view.php?id=583516&course=5
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Paul Stewart - Monday, 18 May 2009, 11:05 PM
Thats done to the letter and it installed successfully
i have a Xampp control panel on the desktop
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 7/18
by Keshwar White - Monday, 18 May 2009, 11:53 PM
Next lets install MySQL, although it is best practice to install this on a separate machine, it would not be
a problem or cause you any harm to put it on the same server. (If you don't have another server and
would like to host it separately , I can host unlimited databases for you for only $9.95 per month)
This installation is tricky on Windows Server 2008, so please follow closely. It seems like no one but me
of course can install MySQL on Windows Server 2008
without errors.
Run the installer
Select Custom
click on "MySQL Sever Datafiles" then click "Change.."
Change folder name to: C:\MySQL\MySQL Server 5.1\
Click next until... Wizard complete
Configure the MySQL Server now (CHECKED)
Click finish
MySQL Server Instance Config
Detailed Configuration
Server Machine
Multifunctional Database
Click next to..
Inline Transacftion Processing (OLTP)
Check the "add firewall exception for this port"
Best Support for Multilingualism
Change service name to MySQL51
Uncheck "Modify Security Settings" Important
Execute
Now click start -> All programs -> MySQL -> MySQL Server 5.1 -> MySQL Server intance Config Wizard:
Reconfigure Instance
MySQL Server Instance Config
Detailed Configuration
Server Machine
Multifunctional Database
Click next to..
Inline Transacftion Processing (OLTP)
DO NOT Check the "add firewall exception for this port"
Best Support for Multilingualism
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 8/18
Change service name to MySQL51
Check "Modify Security Settings" Important
Current password blank
Enter new password
confirm
check enable root access
Execute
Show parent | Reply
http://moodle.org/user/view.php?id=583516&course=5
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Paul Stewart - Tuesday, 19 May 2009, 02:54 PM
Hi Keshwar,
Thanks for that, its all done. You must have replied after i left last night, sorry about the delay.
Paul
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1by Keshwar White - Wednesday, 20 May 2009, 02:52 AM
Good, Next create a folder "c:\WebApps"
Then inside that folder you are going to create another folder "Moodle1" you can now extract Moodle
zip file into the c:\WebApps\Moodle1\
Show parent | Reply
http://moodle.org/user/view.php?id=583516&course=5
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Paul Stewart - Wednesday, 20 May 2009, 04:43 AM
Is there a couple of more steps after this? Its just so i can work on it for most of the day. I appreciate the
time you have spent on this Keshwar .
I think before i set it up you should know that this moodle site is for a Private school. I am the IT support
technician for the school but my opensource knowledge is minimal.
i would like it to be linked into our current website in some way http://www.theglasgowacademy.org.uk
and I know that some ISA server configuration will be needed however i think i'll be fine once i get the
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 9/18
finer points of just setting it up.Also i wanted to set it up so that our users can use their Windows
domain logins. Thats the only way my boss wants it set up. Our site is on its own webserver, however
the moodle set up is running on a test server but only a Dell Optiplex 745 PC running server 2008.
If i set it up successfully we will buy in a dedicated server for moodle.
Like i said i really appreciate the help with this
Paul
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Keshwar White - Wednesday, 20 May 2009, 05:45 AM
Yes there are a few more steps, do you have skype? I can help you faster that way, but I will still post the
instructions here on moodle for everyone else. ISA would not be a problem. Are you in the UK?
Show parent | Reply
http://moodle.org/user/view.php?id=583516&course=5http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Paul Stewart - Wednesday, 20 May 2009, 02:53 PM
Time really isn't an issue Keshwar, but yes i am in the UK in Glasgow, Scotland.
I don't mind following the steps - I couldn't commit to Skype contact due to the nature of the job, they
expect me to just drop everything when theres a problem.
I've created these folders..
Show parent | Reply
http://moodle.org/user/view.php?id=583516&course=5
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Paul Stewart - Wednesday, 20 May 2009, 11:16 PM
Keshwar,
you'll be pleased to know that i re-installed Server 2008 and followed the steps again. I know get theIIS.htm showing when i look at localhost.
It was obvious my tinkering before had done something to the setup.
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 10/18
Ta
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Keshwar White - Thursday, 21 May 2009, 02:01 AM
So you created all the folders?
Show parent | Reply
http://moodle.org/user/view.php?id=583516&course=5
http://moodle.org/user/view.php?id=583516&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1by Paul Stewart - Thursday, 21 May 2009, 04:21 AM
yes i created all the folders and unzipped the moodle 1.9.4 build to the moodle1 folder.
one thing...the moodle1 folder now contains a Server folder and a startmoodle and stopmoodle file.
Shouldnt it not just be the moodle directory thats in the folder?
Show parent | Reply
http://moodle.org/user/view.php?id=754092&course=5
http://moodle.org/user/view.php?id=754092&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 1
by Stefano Posti - Friday, 22 May 2009, 04:02 PM
Hello Keshwar,
I'm following close your instructions because I have has the same problem that Paul had... what should
we do next after creating the Webapps folder?
Many thanks, your instructions are the only one really working until now!
MySQL is correctly installed on my Win2008 32bit Server, and I already had FastCGI running on IIS7...
though, Moodle install.php won't start for some ackward reason ...
Now I'm following your instructions, I really need Moodle running and I wouldn't like to use Apache...
Stefano
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Keshwar White - Saturday, 23 May 2009, 03:03 PM
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 11/18
http://moodle.org/pluginfile.php/552/mod_forum/attachment/543928/php.ini
http://moodle.org/pluginfile.php/552/mod_forum/attachment/543928/php.iniphp.ini OK LET'S Continue.
Now we are going to configure PHP on Windows Server 2008 the right way. If you were following my
directions to this point you should have 2 PHP Installations.
1. c:\program files\PHP (B.S.)
2. c:\xampp\php (Real)
I want you to open IIS7 Manager, then click on your server name than follow:
1. Find "Handler Mappings" icon and then double click it
2. Find "PHP_via_FastCGI" then double click it
3. Under Executable (Optional): change to c:\xampp\php\php-cgi.exe then click OK
4. The next dialog that pops up click "Yes"
5. Click on your server name again in the left pane to bring up all the icons
6. Find "FastCGI Settings" and double click
7. You should see two lines
1. c:\program files\PHP\php-cgi.exe
2. c:\xampp\php\php-cgi.exe
8. Double click the 2nd (c:\xampp\php\php-cgi.exe )
9. Click the word (collection) then click the little grey button to the right:
1. Click add on the left, then on the right change the word "Name" on the right to
PHP_FCGI_MAX_REQUESTS the value to 10000
2. Click add on the left again, then on the right change the word name "Name" on the right
to PHPRC and the value to c:\xampp\php\
3. Click OK
10. Change "InstanceMaxRequests" to 10000
11. Close your IIS7 Manager
Next we need to edit the php.ini file. Well, I guess you don't need to edit becuase I attached it. Just
replace the one in c:\xampp\php\
Show parent | Reply
http://moodle.org/user/view.php?id=877240&course=5
http://moodle.org/user/view.php?id=877240&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Hobie Baker - Monday, 25 May 2009, 03:17 AM
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 12/18
Hi, I've been following this install and so far all is well. Will you continue soon? I need help with the rest.
Thanks, Hobie
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Keshwar White - Monday, 25 May 2009, 09:36 AM
Hi, I will continue the instructions over @ gyreconsulting.com
This way I can respond, while I do my job. just click here
subscribe for the updates.
Show parent | Reply
http://moodle.org/user/view.php?id=1092395&course=5
http://moodle.org/user/view.php?id=1092395&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Simon Manning - Thursday, 4 March 2010, 08:56 PM
Hi,
I've been following the installation steps, posted by Keshwar, but it seems to have stopped halfway
through. Does anyone know where i can find the remaining steps.
I've clicked on the link posted by Keshwar and i can't find anything
Show parent | Reply
http://moodle.org/user/view.php?id=1129511&course=5
http://moodle.org/user/view.php?id=1129511&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by curt danforth - Wednesday, 28 April 2010, 01:28 AM
http://www.gyreconsulting.com/Windows-Server-2008R2/2-How-to-Install-IIS7-and-PHP-on-Windows-
Server-2008
This is the link that looks most useful.
I had IIS7 setup with PHP and installed MySql.
Like this thread PHP was working fine but could not connect to the mysql database. My error was that
the Mysql server is not responding.
I downloaded the Microsoft Web Platform Installer 2.0 and followed the notes on link above to
complete an install. The phpMyAdmin setup on my IIS server is now connecting correctly to MySQL. So
now will complete Moodle install.
Show parent | Reply
http://moodle.org/user/view.php?id=21591&course=5
http://moodle.org/user/view.php?id=21591&course=5
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 13/18
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Dan Marsden - Wednesday, 28 April 2010, 07:26 AM
http://moodle.org/user/index.php?id=5&group=172
http://moodle.org/user/index.php?id=5&group=172http://moodle.org/user/index.php?id=5&group=17
9
http://moodle.org/user/index.php?id=5&group=179http://moodle.org/user/index.php?id=5&group=1
http://moodle.org/user/index.php?id=5&group=1http://moodle.org/user/index.php?id=5&group=173
http://moodle.org/user/index.php?id=5&group=173
you can go one step better than the above link and use the installer here:
http://www.microsoft.com/web/gallery/Moodle.aspx
which uses the Web platform installer and also installs Moodle as well as IIS/PHP etc..
Show parent | Reply
http://moodle.org/user/view.php?id=396446&course=5
http://moodle.org/user/view.php?id=396446&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Luis de Vasconcelos - Monday, 3 May 2010, 11:48 PM
http://moodle.org/user/index.php?id=5&group=1
http://moodle.org/user/index.php?id=5&group=1
Dan, does that Microsoft installer create a secure Moodle website that's suitable for production?
Show parent | Reply
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 14/18
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Keshwar White - Tuesday, 13 July 2010, 05:57 AM
Installing Moodle via Microsoft Installer on the root of your site is not suitable for production.Show parent | Reply
http://moodle.org/user/view.php?id=21591&course=5
http://moodle.org/user/view.php?id=21591&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Dan Marsden - Tuesday, 13 July 2010, 07:11 AM
http://moodle.org/user/index.php?id=5&group=172
http://moodle.org/user/index.php?id=5&group=172http://moodle.org/user/index.php?id=5&group=17
9
http://moodle.org/user/index.php?id=5&group=179http://moodle.org/user/index.php?id=5&group=1
http://moodle.org/user/index.php?id=5&group=1http://moodle.org/user/index.php?id=5&group=173
http://moodle.org/user/index.php?id=5&group=173
I'm not what Keshwar is basing his information on, but IMO it gets very close.
Couple of things that need to change after installation
1: $CFG->wwwroot - needs to be an actual url instead of using the calculated method guessing the url
from server headers.
2. Ideally $CFG->dataroot should be moved outside the webroot - the WPI doesn't allow you to
manipulate directories outside the webroot - it does use a web.config file to "protect" the files from
being accessible, but it's not really great practice.
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 15/18
The old version of the installer (currently the public one at the moment) doesn't force you to use a nice
secure DB password and doesn't set up the password salt (the new one which I hope MS will review at
some point in the next few weeks) does.
Keshwar mentions "on the root of your site" - the WPI installer places moodle in a sub-directory on the
website that you select (if only one is installed it just uses the "default" website which should be fine)
Keshwar - have you used/seen the WPI installer? - could you please elaborate on what you mean by not
suitable for production and why?
Show parent | Reply
http://moodle.org/user/view.php?id=503149&course=5
http://moodle.org/user/view.php?id=503149&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Joshua Westerway - Sunday, 15 August 2010, 07:27 PM
Dan,
I have just installed moodle via the WPI, all seems well (PHP works fine, phpmyadmin works fine),
except during moodle install when the installer script tries to use C:\inetpub\moodledata as the files
path it is not allowed to do so, due to the permissions applied to the web server.
How can we modify the security settings to allow moodle to use a datadir outside the wwwroot folder?
as normally accepted on other installs.
Cheers,
Josh
Show parent | Reply
http://moodle.org/user/view.php?id=21591&course=5
http://moodle.org/user/view.php?id=21591&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Dan Marsden - Tuesday, 24 August 2010, 07:11 AM
http://moodle.org/user/index.php?id=5&group=172
http://moodle.org/user/index.php?id=5&group=172http://moodle.org/user/index.php?id=5&group=17
9http://moodle.org/user/index.php?id=5&group=179http://moodle.org/user/index.php?id=5&group=1
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 16/18
http://moodle.org/user/index.php?id=5&group=1http://moodle.org/user/index.php?id=5&group=173
http://moodle.org/user/index.php?id=5&group=173
Hi Joshua, Unfortunately the MS WPI installer doesn't allow us to control modify any files outside the
webroot I have included a web.config file which will protect the datadir from direct access but it's still
good practice to move this outside the webroot (esp for production installs)
After the installation is complete you will need to perform this step manually by moving the directorysomewhere else, assigning appropriate permissions and updating the config.php with the detail.
Show parent | Reply
http://moodle.org/user/view.php?id=503149&course=5
http://moodle.org/user/view.php?id=503149&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Joshua Westerway - Friday, 27 August 2010, 09:52 AM
Dan, OK so manually move the moodledata folder then change config.php to suit the new path, but
doesnt the server still disallow file actions in the new data directory path as it is outside the webroot?
Show parent | Reply
http://moodle.org/user/view.php?id=21591&course=5
http://moodle.org/user/view.php?id=21591&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Dan Marsden - Monday, 30 August 2010, 06:05 AM
http://moodle.org/user/index.php?id=5&group=172
http://moodle.org/user/index.php?id=5&group=172http://moodle.org/user/index.php?id=5&group=17
9
http://moodle.org/user/index.php?id=5&group=179http://moodle.org/user/index.php?id=5&group=1
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 17/18
http://moodle.org/user/index.php?id=5&group=1http://moodle.org/user/index.php?id=5&group=173
http://moodle.org/user/index.php?id=5&group=173
you'll need to set up file permissions as per usual to allow your web user to write to that directory - just
creating a directory on your server and pointing Moodle at it won't work.
Check out some of the full Windows install instructions for how to create a moodledata directory and
give your web user access to write to it.Show parent | Reply
http://moodle.org/user/view.php?id=1052927&course=5
http://moodle.org/user/view.php?id=1052927&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Terrance Bennett - Tuesday, 24 August 2010, 02:59 AM
I just ran the installer from the link posted above http://www.microsoft.com/web/gallery/Moodle.aspx
This works great and the only configuration needed was in IIS7, point the "default web site" to themoodle directory, added the host header and away it goes... Up and running in less than 30min.
The installer will install
FastCGI, Web Deployment Tool, MySQL, PHP, Windows Cache Ext for PHP and MySQL Windows
Essential. See attachment
Thanks.
Show parent | Reply
http://moodle.org/user/view.php?id=1209716&course=5
http://moodle.org/user/view.php?id=1209716&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by a k - Saturday, 4 September 2010, 07:57 PM
Hi, I needed help with Installation of moodle.
I have installed apache 2.2.14,php5.2.13 &mysql 5.1.46 on windows 2003 server. when i am calling
install.php it give an error "The page cannot be displayed". Can u help???
8/3/2019 Server 2008 IIS7 MySQL PHP Setup
http://slidepdf.com/reader/full/server-2008-iis7-mysql-php-setup 18/18
Show parent | Reply
http://moodle.org/user/view.php?id=217019&course=5
http://moodle.org/user/view.php?id=217019&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Chris Nelson - Wednesday, 23 March 2011, 11:19 PM
Can the present (web platform Moodle version 1.9.x be upgraded to version 2.x?
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup Part 2
by Keshwar White - Saturday, 7 May 2011, 03:03 AM
yes
Show parent | Reply
http://moodle.org/user/view.php?id=874037&course=5
http://moodle.org/user/view.php?id=874037&course=5
Re: Server 2008, IIS7 MySQL & PHP setup
by Keshwar White - Saturday, 7 May 2011, 04:20 AM
Updated Guide:
http://keshwarsblog.com/2011/how-to-install-moodle-2-0-on-windows-server-2008r2-with-mysql/
Show parent | Reply
http://moodle.org/user/view.php?id=1164143&course=5
http://moodle.org/user/view.php?id=1164143&course=5
Re: Server 2008, IIS7 MySQL & PHP setup
by Jose Garcia - Saturday, 7 May 2011, 04:50 AM
Give me.. your email, im going to send you my php files .. im running ws2008rs, SQL SERVER r2 2008 and
php 5.14 all this are for moodle 2.0