Manual install on Windows 7 with Apache and My. SQLNote: You are currently viewing documentation for Moodle 2. Up- to- date documentation for the latest stable version of Moodle may be available here: Manual install on Windows 7 with Apache and My. SQL. These are instructions for installing on Windows 7 desktop (they may also be useful for a server install with some thought to security) using individual components rather than a one click installer. This is intended only as a testing/evaluation install via 'localhost'. Proper server configuration and security is not considered. NOTE: This assumes that you are comfortable with administering a Windows system and can use the command line. I never use Windows and I managed, but this may not be the quickest or most efficient way to do things. Make sure your Windows installation is in good shape, you clear out all the junk and stuff making it run slower (because installing all this server software certainly isn't going to make it run faster!) and that you have installed any outstanding updates. ANOTHER NOTE: Watch out for the irritating "Do you want this program to get control of your computer" window that comes up at various stages. Sometimes it didn't appear but you do see a shield dimly flashing in the task bar. Click and say yes. If you are planning to install Apache, PHP and MySQL on Windows 10 machine, then you can do so by choosing any of the two options given below. How do I install Apache with PHP support and the MySQL server on Windows without using any ready-to-use packages like WAMPServer or XAMPP? NOTE: Make sure you use 3. Apache with 3. 2 bit PHP, or 6. Apache with 6. 4 bit PHP, if mixed you will get an error when you finish and restart your Apache Server. Step 1: Install My. SQLInstall the My. SQL database server on your PC. We will do this using the 'MSI' one- click installer for Windows. Load Software From Cd DriveSo I did sudo apt-get install apache2 sudo apt-get install apache2-utils And then. How do I install and start apache2. You install Apache using. The reason this happens is because by default users do not have write permissions for this file. All you have to do is right click on httpd.conf, click. Go to http: //dev. My. SQL Installer for Windows'. At the time of writing this was from a very obvious graphic at the top of the screen (which I missed the first time). Run the installation. Click.. Install My. SQL products Accept the license Allow the version check (optional) At 'Choose a Setup Type' accept the "Developer Default" and click Next A number of downloads of required software may be identified. Click Execute and follow onscreen instructions to install them. At 'Installation progress' screen, hit Execute - the My. SQL software will be installed At 'Configuration overview' hit Next to go to the basic configuration screen. Accept all the defaults on the 'My. SQL Server Configuration' and hit Next. On the password screen, supply a password for the 'root' (main administrator) user. Make sure it's one you won't forget. You can also create a 'User' account just for Moodle with more restricted access if you like. This would be good practice on a public server but just using the 'root' user will suffice for testing. On the Service details page, accept the defaults and hit Next and then Next a couple more times for the configuration progress. Click Finish. Job done. My. SQL Workbench will open. Under Server Administration (right hand column, double click 'Local My. SQL5. 6' (or whatever you called it). A box should pop up asking for the root password. Enter the password you supplied The server management screen should appear. You don't have to worry too much about this. It just shows the install is working. Step 2: Install Apache Install the Apache web server on your PC. Go to http: //www. Scroll down the page until you find the download for the 'Apache 2. You need to be careful that the module dll in PHP matches the version of Apache you install. Apache won't load otherwise. Unzip the file into C: \. You should end up with a directory 'Apache. Find Start > All programs > Accessories > Command Prompt... BUT, right click, and select 'Run as administrator'. Enter the following commands cd \Apache. Don't worry about it. Don't close this window, you will need it again in a minute. To test it worked type 'http: //localhost' into your browser. You should get a screen up to the effect that Apache is installed and working. Step 3: Install PHP Now install the PHP scripting language on your PC. Go to http: //www. In the current stable release section click on link for Windows 5. Scroll down to the newest 'Zip' for VC1. Thread Safe (non thread safe doesn't have the Apache dll- the VC version may be different, and you may need x. PHP (again, the newest versions of PHP didn't have this but it shouldn't matter) and download. Don't* be tempted to use the Microsoft Installer version; it won't work. Open the zip file and extract to C: \PHP\ In a console window, type php - v to see if it worked. You may need to set up your PATH. Alos, if you get weired error messages, or no error messages at all, read the bit on the left of http: //windows. C++ Redistributable for Visual Studio")Step 4: Configure Apache and PHPYou now need to edit Apache's httpd. In the file explorer navigate to C: \Apache. Open it in Notepad . At the end of this file (or wherever you like if you want to be more organised) add the following lines. Load. Module php. C: /PHP/php. 5apache. Add. Handler application/x- httpd- php . PHPIni. Dir C: /PHP. The version of the module file matters (2_4 in this case). It MUST match the Apache version installed. In the same file. Search for the line starting Directory. Index. Change it as follows. Directory. Index index. Now, navigate to C: \PHP, and copy php. Edit this file, find the following lines and modify them as follows (all should exist already). M. post_max_size = 1. M. upload_max_filesize = 1. M. You need to specify the extensions required for Moodle. Find the 'Dynamic Extensions' section and change the following lines (uncomment and add the correct path). You may need others - e. LDAP - for specific functions). Back in the 'cmd' window for Apache, you need to restart it to load your changes.. Step 5: Test your install. Navigate to C: \Apache. I had to change a file explorer setting to create . Organise > Folder and search options > View and then untick 'Hide extensions for known file types'. In this file enter the single line.. And then, in your browser, navigate to http: //localhost/test. You should see a screen with masses of information and the PHP logo at the top. Check a few lines down for 'Loaded Configuration File' and make sure it says c: \php\php. That's PHP and Apache all working : ). Step 6: Install Git. We will use the Git version control system for loading and updating the Moodle software. If you really don't want to do this you can just download the latest Moodle zip file and unzip it in c: \Apache. Git makes updates MUCH easier. We need to install Git first.. Go to http: //msysgit. Navigate to 'Downloads' and download/run the latest installer. Accept defaults until you get to 'Adjusting your PATH environment'. Select 'Run Git from the Windows Command Prompt' at this point. Accept remaining defaults and install If you right click on folders in the file explorer you should now see additional Git commands. Step 7: Install Moodle In the file explorer navigate to C: \Apache. Inside the folder, right click and select Git GUI Select 'Clone existing repository' Use the following settings for the clone.. Source location: https: //github. Target directory: C: /Apache. You can also try git: //git. Depending on your firewall situation one may work and the other not. The code is the same.). Click 'Clone'. Depending on your network speed, this may well take a while as the whole Moodle history is being downloaded. You should now have a 'moodle' directory inside 'htdocs. Right click and select 'Git GUI' again - a more complex screen should now appear Click on the 'Branch' command and then 'Checkout..'. Select the version of Moodle you want from the list, probably origin/MOODLE_2. STABLE. Make sure 'Tracking branch' is selected and click Checkout. Create a data directory for Moodle. It can be anywhere you like but I used C: \moodledata. Just create an empty folder Go to http: //localhost/moodle. The language select page should come up and you are away. The installation is not covered in detail here but.. Data directory is C: \moodledata (or whatever you created) Database user is 'root' (unless you created a more restricted user) Database password is whatever you set installing My. How do I install and start apache. Since you don't have Apache installed and functionally working, you don't need the /etc/apache. You also mentioned that you used touch to create an apache. That is very problematic because there are defaults and settings that need to be specified in the conf file, which is missed by creating a blank file. Apache will work when installed from the repository. It will create all the necessary files and actually start the server when installed. Remove what you have, then perform a fresh install from the repository. Remove and purge the current installation: $ sudo apt- get remove - -purge apache. You may have to cycle through those two commands more than once. It'll be clean when the last command's output resembles: apollo@testnode. Reading package lists.. Done. Building dependency tree. Reading state information.. Done. Package 'libapache. Package 'apache. 2' is not installed, so not removed. Now remove faulty configuration files that may not be overwritten in a fresh install. Remove or rename the /etc/apache. Now install Apache. If you have settings from your old settings that you want to incorporate into the new installation, you can copy the difference to the new /etc/apache. Making step- by- step changes might help you to identify where you went wrong the first time. Put your site's configuration files into a Virtual. Host. Also, I recommend that you leave the /etc/apache. Make a new virtual host file to contain your desired configuration. Just copy the 0. 00- default. This way if there is a problem with your configuration file, you can just disable it with a. Apache won't be broken in the meantime. You'll also retain the 0. The key to a virtualhost configuraiton is the Server. Name directive. Accessing your site by that name will call that specific configuration. Starting, Stoping, and checking the Apache. You shouldn't try to start the Apache. The server should be started with a script to set all the needed variables. You can start, stop, and check the status of the Apache.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |