Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46829

Re: How to access a home Mac running Moodle 2.1 from another Mac?

$
0
0
by Ken Task.  

Did you install MAMP or MAMP Pro or 'other'?

If MAMP server:
In /Applications/MAMP/conf/apache
edit the httpd.conf file: sudo nano httpd.conf

Change this line (after the comments):

# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:8888

To

ServerName 192.168.1.x:8888

where 'x' is it's ip address.

Do *not* change the port (8888) to 80 as that would conflict with Apple's Web sharing port (80) should you turn that on.  Apple's Web Sharing, BTW, uses Apples Apache which is version 1.3.x and not suitable for running Moodle and/or most other open sourced apps - like WP,Joomla,etc.

Edit the config.php file of you Moodle to reflect that change.

Restart Apache:
sudo /Applications/MAMP/bin/stopApache.sh
then
sudo /Applications/MAMP/bin/startApache.sh

Go to other workstation and try hitting http://ipaddressabove:8888

Understand that running MAMP or other such app on a local Mac … not a true server … was for local development ONLY and the machine running it should NOT be granted access from the internet without learning a lot more about security of the applications.  Ok to use inside your local lan (192.168.1.x) however.

In this case, Google is your friend!  So are the makers of MAMP or XAMP!

'spirit of sharing', Ken

 


Viewing all articles
Browse latest Browse all 46829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>