<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=None_Mamp_install_on_OS_X</id>
	<title>None Mamp install on OS X - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=None_Mamp_install_on_OS_X"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=None_Mamp_install_on_OS_X&amp;action=history"/>
	<updated>2026-05-08T03:21:00Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=None_Mamp_install_on_OS_X&amp;diff=4435&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=None_Mamp_install_on_OS_X&amp;diff=4435&amp;oldid=prev"/>
		<updated>2024-10-18T06:43:08Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:43, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=None_Mamp_install_on_OS_X&amp;diff=4434&amp;oldid=prev</id>
		<title>1&gt;Tim@horizoneducationnetwork.org: clean up, typos fixed: apache → Apache (2), Don’t → Don&#039;t, e.g  → e.g.  (2)</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=None_Mamp_install_on_OS_X&amp;diff=4434&amp;oldid=prev"/>
		<updated>2021-09-22T14:24:50Z</updated>

		<summary type="html">&lt;p&gt;clean up, typos fixed: apache → Apache (2), Don’t → Don&amp;#039;t, e.g  → e.g.  (2)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Yosemite native OSX install==&lt;br /&gt;
&lt;br /&gt;
This page is for people who want to do an OSX install without using someone else&amp;#039;s packaging. &lt;br /&gt;
There are some warning to bear in mind. &lt;br /&gt;
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 keep Apache and php up to date on a standard OS X install. &lt;br /&gt;
&lt;br /&gt;
Most of this work is via the cli which you can use in the ‘terminal’ application. To edit files, use nano or vi. Mostly you need to be root to edit the files so precede your editor name by sudo.&lt;br /&gt;
&lt;br /&gt;
e.g. sudo nano /etc/apache2/httpd.conf or sudo vi /etc/apache2/httpd.conf&lt;br /&gt;
&lt;br /&gt;
If you are doing any kind of development on an mac then consider an installation of  XCode which will install all sorts of odds and ends that you are likely to need now and then such as libraries for php etc.&lt;br /&gt;
&lt;br /&gt;
e.g. sudo nano /etc/apache2/httpd.conf&lt;br /&gt;
&lt;br /&gt;
=Enable Apache.=&lt;br /&gt;
Apache is already installed and you need to start it and test it works. Start Apache via this command.&lt;br /&gt;
&lt;br /&gt;
sudo apachectl start&lt;br /&gt;
&lt;br /&gt;
If you want it to start on boot then issue this command&lt;br /&gt;
&lt;br /&gt;
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist&lt;br /&gt;
&lt;br /&gt;
Test this by going to http://localhost on a browser.&lt;br /&gt;
 at the time of writing 01/09/2015  this test was passed by Safari, Firefox and Chrome.&lt;br /&gt;
&lt;br /&gt;
The default Apache user is &amp;quot;_www&amp;quot; and so your moodledata folder needs write permissions for the _www user.&lt;br /&gt;
&lt;br /&gt;
sudo chown &amp;lt;username&amp;gt;:_www moodledata&lt;br /&gt;
&lt;br /&gt;
In the finder, choose the folder and using the get info dialogue to give _www write access to the folder.&lt;br /&gt;
&lt;br /&gt;
=Making “Sites” work (Optional)=&lt;br /&gt;
&lt;br /&gt;
Mac users are used to having a Sites folder which publishes a local-users web site  on http://&amp;lt;host url address&amp;gt;/~&amp;lt;UserName&amp;gt;&lt;br /&gt;
&lt;br /&gt;
cd /etc/apache2/users&lt;br /&gt;
edit  &amp;lt;username&amp;gt;.conf&lt;br /&gt;
&lt;br /&gt;
with these contents. Don&amp;#039;t forget to change &amp;lt;username&amp;gt; for your username.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Directory &amp;quot;/Users/&amp;lt;username&amp;gt;/Sites/&amp;quot;&amp;gt;&lt;br /&gt;
AllowOverride All&lt;br /&gt;
Options Indexes MultiViews FollowSymLinks&lt;br /&gt;
Require all granted&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Making php etc work=&lt;br /&gt;
&lt;br /&gt;
in /etc/apache2/httpd.conf uncomment all the following lines&lt;br /&gt;
&lt;br /&gt;
LoadModule authz_core_module libexec/apache2/mod_authz_core.so&lt;br /&gt;
LoadModule authz_host_module libexec/apache2/mod_authz_host.so&lt;br /&gt;
LoadModule userdir_module libexec/apache2/mod_userdir.soLoadModule php5_module libexec/apache2/libphp5.so&lt;br /&gt;
Include /private/etc/apache2/extra/httpd-userdir.conf&lt;br /&gt;
&lt;br /&gt;
=Test php.=&lt;br /&gt;
&lt;br /&gt;
Make a file in the root of your webfolder called phpinfo.php and add this content.&lt;br /&gt;
 &amp;lt;?php phpinfo(); ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, visit the site by url httpd://localhost/&amp;lt;your user name&amp;gt;/phpinfo.php&lt;br /&gt;
&lt;br /&gt;
This should give you the well known phpinfo page. The most likely error will be a page just showing the text &amp;lt;?php phpinfo(); ?&amp;gt; which means php is not working.&lt;br /&gt;
&lt;br /&gt;
=Mysql=&lt;br /&gt;
&lt;br /&gt;
Download your version of Mysql from the Mysql site http://dev.mysql.com/downloads/mysql/&lt;br /&gt;
and install it! &lt;br /&gt;
The dmg install will put a system settings item enabling Mysql to be started/stopped. 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.&lt;br /&gt;
&lt;br /&gt;
If you are not running OSX server then you will probably need to install Mysql again if Apple issue an upgrade of Yosemite.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>1&gt;Tim@horizoneducationnetwork.org</name></author>
	</entry>
</feed>