Rockmongo

Just wanted to see if any of the experts can help me figure out why I can't get RockMongo to work. I keep getting 403 Forbidden error when going to www.domain.com/rockmongo.

If I place a test.php file in www.domain.com/rockmongo/test.php it works fine.

I have my RockMongo config.php setup with the defaults.

I have /srv/www/www.domain.com/public_html/rockmongo directory ownership www-data:www-data

Here is the steps I took to get my VM up.

I spun up at Linode 1536 running the Ubuntu 10.04 LTS 64bit Profile.

I then followed the getting started guide, and the Security guide.

Afterwards I followed this guide ~~[http://library.linode.com/web-servers/nginx/php-fastcgi/ubuntu-10.04-lucid" target="_blank">](http://library.linode.com/web-servers/n … 0.04-lucid">http://library.linode.com/web-servers/nginx/php-fastcgi/ubuntu-10.04-lucid]( to setup Nginx and PHP.

I choose to install more php libraries than the default instructions:

apt-get install nginx php5-cli php5-cgi php5-dev php5-curl php5-gd php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ps php5-pspell php5-recode php5-snmp php5-xmlrpc php5-xsl php5-common php5-mysql spawn-fcgi psmisc curl imagemagick

Then I followed the guide on setting up MongoDB here: ~~[http://library.linode.com/databases/mongodb/ubuntu-10.04-lucid" target="_blank">](http://library.linode.com/databases/mon … 0.04-lucid">http://library.linode.com/databases/mongodb/ubuntu-10.04-lucid](

For testing purposes I have noauth = true

After installing the MongoDB PHP driver. I verified it works by a phpinfo() call in a test.php file.

I then altered my iptables to allow mongodb ports by adding these:

# Allow MongoDB traffic
-A INPUT -p tcp --dport 27017 -j ACCEPT
-A INPUT -p tcp --dport 28017 -j ACCEPT

Any help would be appreciated. Thanks!

2 Replies

Ok from my error log it looks like:

directory index of "/srv/www/www.domain.com/public_html/rockmongo/" is forbidden

It works if I access it www.domain/rockmongo/index.php :)

Must be someway to configure my ngix file /etc/nginx/sites-available/www.domain.com to allow sub directories to function using index.php files.

For now it works with the temp fix of adding index.php

That was easy… I fixed it by adding a index.php file my nginx config: /etc/nginx/sites-available/www.domain.com

location / {

index index.php index.html index.htm;

}

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct