Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Lawrence McBride
Lawrence McBride
39 Points

MAMP Server Error 500

I was able to get the root file sorted out, downloaded wordpress, and copied the folder into htdocs. A link to the folder shows up when I got to localhost:8888, however when I click on it I get Server Error 500 which says:

The website encountered an error while retrieving http://localhost:8888/wordpress/. It may be down for maintenance or configured incorrectly.

Has anyone else experienced this, or know how to fix it? I was going to email the teacher, but apparently he no longer works at Treehouse anymore. Any help would be appreciated.

Aaron Kaye
Aaron Kaye
10,948 Points

Have you been able to get to the admin dashboard at all or did you get this error as soon as you copied the folder over?

Lawrence McBride
Lawrence McBride
39 Points

I received the error as soon as I copied the folder over.

Aaron Kaye
Aaron Kaye
10,948 Points

So inside of your WordPress folder, does the layout have some of the following files: wp-login.php, wp-config-sample.php, wp-cron.php, index.php?

Also, another step would be to check the error logs. On MAMP you can do this by going to /Applications/MAMP/logs and inside there is a PHP log and an Apache log. Do any of these contain error messages you see?

Lawrence McBride
Lawrence McBride
39 Points

I know that it does have those I believe as subfolders. I am not at my desk at the moment, but will try to check the logs when I get home. I wasn't sure where to find them, and didn't see them on my first look around.

Lawrence McBride
Lawrence McBride
39 Points

Aaron,

