วันจันทร์ที่ 28 พฤษภาคม พ.ศ. 2550

Install MAMP + PHP-Nuke

MAMP=MAC + Apache + MySQL + PHP
MAMP is the easy way when I decided to use CMS web application software, because MAMP is already include all software I want. In just one click installed. Now go click and in stall MAMP together.

1. You need to Download new version of MAMP at www.mamp.info, www.living-e.com ( My MAMP in this review is 1.5b1 version )
2. Install MAMP
You just drag MAMP folder to your application folder and open it. You’ll find



Double click on MAMP icon



Wait until Apache Server and MySQL are turn on ( Green light )or You can control MAMP by wiget that’s in your MAMP folder When You push Quit Button, MAMP is automatic stop Apache Server and MySQL to. You can start and stop server from this window and you can setup first setting on Preferences .



In Preferences button you’ll find 4 tab. the first tab is Start/Stop that you can set to start server when starting MAMP and stop server when quitting MAMP. and when starting MAMP start page will start too.



Next tab is port setting. If you don’t know about this set to MAMP ports like this or set to default Apache and MySQL ports up to you but I set like this because don’t know about port.



on the Third tab, you can choose PHP version and PHP Extensions



Last tab is Document Root setting. You can choose document root here and you must remember this document root, because you have to put PHP file or HTML file on this folder that’s on “Application/MAMP/htdocs/”

3. Open safari and key “ http//:localhost/80/MAMP/” then enter or you can click Open start page on MAMP control



If you can see this page, MAMP is installed on your Mac and everything is working. and you’ll see 6 MAMP menu, first menu is start page that you see. The second menus is PHP information about version. MAMP also include phpMyAdmin that you can setup MySQL on this menu. It’ easy.



phpMyAdmin allowed you to customize your database. You can customize your database here.

That’s all MAMP setup and now we setup PHP-Nuke

4. Download new version of PHP-Nuke on www.phpnuke.org
5. unzip file and rename to “myweb” or anything you like, in this case I’m rename t “myweb”
6. Put “myweb” file in to Applications/MAMP/htdocs
7. Open phpMyAdmin in MAMP start page and create new database (my database’s name is nuke) and import data from nuke.sql ( it’s on sql folder on PHP-Nuke downloaded folder )
8. Open “myweb” file and open “config.php” by TextEdit (file “config.php” is in html folder)


9. Looking for “ $dbhost” paragraph because you need to edit $dbpass into your password that MAMP’s default is “root”












10. Safe
11. Open safari and type “http//:localhost/myweb/html/”



That’s all.

0 ความคิดเห็น:

แสดงความคิดเห็น

สมัครสมาชิก ส่งความคิดเห็น [Atom]

<< หน้าแรก