Sounds like your server isn’t set up correctly.
Are you sure PHP is working and turned on? IIRC you have to have MAMP on for it to work.
Hi ,
i was having the exact same troubles, hoping i’m not stating the obvious here, but this, after a couple hours of trying all sorts of things, file editing etc, worked for me. Just type:
http://localhost:8888/
Bingo. It’s so easy when you know
When typing in http://localhost:8888/ from Safari, I get:
Index of /
Name Last modified Size Description
wordpress/ 25-May-2008 15:33 –
Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2 Server at localhost Port 8888
MAMP is on with the green lights on.
When I click PHPinfo from http://localhost:8888/MAMP/?language=English, I get this plus far too much below to cut-n-paste:
PHP Version 5.2.11
System Darwin Office-2.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386
Build Date Dec 12 2009 13:14:57
Configure Command ‘./configure’ ‘–with-mysql=/Applications/MAMP/Library’ ‘–with-apxs2=/Applications/MAMP/Library/bin/apxs’ ‘–with-gd’ ‘–with-jpeg-dir=/Applications/MAMP/Library’ ‘–with-png-dir=/Applications/MAMP/Library’ ‘–with-zlib’ ‘–with-freetype-dir=/Applications/MAMP/Library’ ‘–prefix=/Applications/MAMP/bin/php5’ ‘–exec-prefix=/Applications/MAMP/bin/php5’ ‘–sysconfdir=/Applications/MAMP/conf/php5’ ‘–with-soap’ ‘–with-config-file-path=/Applications/MAMP/conf/php5’ ‘–enable-track-vars’ ‘–enable-bcmath’ ‘–enable-ftp’ ‘–enable-gd-native-ttf’ ‘–with-bz2=/usr’ ‘–with-ldap’ ‘–with-mysqli=/Applications/MAMP/Library/bin/mysql_config’ ‘–with-sqlite’ ‘–with-ttf’ ‘–with-t1lib=/Applications/MAMP/Library’ ‘–enable-mbstring=all’ ‘–with-curl=/Applications/MAMP/Library’ ‘–enable-dbx’ ‘–enable-sockets’ ‘–enable-bcmath’ ‘–with-imap=shared,/Applications/MAMP/Library/lib/imap-2007e’ ‘–enable-soap’ ‘–with-kerberos’ ‘–enable-calendar’ ‘–with-pgsql=shared,/Applications/MAMP/Library/pg’ ‘–enable-dbase’ ‘–enable-exif’ ‘–with-libxml-dir=/Applications/MAMP/Library’ ‘–with-gettext=shared,/Applications/MAMP/Library’ ‘–with-xsl=/Applications/MAMP/Library’ ‘–with-pdo-mysql=shared,/Applications/MAMP/Library’ ‘–with-pdo-pgsql=shared,/Applications/MAMP/Library/pg’ ‘–with-mcrypt=shared,/Applications/MAMP/Library’ ‘–with-openssl’
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /Applications/MAMP/conf/php5
Loaded Configuration File /Applications/MAMP/conf/php5/php.ini
Scan this dir for additional .ini files (none)
additional .ini files parsed (none)
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, data, http, ftp
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed
In MAMP, under preferences->Apache->Document Root , have you set this to the location of your wordpress files?
I put the whole wordpress folder in there, so it looks like this for me:
/Users/username/Sites/wordpress
No need to edit any of the wordpress files.
It should be as simple as that, once all set just hit Open Start Page in MAMP and you should be prompted…
If it doesn’t work maybe try setting a different default browser, like firefox.
I’m new to this so if it’s anything more complicated then i don’t know, i’m afraid. Good luck
When I click Open Start Page in MAMP I get
Welcome to MAMP
If you can see this page, MAMP is installed
on your Mac and everything is working!
It is the link from there that I got the previous information.
Obviously, I am new at this. So what do I do next? Buy a book on PHP and MySQL or WordPress for Idiots?
BTW, I have DreamWeaver and a bit of experience with html. In the remote pass, I have a strong programming experience, pre-OOPS, so I should be able to handle coding. Biggest draw back is time to do it.
Thanks!
What do you get when you go to: http://localhost/~shortusername/ ?
I get the standard apache webpage for the Mac:
______________________________________________
Mac OS X Logo
Your website here.
Now you can use Mac OS X Personal Web Sharing to publish web pages or share files on the Internet — or on your company’s (or school’s) local area network — from a folder on your hard disk.
When you run phpinfo in MAMP as above, do you get a formatted page with gray and purple and text in columns, or just plain, unformatted, black and white text? If it’s plain text, php is broken. If so, check the MAMP forums.
OK, I think I am lost here. I get an entirely different page with http://localhost/~shortusername/ than http://localhost:8888/MAMP/?language=English
Clicking the phpinfo from the page that is opened from the MAMP app Open start page (http://localhost:8888/MAMP/?language=English) gives me the php page that I partially cut-n-pasted above. Most of it is gray and lavender, but there are some multicolored fields. The following are in color.
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
localhost/~shortusername/ is the built-in apache webserver in OS X. (You can drop a phpinfo file in that directory, delete the Apple index page and you’ll get a directory listing and can select phpinfo).
localhost:8888/MAMP is the one you installed with MAMP.
(Sorry, but I don’t know why people use MAMP when you get a better result with stock OS X and MySQL).
So php is working under MAMP. Sounds like you either you’re not looking for the right directory where WP is under http://localhost:8888/
Or something else is broken with MAMP. I’d check their forums.