如何在IIS下运行moodle服务器
1个回答
展开全部
如何在IIS下运行moodle服务器
我们都知道:在安装moodle前要把IIS服务给停止掉.
有时候我就在考虑一个问题:如果你的服务器上已经用IIS发布过站点了,
而且现在也在运行之中,为了节省资金我可不可以在这台服务器上
再发布一个moodle课程让外地学生来使用呢??
昨天在moodle的官方网站已经有老外解决了,下面是参考方法:
Installing moodle on IIS
by Phillip Lynch - Tuesday, 13 March 2007, 10:09 AM
These are the instructions I provide for php, mssql & moodle installs running under IIS (on the same server).
PHP
* Extract the php archive to C:\Progam Files\php
* Rename C:\Program Files\php\php.ini-recommended to php.ini
* Add C:\Program Files\php and C:\Program Files\php\ext to the Default Path
* Add Global Environment Variable PHPRC=C:\Program Files\php
* Edit php.ini
* Enable (uncomment) extensions php_mysql, php_gd2, php_mbstring, php_ldap
* Set cgi.force_redirect=0
* Set SMTP=<smtp domain>
* Set smpt_port=25
* Set sendmail_From=<mail user>
* Set date.Timezone=<Country/City>
* Enable PHP in IIS
* Add and Enable php5isapi.dll as a web service extension
* Add php extension mapping (may do this for each web site)
* Restart IIS
MySQL
* Run the installer
* Select lCustomr setup type
* Change the installation directory to C:\Program Files\MySQL\
* Elect to Configure MySQL instance
* Select lDetailed Configurationr
* Select lServer Machiner
* Select lMulti-Functional Databaser
* Set the INNODB table space to D:/MySQL/
* Select Online Transaction Processing
* Enable TCP/IP networking
* Disable Strict Mode
* Select lutf8r Default Character Set
* Select lInstall as a Windows Servicer
* Select lInclude BIN Directory in Windows Pathr
* Set root password <password>
* Set lEnable root access from remote machinesr
* Disable lCreate an Anonymous Accountr
* Edit my.ini
* datadir=D:\MySQL
* key_buffer_size=132M (64Mb per 256Mb free memory)
* default-storage-engine=INNODB
* innodb_buffer_pool_size=300M (30% free memory)
* innodb_file_per_table
* Finalise Setup
* Stop mySQL service
* Copy D:\Program Files\mySQL\data\ to D:\mySQL (and sub directories)
* Restart mySQL
Moodle
* Extract Moodle archive into D:\Web
* Create D:\Web\MoodleData
* Ensure the IIS user has full rights to D:\Web\Moodle and D:\Web\MoodleData
* Create a mySQL database (moodle) and account to access (muser)
o Create Database moodle Character Set utf8 Collate utf8_unicode_ci;
o Grant Select,Insert,Update,Delete,Create,Drop,Index,Alter,Lock Tables on moodle.* to muser@localhost Identified by l<password>r;
* Create web site in IIS
o Set Path to D:\Web\Moodle
o Add Index.php to Default Documents
o Enable php extension mapping (GET,HEAD,POST)
o Enable Script execute permissions
* Launch the web site in the browser and follow the prompts.
I also advise them to test the php and mySQL components separately (and not to proceed until the expected results are obtained), viz.
PHP
* Create Website under IIS
* Create Index.php containing single line <?php phpinfo(); ?>
* Launch browser and access the web site. Confirm that the phpinfo screen is displayed and the enabled extensions are included.
MySQL
* Launch mySQL locally (all is ok if it launches)
我们都知道:在安装moodle前要把IIS服务给停止掉.
有时候我就在考虑一个问题:如果你的服务器上已经用IIS发布过站点了,
而且现在也在运行之中,为了节省资金我可不可以在这台服务器上
再发布一个moodle课程让外地学生来使用呢??
昨天在moodle的官方网站已经有老外解决了,下面是参考方法:
Installing moodle on IIS
by Phillip Lynch - Tuesday, 13 March 2007, 10:09 AM
These are the instructions I provide for php, mssql & moodle installs running under IIS (on the same server).
PHP
* Extract the php archive to C:\Progam Files\php
* Rename C:\Program Files\php\php.ini-recommended to php.ini
* Add C:\Program Files\php and C:\Program Files\php\ext to the Default Path
* Add Global Environment Variable PHPRC=C:\Program Files\php
* Edit php.ini
* Enable (uncomment) extensions php_mysql, php_gd2, php_mbstring, php_ldap
* Set cgi.force_redirect=0
* Set SMTP=<smtp domain>
* Set smpt_port=25
* Set sendmail_From=<mail user>
* Set date.Timezone=<Country/City>
* Enable PHP in IIS
* Add and Enable php5isapi.dll as a web service extension
* Add php extension mapping (may do this for each web site)
* Restart IIS
MySQL
* Run the installer
* Select lCustomr setup type
* Change the installation directory to C:\Program Files\MySQL\
* Elect to Configure MySQL instance
* Select lDetailed Configurationr
* Select lServer Machiner
* Select lMulti-Functional Databaser
* Set the INNODB table space to D:/MySQL/
* Select Online Transaction Processing
* Enable TCP/IP networking
* Disable Strict Mode
* Select lutf8r Default Character Set
* Select lInstall as a Windows Servicer
* Select lInclude BIN Directory in Windows Pathr
* Set root password <password>
* Set lEnable root access from remote machinesr
* Disable lCreate an Anonymous Accountr
* Edit my.ini
* datadir=D:\MySQL
* key_buffer_size=132M (64Mb per 256Mb free memory)
* default-storage-engine=INNODB
* innodb_buffer_pool_size=300M (30% free memory)
* innodb_file_per_table
* Finalise Setup
* Stop mySQL service
* Copy D:\Program Files\mySQL\data\ to D:\mySQL (and sub directories)
* Restart mySQL
Moodle
* Extract Moodle archive into D:\Web
* Create D:\Web\MoodleData
* Ensure the IIS user has full rights to D:\Web\Moodle and D:\Web\MoodleData
* Create a mySQL database (moodle) and account to access (muser)
o Create Database moodle Character Set utf8 Collate utf8_unicode_ci;
o Grant Select,Insert,Update,Delete,Create,Drop,Index,Alter,Lock Tables on moodle.* to muser@localhost Identified by l<password>r;
* Create web site in IIS
o Set Path to D:\Web\Moodle
o Add Index.php to Default Documents
o Enable php extension mapping (GET,HEAD,POST)
o Enable Script execute permissions
* Launch the web site in the browser and follow the prompts.
I also advise them to test the php and mySQL components separately (and not to proceed until the expected results are obtained), viz.
PHP
* Create Website under IIS
* Create Index.php containing single line <?php phpinfo(); ?>
* Launch browser and access the web site. Confirm that the phpinfo screen is displayed and the enabled extensions are included.
MySQL
* Launch mySQL locally (all is ok if it launches)
Jtti
2024-10-10 广告
2024-10-10 广告
Jtti是一家新加坡全球网络基础服务商,为数百万个网站提供支持,提供香港服务器、新加坡服务器等多种全球服务器,自营全球多个数据中心,为用户提供优质的网络资源和服务。
JTTI服务器整体性能是非常不错的,拥有CN2 GIA+BGP优化线路,多...
点击进入详情页
本回答由Jtti提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询