Install and configure Apache, MySQL, PHP and phpMyAdmin on OSX 10.8 Mountain Lion
With the new cat out of the bag, getting the AMP stack running is a little different on OS X Mountain Lion 10.8 (GM Build 12A269) than is its predecessor OS X 10.7 Lion, here is the lowdown on getting Apache, MySQL, PHP and phpMyAdmin running on the new Apple operating system.
Apache/WebSharing
The first difference in the new OS X 10.8 is the dropping of the GUI option to turn on Web Sharing in the System Preferences, it may be gone but Apache is definitely installed in the lower level of the OS and ready to go.
No Web Sharing Option in System Preferences
Apache is pre-installed and needs to be enabled via the command line -/Applications/Utilities/Terminal
to start it
sudo apachectl start
to stop it
sudo apachectl stop
to restart it
sudo apachectl restart
To find the Apache version
httpd -v
The version installed in Golden Master is Apache/2.2.22
After starting Apache – test in the browser - http://localhost - you should see the “It Works!” text.
Document Root
Document root is the location where the files are shared from the file system and is similar to the traditional names of ‘public_html’ and ‘htdocs’, OSX has historically had 2 web roots one at a system level and one at a user level – you can set both up or just run with one, the user level one allows multiple acounts to have their own web root whilst the system one is global. It seems there is less effort from Apple in continuing with the user level one but it still can be set up with a couple of extra tweaks.
System Level Web Root
- the default system document root is still found at -
http://localhost/
It is found in the filing system at -
/Library/WebServer/Documents/
User Level Root
Interestingly the user document root level is missing the ‘~/Sites’ folder in the User account, you need to make a “Sites” folder at the root level of your account and then it will work.
Create a Sites folder at the account root level
Check that you have a “username.conf” filed under:
/etc/apache2/users/
If you don’t then create one named by the short username of the account with the suffix .conf, its contents should be (swap in the real username):
cd /etc/apache2/users
sudo nano username.conf
Then add the content below swapping in your username:
<Directory "/Users/username/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Permissions on the file should be:
-rw-r--r-- 1 root wheel 298 Jun 28 16:47 username.conf
Restart Apache for the new file to be read:
sudo apachectl restart
Then this user level document root will be viewable at:
http://localhost/~username/
PHP
PHP 5.3.13 is loaded in OSX 10.8 Mountain Lion and needs to be turned on by uncommenting a line in the httpd.conf file.
sudo nano /etc/apache2/httpd.conf
Use “control” + “w” to search and search for ‘php’ this will land you on the right line then uncomment the line (remove the #):
LoadModule php5_module libexec/apache2/libphp5.so
Write out and Save using the nano short cut keys at the bottom ‘control o’ and ‘control x’
Re-load apache to kick in
sudo apachectl restart
To see and test PHP, create a file name it “phpinfo.php” and file it in your document root with the contents below, then view it in a browser.
<?php phpinfo(); ?>
MySQL
MySQL is again a missing component in OS X 10.8 and needs to be dowloaded from the MySQL site use the Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive version (works fine on 10.8).
When downloading you don’t have to sign up, look for » No thanks, just take me to the downloads! - go straight to the download mirrors and download the software from a mirror which is closest to you.
Once downloaded install the 3 components. You may need to adjust the Security and Privacy System Pref to allow installs.
mysql5.5.xxx.pkg
MySQLstartupitem.pkg
MySQLPrefPane
The first is the MySQL software, the 2nd item allows MySQL to start when the Mac is booted and the third is a System Preference that allows start/stop operation and a preference to enable it to start on boot.
You can start the MySQL server from the System Preferences or via the command line
To find the MySQL version from the terminal, type at the prompt:
/usr/local/mysql/bin/mysql -v
This also puts you in to an interactive dialogue with mySQL, type \q to exit.
After installation, in order to use mysql commands without typing the full path to the commands you need to add the mysql directory to your shell path, this is done in your “.bash_profile” file in your home directory, if you don’t have that file just create it using vi or nano:
cd ; nano .bash_profile
export PATH="/usr/local/mysql/bin:$PATH"
The first command brings you to your home directory and opens the .bash_profile file or creates a new one if it doesn’t exist, then add in the line above which adds the mysql binary path to commands that you can run. Exit the file with type “control + x” and when prompted save the change by typing “y”. Last thing to do here is to reload the shell for the above to work straight away.
source ~/.bash_profile
mysql -v
You will get the version number again, just type “\q” to exit.
The new server to be configured is the localhost, click new server and then the only other configurations are the local mysql user and the password in the Authentication tab.
Add in the username, by default “root” is assumed, add in the password, click on save and you are returned to the previous screen.
Make sure you click on save, then a config.inc.php is now in the /config directory, movethis file to the root level of /phpmyadmin and then remove the now empty /config directory.
Now going to http://localhost/~username/phpmyadmin/ will now allow you to interact with your MySQL databases.
Thats it you now have the native AMP stack running ontop of the Mountain Lion.
If you have found the information here useful please donate.
So, I installed OS X 10.8 Mountain Lion today and I am happy to report that it seems to be running the same as it had in OS X 10.7 Lion. After I turned on dictation “located in your system preferences” I was pleasantly surprised that Dictation works in iWeb.
If you have more than 1 iWeb domain file you will need to use the iWeb Multi-domain tool. Here is the link:
Youtube video:
Sorry, the dictation portion of the video is a little choppy. I need a new machine.
And if you haven’t got a 3rd party web host yet I would suggest IX Web hosting.
I have been using IX Web hosting for several years with little to no problems “usually the problem was something I did” and they have been quick to solve any issue I have come across. The have plans that start at $3.95 a mo (USD) and their customer service is top notch.
Mountain Lion gets released, with Messages, Notification Center, systemwide Sharing, and more. Built in iCloud to keep customers’ content up to date.
Banished from the iLife suite starting with the 2011 revision, iWeb is fully compatible with OS X 10.8 Mountain Lion, an up and coming version of Apple’s desktop operating system currently in beta testing.
iWeb 3 has been tested on OS X Mountain Lion “10.8″ and that we’re “glad to announce that iWeb 3 is fully compatible with [the] upcoming Apple desktop operating system.”
Still looking to host your iWeb site? I have been using IX Webhosting for several years now with little to no problems “usually the problem was something I did” and they have been quick to solve any issue I have come across.
IX Web hosting is one of the top 10 hosting companies in us, in terms of size. According to third party estimates, they host over 494,000 domains. They own over 1% of US market share. They also have a sister company named Host Excellence, which offers packages similar to ix web hosting.
With plans starting from $3.95 per month, they offer excellent value for money. Available in both Linux and Windows hosting, IX Web Hosting is a good choice for hobby, entertainment sites and small business web sites.
IX Web Hosting Features Review
They provide nearly everything needed for a business website. They use H-Sphere control panel, which is good. H-Sphere is not as popular as cPanel but it is simple, easy to use and does almost everything needed for a normal website. Firewall Protection, Spam filtering, Website Templates etc. are standard with all packages. Also, they offer free domain names with all plans.
All the plans come with unlimited space and bandwidth. The major difference among them is the number of IP address provided. For multiple sites hosting, from SEO point of view it is good to have different IP addresses. So webmasters who want to host multiple sites may find “Business Plus” hosting very helpful.
All the 8 IP address will most probably be from different class “C” even though IX doesn’t guarantee it. Having 8 different class C IP’s is great news for webmasters who want to link their sites and transfer the PR. Most hosts who offer unlimited/large number of add-on domains, doesn’t provide different IP for each domains.
IX Web Hosting Coupon
They offer 10% discount on the billing amount amount if you go through a secret link before signing up.
Scroll to the bottom of the page to find the secret Link.
IX Web Hosting Performance Review
IX Web hosting offers reasonably good performance. Their uptime as verified by our test account has been poor during August 2008 – October 2008. But it has been steadily improving from the second half of October 2008 and is looking really good these days.
We have been monitoring our site hosted with IX, using a third party service provider. Screen shot below shows the uptime details for the year 2008.
IX Web Hosting Price Value
IX Web hosting is definitely cheap, with offers starting from $3.95. They also allow multiple domains in same account. This is pretty useful for webmaster with many sites.
IX Web Hosting Support Review
IX Web offer toll free(US only) 24/7 support lines, support chat and support tickets. Toll free lines could have waiting time of up to 30 mts., which is not really that bad. They do reply to support tickets in time as well. Even though the support is fast, there has been reports that the support technicians are sometimes not very competitive. Probably this is not the case always, but there are reports of support tickets not giving the exact information requested. We must add, these kind of things happens for almost every host and sometimes only the bad things get reported.
After you finish with a new iWeb site, you can publish your site by using third party Web host (I use IX WebHosting plans start at $3.95 a mo).
You specify where your iWeb site will be published from the Site Properties screen. Click the site name in the Site Organizer to display the Publish To pop-up menu. iWeb offers the following publishing options:
Choose where to publish your site.
Publish to MobileMe: This is no longer an option (I use IX WebHosting plans start at $3.95 a mo).
Publish to FTP Server: This publishing option provides you with a completely different collection of settings on the Site Properties screen. You’ll need to furnish iWeb with your Web server’s FTP settings (which should be furnished to you by the host) and your site’s address (or URL).
Publish to a Local Folder: The final publishing option creates a folder on your hard drive that contains all the files to display your Web site. Once again, you must supply the site URL as it will appear on the Internet after you copy or upload the site files to the server. This option allows you access the the HTML files incase you want to add code like, Google Analytics
After you’ve set the type of publishing the site will use, it’s time to take care of business! Click the site to select it in the Site Organizer and then click the Publish Site button on the toolbar. The application takes care of everything else, automatically uploading all pages and media (if you chose the FTP publishing) or saving them on your hard drive (if you chose the Local Folder option).
In a hurry? You can elect to publish just the changes necessary to update your site: Instead of clicking the Publish Site button on the toolbar, click the File menu and choose Publish Site Changes.
If you haven’t heard, come June 30th, Apple will no longer be supporting MobileMe accounts. Because of this, any iWeb site you have uploaded to MobileMe will no longer be up and running.
But don’t worry!
IX Web Hosting provides web and mail services which will allow your site to remain active, and moving your site over to us is a snap. I’ve put together this quick walkthrough to show you how easy it is to switch your iWeb site from MobileMe over to IX Web Hosting in just 5 simple steps:
1. When you create a hosting account with us (if you don’t have one already click HERE to sign up) you will receive a ‘Welcome’ email detailing all login and server information you’ll need. If you signed up previously and lost your ‘Welcome’ email, contact us and we’ll help you find this info.
2. Log into your IX Web Hosting account. Click the ‘Manage’ button for your hosting product and add your domain name under ‘Domains’. Ignore the message about ‘top level domain’ and be sure ‘Web Service’ is turned on. Also, once finished, write down the IP address. (Take note if the word ‘shared’ appears next to it).
3. Open iWeb. Click the domain name on the left to bring up the publishing settings. You will see “Publish to: ‘MobileMe’“. Instead, select “FTP Server” from the drop down menu and enter your IP address or web server name indicated in your welcome email.
4. From the welcome email, you’ll need your Server Address, Username, and Password to fill out the rest of the “FTP Server Settings”. Leave the “directory/path:” field blank.
5. Once finished, click ‘publish’ and thats it! You’ve migrated your website over to our service just with a few simple clicks inside your iWeb program.
To make sure your site is up and working the way you want it, open up a browser window and type in the IP address you wrote down earlier unless it had ‘shared’ next to it. If you have a ‘shared’ IP address, you click ‘Web Options’ in the ‘Manage’ section of your hosting account, click the domain name, and scroll to the bottom to click ‘Instant Access Domain Alias,’ as seen below.
Once you’re sure it’s working, update your name servers with your current registrar using the information provided to you in the ‘Welcome’ email. If you’re not sure how to change your name servers, consult this:
For one reason or another the WowSlider doesn’t work on Dropbox another free option would be 000webhost.com
* update 2*
Also, in Mountain Lion safari has moved things around. To view the source code you may need to enable the develop menu then select show page source. You can also right click or control click for a drop down menu & show page source:
* update *
Mountain Lion users having issues installing the Wowslider app. Getting the message: “WowSlider can’t be opened because it is from an unidentified developer”
For a relaxing vacation in a setting that truly feels like paradise, Wailea Ekahi Village is the perfect spot to rent a Maui condo. Prices for our properties range from $140-$475/per night, depending on the number of bedrooms, baths, location, view and season.
Ekahi means #1 in Hawaiian and we all think that is exactly what Ekahi Village is – Wailea’s #1 luxury beach front resort surrounded by flowering garden views. Located on Keawakapu Beach at the north end of Wailea on Maui’s quiet, sunny side, Ekahi boasts 33 acres of beautiful, mature grounds stretching from the oceanfront pool on up to Wailea Alanui. Dr. Nature has blessed our bit of paradise. This is a definitely a resort complex you will want to keep returning to… We all did!
Renters in Ekahi Village’s Studio, 1 BR and 2 BR condos enjoy all the pleasures of Maui’s Wailea Resort including close proximity to all three Wailea championship golf courses and their world renown tennis club. Our Village is adjacent to Keawakapu Beach where you can enjoy swimming, snorkeling, boogie boarding, romantic sunset walks, and some of the best whale watching on the island, and Wailea’s 2 mile oceanfront boardwalk. The “Shops at Wailea” are just minutes away.
In 1999 we began supporting our first hosting customers on a server in someone’s living room, and since then we have grown into a company with over 110,000 clients hosting over 470,000 sites with us. What does this mean for you? Not only do we know what we’re doing, but you’re not going to have to worry about changing hosting companies because we’re not going anywhere.
Personal Customer Support
At IX we decided that we wanted to provide the best and most exceptional customer support in the industry. That is why we developed a company wide philosophy to provide a unique and personalized customer support experience. This is how our Personal Support Rep program was born.
When you sign up with us, we assign you your own support agent that you can contact directly with any questions or issues you might have. (click here to learn more about the program).
Zero Risk Guaranteed
Every webhost offers a 30-day money back guarantee and many also offer an anytime money back guarantee, but who offers completely free hosting? We do. For a full week, you can kick the tires, take her out for a spin, and see how she handles in the straights – for no charge. Seriously. We won’t charge your card until after the 7 day trial period, and if you cancel before it’s up – you will never be billed. No fighting for refunds, no fine print.
The success of a hosting company largely depends on whether they are able to keep their customers’ websites online and accessible to the web. But 99.9% website uptime is really just one one of those phrases you hear hosting companies throw around, but not define in real terms. We have a Tier 3 n +1 redundant data center that keeps your site up the maximum amount of time.
With our database of over 110,000 customers, joining IX Web Hosting means that you become the newest member of an experienced and interactive community. With the help of social media such as twitter, blogs, facebook, a technical status blog and online Success Tools that include step by step video tutorials.
This article explains how to move aniWeb site, including one with a personal domain, from MobileMe to another web hosting service.
Notes:
You need an account with a web hosting provider that supports FTP (File Transfer Protocol) before proceeding.
When publishing aniWeb site to a web hosting service other than MobileMe, the following features are not available: blog and photo comments, website password, blog search, and hit counter.
Move aniWeb site that is currently published to MobileMe
If you have iWeb ’09 (version 3.0) or later, follow these steps from the Mac on which you published your web site. To check which version of iWeb you have chooseiWeb > About iWeb.
Open iWeb ’09 and click the name of the site you want to publish in the left sidebar. The Site Publishing Settings window appears.
In the Site Publishing Settings window, choose FTP Server from the Publish to drop-down menu.
Enter the following information:
Site name (optional).
Contact email (optional).
FTP server address (provided by your web hosting service).
User name for publishing to your web hosting service.
Password.
Directory and path (if required by your web hosting service).
Protocol and port (if required by your web hosting service).
Click the Test Connection button to make sure you have entered your information correctly.
Enter the URL for your website.
Click the Publish Site button.
For a video overview of publishing your site to an FTP server, please watch this iWeb tutorial.
If you have an earlier version of iWeb, select the “Publish to Folder” option to publish your site to a local folder and then upload it to a third-party hosting service.
Open iWeb and choose File > Publish to Folder. By default, iWeb saves the published results to a Sites folder in your Mac Home folder.
Once your site is saved to the folder, you can upload it to the FTP server with an FTP publishing application.
If you no longer have a copy of your site in iWeb, you can download the data directly from your MobileMe iDisk and then upload it to a third-party hosting service.
From the Finder menu, choose File > New Finder Window.
Under Devices on the left, click the iDisk icon and then choose Web > Sites.
In the Sites folder, locate the “index.html” file and the folders named after your existing iWeb-published site.
Move the “index.html” file and folders to your desktop and upload them to your FTP server.
Move a personal domain from MobileMe to another web hosting service
Open a browser window and go to your web hosting service’s site.
Follow the site’s instructions for configuring your personal domain. Note the CNAME (Canonical Name) record required by your provider.
Go to your personal domain registrar’s site and find the CNAME configuration section.
Change the CNAME from web.me.com to your web hosting service’s address (this change may take some time to process).
Here is an answer to a recent question I received.
Just want to let you know I really like your site and what you have done with the WowSlider. I found you through the Apple forum and I’ve checked out some of your other work- very creative!!
I’m wondering if you might be able to point me in the right direction for how to use iWeb (’09 version) with wow slider. I still publish to Mobile Me which will change obviously in June – but for now, I would love add it to my site but I can’t get it to work. I have tried following the instructions from wow slider but I get tripped up when it comes to publishing – since I use mobile I’m not sure how to get it to work. I tried putting it in my disc folders per some of the suggestions I’ve seen on the Apple forums and in some articles – but so far no luck in getting it to work (I feel like an idiot cause I can’t figure it out!!). Since I really like how it looks on your site, I figure I’d come right to the source and ask how you did it!!
I appreciate your time and would welcome any ideas at your convenience. Thanks for the inspiration and I wish you the best in your next endeavor— which I look forward to seeing – whatever that may be!
In my case I uploaded a folder called “slideshow” to my server resulting in a page like this ” http://jeffnitschke.com/slideshow/ ” then I used the view source menu to see the html code & then selected all the text “command A on the keyboard”, copied, & pasted the code into a new text edit document “just because it is easier to read & edit then in the little snippet window in iWeb” then anywhere you have a href=” or src=”
you will need to add your mobileme info something like this ” <link rel=”stylesheet” type=”text/css” http://web.me.com/MMeUsername/slideshow/engine1/style.css” media=”screen” />”
Hope this helps you out. For web hosting I use IX Webhosting they offer lots of 1 click installs like this wordpress blog and have excellent customer service. Their “expert plan” starts at just $3.95 a month and allows for unlimited domains & email address and also comes with 2 dedicated IP address’s. All plans also have unlimited disk space, data transfer, & bandwidth.
I use IX Webhosting they offer lots of 1 click installs like this wordpress blog and have excellent customer service. Their “expert plan” starts at just $3.95 a month and allows for unlimited domains & email address and also comes with 2 dedicated IP address’s. All plans also have unlimited disk space, data transfer, & bandwidth.
How to Publish Your iWeb Web Site
2012
posted by Jeff Nitschke on iWeb, Web hosting
No comments
After you finish with a new iWeb site, you can publish your site by using third party Web host (I use IX WebHosting plans start at $3.95 a mo).
You specify where your iWeb site will be published from the Site Properties screen. Click the site name in the Site Organizer to display the Publish To pop-up menu. iWeb offers the following publishing options:
After you’ve set the type of publishing the site will use, it’s time to take care of business! Click the site to select it in the Site Organizer and then click the Publish Site button on the toolbar. The application takes care of everything else, automatically uploading all pages and media (if you chose the FTP publishing) or saving them on your hard drive (if you chose the Local Folder option).
In a hurry? You can elect to publish just the changes necessary to update your site: Instead of clicking the Publish Site button on the toolbar, click the File menu and choose Publish Site Changes.
http://www.ixhostingreviews.com
Share this:
Like this: