0
Ok, I recently got interested in making my mac a server, maybe for a blog. I used DynDns for a free domain name, that will always resolve to my current IP, updated with the DynDns Updater application I downloaded. I reserved my local IP, so DHCP will always assign the same local IP to my mac. I port-forwarded port 80 on the router to my mac. I symlinked /Library/WebServer/Documents
to point to /Users/me/Sites/
, so that I could put stuff in there instead.
I found Wordpress, a free open source blogging engine, so I decided to try that. I found instructions, and activated PHP (in /etc/apache2/httpd.conf). A test php file succeeded. I also created php.ini, and changed some warning thing and the time zone.
Then I donwloaded MySQL (mysql-5.1.39-osx10.5-x86_64
), which I believe is for 64-bit intel (by the way, I'm on Snow Leopard). Here's where I got confused. These are the instructions I've been following, the spot where I am right now. I'm not really sure how to make the mysql admin, which It kind of mentions you need before you can make the user and the database. Any help? Thanks.
Also, what is the database for? Does it store all the entries and comments on the blog?
But how do I create this MySQL admin? – mk12 – 2009-10-17T18:03:16.007
Or on that page I linked to, could you post it but edit it the placeholders to have what they should have? What am I supposed to type where it says adminusername? – mk12 – 2009-10-17T18:07:21.833
@Mk12: the default
adminusername
for a MySQL installation isroot
. Did you set a password forroot
during installation? – Telemachus – 2009-10-17T18:10:04.403and on the MAMP website it says its not meant for a live web server, to use the built in one for that. – mk12 – 2009-10-17T18:10:33.513
@Mk12: Actually, have you even started MySQL? Is the service running? (You should really look at MAMP. It simplifies things a lot.) – Telemachus – 2009-10-17T18:10:54.010
No, I didn't set a password. How do I do that? – mk12 – 2009-10-17T18:11:07.503
and yes Apache, PHP and MySQL are all running. – mk12 – 2009-10-17T18:11:45.413
@Mk12: it's true that MAMP is not meant for a proper server, but for a hobbyist running only one blog, it could work perfectly well. That said, an even easier (and far more secure option) would be to use an inexpensive webhost. A great option is https://www.nearlyfreespeech.net/
– Telemachus – 2009-10-17T18:12:39.560@Mk12: I'm sorry, this is getting silly in terms of number of comments. Your
root
user probably has no password. Try logging in by just hittingEnter
where you would put a password. Beyond that, take a look at the (ample) MySQL documentation. – Telemachus – 2009-10-17T18:13:57.560yes, it has no password. But If I install MAMP, how would I uninstall MySQL first? – mk12 – 2009-10-17T18:16:09.320
@Mk12: You shouldn't need to uninstall MySQL. Just stop it (to avoid running the same service twice). But MAMP will live in a completely separate space from the other installation. Nevertheless, if you want to uninstall, take a look at this: http://forums.mysql.com/read.php?11,75256,255853#msg-255853
– Telemachus – 2009-10-17T18:26:08.987@Mk12: Note that you should read that over and enter those commands very carefully if you go ahead. It's easy to damage your system while using
rm
with root privileges. – Telemachus – 2009-10-17T18:26:59.360@Telemachus: Thanks, I actually already did it using these instructions, which are the same - http://stackoverflow.com/questions/1436425/how-do-you-uninstall-mysql-from-mac-os-x. And I don't want to use a free hosting service, the only reason I'm doing this is because I wanted to try to make my mac a server. I guess I'll try out MAMP. Thanks.
– mk12 – 2009-10-17T18:35:55.613