I have installed Apache 2.2 on my Mac OS X 10.4 machine, from source. Now, I want to download/add/install/enable modules. For example, I'd like libphp5, modrewrite, etc. To install Apache DS on Mac OS X, simply open the downloaded DMG file and then the 'Apache Directory Server Installer.pkg' in it. From there, you will be guided to install Apache DS on your system. Starting and stopping the server¶ On Mac OS X, Apache DS is installed as a launchd service and is loaded at startup time (and upon successful.
- Apache For Mac Os X
- Install Mac Os X Sierra
- Install Apache For Mac Os X 10 12
- Download Apache For Mac
- Mac Os X Install Dvd
Jump to: navigation, search
- 4Making “Sites” work (Optional)
- 5Making php, etc. work
- Sep 28, 2017 Get your Local Web Development Environment Up & Running on macOS High Sierra 10.13. With Apples’ new macOS High Sierra 10.13 available for download, here is how to get the AMP stack up and running on the new macOS. This tutorial will go through the process on getting Apache, MySQL, PHP (or otherwise known as the ‘AMP’ stack) and phpMyAdmin running on the new mac OS High Sierra.
- How to install and configure Apache, MySQL and PHP on Mac OS X 10.7 Lion and OS X 10.6 Snow Leopard. OSX 10.8 Mountain Lion Version OSX 10.9 Mavericks Version Apache and PHP already come preloaded in OS X 10.7 Lion and 10.6 Snow Leopard, the versions on 10.7 Lion are PHP 5.3.6 and Apache 2.2.20, these 2 pieces of Open Source software are part of the “AMP” stack with MySQL the missing third.
Yosemite and above native OSX install
This page is for people who want to do an OSX install without using someone else's packaging. There are some warning to bear in mind. A native install of Moodle on an OSX machine is not really suitable as an internet linked live server but it is great for testing and development. The OS X install described here is essentially the same as a Linux install and so the advice there can be applied here. Also Apple does not cooperate with your changes when upgrading the OS.
Most of this work is via the cli which you can use in the ‘terminal’ application. To edit files, use nano or vi (vim). Mostly you need to be root to edit the files so precede your editor name by sudo. e.g sudo nano /etc/apache2/httpd.conf or sudo vi /etc/apache2/httpd.conf
If you are doing any kind of development on an mac then consider an installation of XCode (you can get this from the app store) which will install all sorts of odds and ends that you are likely to need now and then such as libraries for php etc.
Apache on Mac
Since Mac OS X Yosemite Apache and PHP come packaged with the OS so you only need to enable PHP and install MySQL
Starting Apache
Since Apache is already installed you need to start it and to confirm it works. Start apache via command
If you want apache to start on boot then issue this command
Test apache by going to http://localhost in a browser. If you see a message saying 'It Works!!' , then apache is working correctly.
In case of issues to verify that apache is running search for httpd process (with approximate output)
To check port 80 with netstat (with approximate output)
Other apache related commands
Mac users are used to having a /Sites folder which publishes a local-users web site on http://<host url address>/~<UserName>
edit <username>.conf
with these contents. Don’t forget to change <username> for your username.
Apache configuration for /Sites folder
If you want to set up /Sites folder, which is one of possible setups, and there is no /Sites folder on your mac, create one. Also create folders for moodle and moodledata inside /Sites folder.
Configure Apache to point to /Sites directory. Backup your httpd.conf, just in case, then open httpd.conf to make some changes
Change DocumentRoot to point to /Sites folder and uncomment httpd-vhosts.conf
Update httpd-vhosts.conf
Pick up a url you would use locally for moodle site, for example 'mymoodle.dev.com', and add to the bottom of the httpd-vhosts.conf file
Update /etc/hosts
Add a url for a local moodle site, the same as in httpd-vhosts.conf, to the bottom of /etc/hosts
Restart Apache
After moodle set up you should be able to point a browser to
in /etc/apache2/httpd.conf uncomment all the following lines
Since Moodle 3.3 minimum PHP version is 7.0.0 with PHP 7.1.x and 7.2.x also supported. If you have PHP 7 then php module would be
Restart apache for the changes to take effect
Apache user permissions on /moodledata folder
The default Apache user is '_www' and so your /moodledata folder needs write permissions for the _www user.
In the finder, choose the folder and using the get info dialogue to give _www write access to the folder.
Test php
Make a file in the root of your webfolder ( The default DocumentRoot for Mac OS X Yosemite is /Library/WebServer/Documents ) called phpinfo.php and add this content.
Then, visit the site by url
This should give you the well known phpinfo page. The most likely error will be a page just showing the text <?php phpinfo(); ?> which means php is not working.
php modules
To DoTemplate:update
Download your version of Mysql from the Mysql site http://dev.mysql.com/downloads/mysql/ and install it! The dmg install will allow you to start or stop the MySql server from your system preferences. If you tick the option to start on boot then it may not actually start on boot. This is an on-off issue with OSX.
If you are not running OSX Server then you will probably need to install Mysql again if Apple issues an upgrade of Yosemite.
dmg installed MySQL is in
After MySQL dmg installation if there is an issue with the MySQL PATH when mysql commands are run, add PATH to .bash_profile (if you are using bash)
Add path to mysql at the end of .bash_profile file you opened to edit
Reload .bash_profile
Start/stop/restart mysql
Connect to MySQL command line
Create moodle MySQL user, database and grant privileges
This is an easier alternative to installation of required packages. Homebrew is a package management tool like apt and yum which was created for OSX. Everything ends up in /usr/local or similar and when Apple does an upgrade, they shouldn't muck it up.The homebrew site is at http://brew.sh
Start with the command
Homebrew will download and install Command Line Tools for Xcode as part of the installation process.
Packages installed with Homebrew are in
PostgreSQL is one of the five databases supported by Moodle. You can use Homebrew to install PostgreSQL on OSX
Start/stop PostgreSQL manually
Start/stop PostgreSQL using brew
If there is an error on brew start/stop try running
Create a new database cluster (collection of databases), postgres user, start postgresql. By default user postgres will not have any login password.
Create a moodle user, database
PostgreSQL uses a client authentication file called 'pg_hba.conf' in PostgreSQL's 'data' folder. In this file, you'll find a list of which users are allowed to connect to which databases, the IP addresses they are allowed to connect from, and the authentication methods they can use to connect.
To grant permission for Moodle to connect to a PostgreSQL server on the same machine, add the following line, changing the DATABASE and USER columns to your actual database name and the username you set up above. The METHOD field should say 'password' - don't put your actual password here.
Download Moodle .tgz file of the version needed, for example https://download.moodle.org/download.php/stable36/moodle-latest-36.tgz, move it into /Sites folder
Point browser to url you have set up locally, for example, http://mymoodle.dev.com/. If there are errors in the browser
you might need to change the owner on just generated config.php file
Install database. Use Moodle admin password you have set up when running admin/cli/install.php script above.
Best Seller in PC Game Joysticks. Extreme 3D Pro Joystick for Windows. 4.4 out of 5 stars 3,219. 99 $39.99 $39.99. Get it as soon as Wed. 8Bitdo SF30 Pro Wireless Bluetooth Controller Gamepad Dual Classic Joystick for Windows, Mac OS, Android, Linux, Raspberry Pi, Steam, etc, Compatible with Nintendo Switch, with Extra Carrying.
Apr 26, 2017 I am brand new to the Mac OS and one of the programs I would really like to use is X-Plane. My System Report indicates that it recognizes my joystick as connected to a USB port. I downloaded the X-Plane demo and the settings menu within the simulator software does not recognize the joystick. I know that X-Plane was originally developed on a Mac.
If you are using PHP path /usr/bin/php when running above scripts and there is an error about PHP Intl extension php_intl try using /usr/local/bin/php which might be PHP installed with brew. To see what PHP you are using run
Retrieved from 'https://docs.moodle.org/38/en/index.php?title=install_on_OS_X&oldid=132990'
HomeMac OS XHow to Install Apache Tomcat 9 on Mac OS X
Installing Tomcat 9 on Mac OS X El Capitan is actually quite easy.
The Mac OS X installation process is fairly painless and straight forward, but there are a few rough spots along the way. Follow these step by step instructions to get Tomcat up and running on your Mac OS X machine in no time.
Configure Environment Variables
Prerequisite: Java
Download and install the latest Java 8u92 form this link.
The JDK installer package come in an dmg and installs easily on the Mac; and after opening the Terminal app again,
java -version
Now shows something like this:
java version '1.8.0_66'
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
Whatever you do, when opening Terminal and running java -version, you should see something like this, with a version of at least 1.7.x I.e. Tomcat 9.x requires Java 7 or later.
JAVA_HOME
is an important environment variable, not just for Tomcat, and it’s important to get it right.To set the JAVA_HOME variable, open a new Terminal window and use the following command to open the system profile for editing. (You can substitute your favorite text editor. We like Vim.):
vi ~/.profile
Once you’ve opened the profile, add the following lines to set the
JAVA_HOME
and CATALINA_HOME
variables:
export JAVA_HOME=/Library/Java/Home
export CATALINA_HOME=/Path/To/Tomcat/Home
Installing Tomcat
1. Download Tomcat from the official website (tomcat.apache.org), select Tar.gz format under the Core section
Apache For Mac Os X
2. Extract the Tomcat to directory:
/Library
, in order to facilitate the use, rename the folder to 'Tomcat'
3. Open Terminal, modify folder permissions
sudo chmod 755 /Library/Tomcat/bin/*.sh
4. Press the Enter key, then you will be prompted for a password, enter the administrator password. Then continue with the following command to open the tomcat service
sudo sh startup.sh
Install Mac Os X Sierra
5. Open the browser and enter
http://localhost:8080/
, press Enter.
Install Apache For Mac Os X 10 12
If you see the Apache Tomcat, this means Tomcat has successfully run
Download Apache For Mac
That is it! You should now be able to access Apache Tomcat’s welcome page on
http://localhost:8080
. If you wish to make stopping Tomcat 9, use this command:
Mac Os X Install Dvd
sudo sh /Library/Tomcat/bin/shutdown.sh