Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Rockmongo
PostPosted: Tue Jun 26, 2012 3:43 pm 
Offline
Newbie

Joined: Tue Jun 26, 2012 3:28 pm
Posts: 3
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 to setup Nginx and PHP.

I choose to install more php libraries than the default instructions:
Code:
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

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:

Code:
# 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!


Top
   
 Post subject: Re: Rockmongo
PostPosted: Tue Jun 26, 2012 3:51 pm 
Offline
Newbie

Joined: Tue Jun 26, 2012 3:28 pm
Posts: 3
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


Top
   
 Post subject: Re: Rockmongo
PostPosted: Tue Jun 26, 2012 4:22 pm 
Offline
Newbie

Joined: Tue Jun 26, 2012 3:28 pm
Posts: 3
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;
}


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group