go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Integrate Apache httpd with PHP -- MOODLE (Manual)
 
Subject: Integrate Apache httpd with PHP -- MOODLE (Manual)
Author: Linux
Posted on: 06/03/2017 10:52:28 PM


https://docs.moodle.org/29/en/Manual_install_on_Windows_7_with_Apache_and_MySQL

Step 1: Install Apache

-- Be sure that you have installed the latest C++ Redistributable Visual Studio 2015 : vc_redist_x64.exe
-- Go to: https://www.apachelounge.com/download/
-- Unzip the file into C:\
-- cd C:\Apache24\bin\
-- net stop WAS ==> to stop IIS which may had opened port 80
-- httpd -k install
-- httpd -k start
-- Type http://localhost/ to check how it works.

Step 2: Install PHP

-- Go to: http://php.net/downloads.php
-- Click on "Windows downloads"
-- Click on "Zip" under "VC14 x86 Thread Safe"
-- Extract zip file to C:\PHP\
-- Copy "C:\PHP\php.ini-development" to "C:\PHP\php.ini"
-- Edit the following lines:

memory_limit = 256M
post_max_size = 128M
upload_max_filesize = 128M

-- Edit the following lines:

extension=c:/php/ext/php_curl.dll
extension=c:/php/ext/php_gd2.dll
extension=c:/php/ext/php_intl.dll
extension=c:/php/ext/php_mbstring.dll
extension=c:/php/ext/php_mysqli.dll
extension=c:/php/ext/php_openssl.dll
extension=c:/php/ext/php_soap.dll
extension=c:/php/ext/php_xmlrpc.dll
extension=c:/php/ext/php_soap.dll
extension=c:/php/ext/php_ldap.dll

Step 3: Configure Apache to integrate PHP

-- Open "C:\Apache24\conf\httpd.conf"
-- Append the following lines:

LoadModule php7_module "C:/PHP/php7apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir C:/PHP

-- Edit the following lines:

<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>

-- Restart Apache:

C:\Apache24\bin>httpd -k restart

-- Creating a file called "test.php" under "C:\Apache24\htdocs"
In this file enter the single line...

<?php phpinfo();

-- Check by "http://localhost/test.php"

Step 4: Install MySQL

-- Go to: https://dev.mysql.com/downloads/
-- Take all as default, for exmaple, port number:3306
-- Root Password: at-1
-- User account:
Type: User Admin
ID/PWD: moodle/moodle

Step 5: Install Git

Step 6: Moodle install

-- Go To: http://localhost/moodle
--> http://localhost/moodle/install.php

Select Langurage --> Next --> Check environment --> (if fails) Which requirement(s) is/are missed --> Reload
--> (if succeedes)
Path:
Web address: http://localhost/moodle
Moodle directory: C:\Apache24\htdocs\moodle
Data directory: C:\MoodleData

Database:
Choose among: MySQL, MirialDB, PostgreSQL, ...

Database Settings:
Database host: localhost
Database name: moodle
Database user: root (this user is needed to create database name)
Database password: atreides1
Database port:

License terms --> agree

Server checks:

You must solve all the environmental problems (errors) found above before proceeding to install this Moodle version!

Reload




Replies:


References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.