The PHP Error log says: [10-Feb-2016 06:04:38 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/Wordpress local/wp-config.php on line 29 [10-Feb-2016 06:04:40 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/Wordpress local/wp-config.php on line 29 [10-Feb-2016 06:04:40 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/Wordpress local/wp-config.php on line 29 [10-Feb-2016 06:11:33 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/wordpress/wp-config.php on line 29 [10-Feb-2016 06:11:48 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/wordpress/wp-config.php on line 29 [10-Feb-2016 06:12:47 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/wordpress/wp-config.php on line 29 [10-Feb-2016 06:16:07 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/wordpress/wp-config.php on line 29 [10-Feb-2016 06:16:09 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/wordpress/wp-config.php on line 29 [10-Feb-2016 06:17:28 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/wordpress/wp-config.php on line 29 [10-Feb-2016 06:17:33 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/wordpress/wp-config.php on line 29 [10-Feb-2016 06:28:54 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/wordpress/wp-config.php on line 29 [10-Feb-2016 06:51:02 Europe/Berlin] PHP Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING), expecting ',' or ')' in /Applications/MAMP/htdocs/wordpress/wp-config.php on line 29

The Apache Error log says: [Wed Feb 03 18:20:22 2016] [notice] Digest: generating secret for digest authentication ... [Wed Feb 03 18:20:22 2016] [notice] Digest: done [Wed Feb 03 18:20:22 2016] [notice] FastCGI: process manager initialized (pid 10500) [Wed Feb 03 18:20:22 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations [Wed Feb 03 18:20:30 2016] [error] [client ::1] File does not exist: /Users/lawrencemcbride/Desktop/Wordpress Developer Files/MAMP Files/docs-assets, referer: http://localhost:8888/MAMP/?language=English [Wed Feb 03 20:02:16 2016] [notice] caught SIGTERM, shutting down [Mon Feb 08 17:50:29 2016] [notice] Digest: generating secret for digest authentication ... [Mon Feb 08 17:50:29 2016] [notice] Digest: done [Mon Feb 08 17:50:29 2016] [notice] FastCGI: process manager initialized (pid 23418) [Mon Feb 08 17:50:29 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations [Mon Feb 08 18:26:41 2016] [notice] caught SIGTERM, shutting down [Tue Feb 09 18:02:58 2016] [notice] Digest: generating secret for digest authentication ... [Tue Feb 09 18:02:58 2016] [notice] Digest: done [Tue Feb 09 18:02:58 2016] [notice] FastCGI: process manager initialized (pid 26704) [Tue Feb 09 18:02:58 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations [Tue Feb 09 18:07:09 2016] [notice] caught SIGTERM, shutting down [Tue Feb 09 18:08:05 2016] [notice] Digest: generating secret for digest authentication ... [Tue Feb 09 18:08:05 2016] [notice] Digest: done [Tue Feb 09 18:08:05 2016] [notice] FastCGI: process manager initialized (pid 27048) [Tue Feb 09 18:08:05 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations [Tue Feb 09 18:23:48 2016] [notice] caught SIGTERM, shutting down [Tue Feb 09 18:23:51 2016] [notice] Digest: generating secret for digest authentication ... [Tue Feb 09 18:23:51 2016] [notice] Digest: done [Tue Feb 09 18:23:51 2016] [notice] FastCGI: process manager initialized (pid 27399) [Tue Feb 09 18:23:51 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations [Tue Feb 09 18:29:13 2016] [notice] caught SIGTERM, shutting down [Tue Feb 09 18:29:21 2016] [notice] Digest: generating secret for digest authentication ... [Tue Feb 09 18:29:21 2016] [notice] Digest: done [Tue Feb 09 18:29:21 2016] [notice] FastCGI: process manager initialized (pid 27596) [Tue Feb 09 18:29:21 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations [Tue Feb 09 18:30:20 2016] [notice] caught SIGTERM, shutting down [Tue Feb 09 18:30:34 2016] [notice] Digest: generating secret for digest authentication ... [Tue Feb 09 18:30:34 2016] [notice] Digest: done [Tue Feb 09 18:30:34 2016] [notice] FastCGI: process manager initialized (pid 27782) [Tue Feb 09 18:30:34 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations [Tue Feb 09 18:30:57 2016] [error] [client ::1] File does not exist: /Users/lawrencemcbride/Desktop/Wordpress Developer Files/MAMP Files/docs-assets, referer: http://localhost/MAMP/?language=English [Tue Feb 09 20:53:43 2016] [notice] caught SIGTERM, shutting down [Tue Feb 09 20:53:45 2016] [notice] Digest: generating secret for digest authentication ... [Tue Feb 09 20:53:45 2016] [notice] Digest: done [Tue Feb 09 20:53:45 2016] [notice] FastCGI: process manager initialized (pid 28365) [Tue Feb 09 20:53:45 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations [Tue Feb 09 20:53:53 2016] [error] [client ::1] client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store [Tue Feb 09 21:04:35 2016] [error] [client ::1] client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store [Tue Feb 09 21:11:27 2016] [error] [client ::1] client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store [Tue Feb 09 21:12:10 2016] [notice] caught SIGTERM, shutting down [Tue Feb 09 21:12:13 2016] [notice] Digest: generating secret for digest authentication ... [Tue Feb 09 21:12:13 2016] [notice] Digest: done [Tue Feb 09 21:12:13 2016] [notice] FastCGI: process manager initialized (pid 28815) [Tue Feb 09 21:12:13 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations [Tue Feb 09 21:12:44 2016] [error] [client ::1] client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store [Tue Feb 09 21:15:32 2016] [notice] caught SIGTERM, shutting down [Tue Feb 09 21:15:35 2016] [notice] Digest: generating secret for digest authentication ... [Tue Feb 09 21:15:35 2016] [notice] Digest: done [Tue Feb 09 21:15:35 2016] [notice] FastCGI: process manager initialized (pid 28934) [Tue Feb 09 21:15:35 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations [Tue Feb 09 21:15:36 2016] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/wordpress/wordpress [Tue Feb 09 21:15:39 2016] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/wordpress/wordpress, referer: http://localhost:8888/ [Tue Feb 09 21:16:03 2016] [notice] caught SIGTERM, shutting down [Tue Feb 09 21:16:05 2016] [notice] Digest: generating secret for digest authentication ... [Tue Feb 09 21:16:05 2016] [notice] Digest: done [Tue Feb 09 21:16:05 2016] [notice] FastCGI: process manager initialized (pid 28980) [Tue Feb 09 21:16:05 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations [Tue Feb 09 21:16:06 2016] [error] [client ::1] client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store [Tue Feb 09 21:16:13 2016] [error] [client ::1] client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store [Tue Feb 09 21:28:21 2016] [error] [client ::1] script '/Applications/MAMP/bin/phpMyAdmin/main.php' not found or unable to stat, referer: http://localhost:8888/phpMyAdmin/?lang=en [Tue Feb 09 21:28:52 2016] [error] [client ::1] client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store, referer: http://localhost:8888/MAMP/index.php?page=phpmyadmin&language=English [Tue Feb 09 22:01:47 2016] [notice] caught SIGTERM, shutting down [Wed Feb 10 22:13:55 2016] [notice] Digest: generating secret for digest authentication ... [Wed Feb 10 22:13:55 2016] [notice] Digest: done [Wed Feb 10 22:13:55 2016] [notice] FastCGI: process manager initialized (pid 34172) [Wed Feb 10 22:13:55 2016] [notice] Apache/2.2.29 (Unix) mod_wsgi/3.5 Python/2.7.10 PHP/7.0.0 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.22.0 configured -- resuming normal operations

Aaron Kaye
Aaron Kaye
10,948 Points

So you have a wp-config.php, not a wp-config-sample.php? Did you fill out the details for wp-config? What happens if you rename the wp-config.php to wp-config-sample.php (I am thinking that my show the WordPress installation screen).

You are also getting a file not found: Tue Feb 09 21:15:39 2016] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/wordpress/wordpress, referer: http://localhost:8888/

That is where your wordpress is installed right?

Lawrence McBride
Lawrence McBride
39 Points

I'm thinking that maybe I need to install WP again. I think it is currently configured for the live server and I may need another one for the local. I'm going to try that tomorrow. I'm not sure about the file does not exist issue. WP is installed on my computer and was in it's own file, but the instructions said to move it into htdocs so that is what I did.