• 2

求助:MAMP 1.7.2設定問題.(solved)

最近小弟想架設一個server玩WordPress, 卻在MAMP無法Start Apache server而卻步了...
在01找到的文是2005的, OS及MAMP的版本不同, 操作及介面也略為不同...所以, 請原諒我發問, 我是一個Building server的白癡.

電腦資料:
Mac OS X Leopard 10.5.4
MAMP 1.7.2

首先, 我在System Preferences>Sharing裡, take the Web Sharing on.


但未能見到Apache server成功連接, 就算restart後也不行.
而且我點選Web Sharing時, 右方沒有任何顯示, XXX.local的名稱也不能修改, 是否正常?!

以下是MAMP的Setting:

Start/Shop沒有修改過.


曾經把Apache Port 修過成80, 但也沒有反應.


PHP4/5也試過選, 就是沒有成功. Cache也試過.


Document Root 原始設定是沒有wordpress的, 但修改與否都不能Start Apache server.


按Open Start page, 當然是連接失敗啦!!


非常感謝大家為我解決難題啊!!

2008-09-01 19:58 發佈
內建的 Apache 一定要關閉起來才能用 MAMP

建議 Port 不要亂改用預設的即可
修爾基 wrote:
內建的 Apache...(恕刪)


但關閉內建Apache, 也不能正常Start=.=
Living in the Present. Keep on Believing.
修改設定重新啟動系統跟 MAMP 看看

Document Root 也不要自己加檔案夾名稱
修爾基 wrote:
修改設定重新啟動系統...(恕刪)


也是不能...
Living in the Present. Keep on Believing.
1. 先確認你是否安裝在 /Applications/MAMP
MAMP 的所在位置不能變更

2. 嘗試手動啟動,看無法啟動的原因
開啟 Terminal 執行
sudo /Applications/MAMP/bin/startApache.sh
請輸入你的帳號的密碼
看所顯示的錯誤訊息

補充.
內建的不見得要關閉,只要使用不同的 port 即可
這也是為什麼 MAMP 預設的 port 非標準 port
若不會使用到內建的,可把 MAMP 設回標準 port (80/3306)
即按下 "set to default apache and mysql ports" 即可
>>首先, 我在System Preferences>Sharing裡, take the Web Sharing on.

Web Sharing = OFF

因為 Web Sharing = ON 將os x 內建 apache SERVER 打開,會跟MAMP 的 apache SERVER 打架

把 apache server port 改成 80, MYSQL PORT=3306

重新啟動MAMP

如果兩個綠燈有亮就正常了

如果不行

1.將MAMP移除

2.所有分享設定移除

3.重開機

4.安裝MAMP > 完成馬上執行MAMP >按 start 如果亮兩個綠燈就正常了

5.在跑 wordpress 設定之前先用 open start page 按紐 開啟 MAMP 內建的PHPMYADMIN 設定MYSQL 帳號,密碼,資料庫 給
wordpress用

6.記得要將set default abache and MYSQL port 按鍵按一下 apache port=80,MYSQL port=3306

預設Document Root 不要改(好像改這個會影響apache)

wordpress 解開底下的東西直接放在 MAMP\htdocs 就可以了

直接輸入 http://YOUR_IP/ 就可以開始設定 wordpress了

我的MAC mini G4 跑 10.5.4 +MAMP+wordpress 就是以上幾個步驟就ok(當然中間試過很多錯誤)

目前內網很正常,外部網路進來就不知道了







aoneko wrote:
1. 先確認你是否安...(恕刪)


Last login: Mon Sep 1 22:29:24 on console
Apples-Computer:~ Jeffery Wong$ sudo /Applications/MAMP/bin/startApache.sh

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
Syntax error on line 326 of /Applications/MAMP/conf/apache/httpd.conf:
User takes one argument, Effective user id for this server
Apples-Computer:~ Jeffery Wong$

What's wrong?

Living in the Present. Keep on Believing.
weimaoj wrote:
>>首先...(恕刪)


I do this step again but is not going to true.
Living in the Present. Keep on Believing.
Insignia wrote:
Syntax error on line 326 of /Applications/MAMP/conf/apache/httpd.conf:
User takes one argument, Effective user id for this server


由以上訊息,應該是 user 設定有錯
先確認你 MAMP 安裝時使用的帳號 (即 mamp owner)
應該與下方的紅色相同

<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# . On HPUX you may not be able to use shared memory as nobody, and the
# suggested workaround is to create a user www and use that user.
# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
# when the value of (unsigned)Group is above 60000;
# don't use Group #-1 on these systems!
#
User YOURUSERNAME
Group #-1
</IfModule>
</IfModule>

oh, in your case, your username is "Jeffery Wong"
there's should not be any space with username
if that is the problem, maybe you can try with quotes like User "Jeffery Wong"
not sure if it works, or just change your username from preference
  • 2
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?