Running Bitnami's Ubuntu Wordpress Image on Amazon EC2. By default the WordPress install is at /wordpress and there is a static index.html file in the root. How do I configure Apache and WordPress to serve from the root instead of /wordpress?

I have tried the instructions on this page: http://digitivity.org/10/how-to-serve-your-wordpress-blog-from-the-root-directory-if-its-installed-in-a-subdirectory without success.

I have tried changing the document root to the folder serving the wordpress content, but that just breaks WordPress.

I know I am missing something simple, but not sure what. Any help would be appreciated.

link|improve this question
feedback

2 Answers

Try the following:

  1. First of all Log in the wordpress admin panel and change in the “settings” panel the URL.

  2. Stop Apache server: sudo /opt/bitnami/ctlscript.sh stop apache

  3. Edit the following lines in the /opt/bitnami/apache2/conf/httpd.conf file:

...

DocumentRoot "/opt/bitnami/apps/wordpress/htdocs"

...

Directory "/opt/bitnami/apps/wordpress/htdocs"

...

# Include "/opt/bitnami/apps/wordpress/conf/wordpress.conf"

...

  1. Start the server: sudo /opt/bitnami/ctlscript.sh start apache

if you are having trouble saving your changes due to permission problems, use:

:w !sudo tee %

link|improve this answer
feedback

sorry you're tearing your hair out.

What exactly is happening? Do you get a whitescreen?

Could you try turning PHP errors on as shown here:

http://perishablepress.com/press/2007/12/17/how-to-enable-php-error-logging-via-htaccess/

Just replace "off" with "on", and PHP errors will immediately show.

Other things to try:

Permissions issue with the file .htaccess . Permissions issue with the file index.php .

Once you figure it out (or not), could you reply back at the Digitivity article?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.