My webpage is showing
The requested URL /opt/bitnami/apps/drupal/htdocs/index.php was not found on this server.

I was trying to replace the bitnami/htdocs folder with a new version of drupal i locked my self out of the folder
after fiddling with the permissions in putty a bit.

WinSCP
Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 14

Putty
bitnami@domU-xx-xx-xx-xx-xx-xx:~/apps/drupal$ ls
conf drush htdocs licenses updateip
bitnami@domU-xx-xx-xx-xx-xx-xx:~/apps/drupal$ cd htdocs
-bash: cd: htdocs: Permission denied

Putty allows me to access the folder as "root" but not as "bitnami" is there a way to allow acces to all users once I am logged in as root $sudo su -

what can i do to gain access to this folder and gain permisions to read/write
so that i can replace it with my new installation of drupal 7.19?

Comments

ziobudda’s picture

Ok, you have a permission problem.

Login with root account and exec:

cd  ~bitnamy
cd apps
chown -R bitnamy drupal

M.

Freelancer Senior Drupal Developer -- http://www.ziobuddalabs.it

Higher Learning’s picture

you fixed me :)
Thank you Budda!
High5

But still there is one more thing to fix

Higher Learning’s picture

Now that I have replaced the old htdocs folder successfully with the new one after copying my sites folder over

How can I authorize my drupal site permission to access the new htdocs folder witch includes the index.php file??

Beacuse when I go to my site in a browser I still get errors saying

"Not Found The requested URL /opt/bitnami/apps/drupal/htdocs/index.php was not found on this server."

However, the folder is there and the file is in that location so I gather that my site just needs permission to access it.

Is there a Command to authorize it?
possibly something simmalar to
root# mount -o remount rw, /

or

root# mount -o remount ro, /

or is there something in phpmyadmin that i need to allow access too?

folder permissions tab

thanks again drupal contribers!

Higher Learning’s picture

when i try to access drupal im still getting
403
Forbidden
You don't have permission to access /drupal/ on this server.

I've been on putty and htdocs all day able to access my server still and to my demise i cant access my website howeveer i can access "amazonaws.com/index.html"

I can access my site via ssh is there someone who can explain clearly how best to repair my situation

can i replace the .htaccess and settings.php documents to recover my data?
i still have my sites file...

what can I do?
there has got to be something I can do

I'm was originally trying to update from 7.14 to 7.19 manually by copy the new install to the old folders with htdocs like you would with a localhost...

I realize now I should have used drush to update (I am using aws Ubuntu 12.04)

it really sucks seeing access denied!

I think i need to move / repair my .htacccess file if anyone can help me threw that...

right now it is sitting in the drupal/htdocs folder along with index.php

for whatever reason .htaccess file is greyed out like a hidden file but i assume this is typical of any file that has a period in-front

/apps$ls -l
drwxrwxr-x 7 bitnami root 4096 Feb 14 17:49 drupal
drwxrwxr-x 4 root    root 4096 May  4  2012 phpmyadmin
/apps/drupal$ ls -l
drwxrwxr-x 2 bitnami root       4096 May  4  2012 conf
drwxr-xr-x 9 bitnami root       4096 May  4  2012 drush
drwxr-x--- 9 bitnami bitnami    4096 May  4  2012 htdocs
drwxrwxr-x 9 bitnami bitnami    4096 Feb 14 14:38 htdocs_bad
drwxrwxr-x 2 bitnami root       4096 May  4  2012 licenses
-rwxr-xr-x 1 bitnami root    6655163 May  3  2012 updateip
/apps/drupal/htdocs$ ls -l
-rw-r--r--  1 bitnami daemon  6553 Jan 16 21:45 authorize.php
-rw-r--r--  1 bitnami daemon 74911 Jan 16 21:45 CHANGELOG.txt
-rw-r--r--  1 bitnami daemon  1481 Jan 16 21:45 COPYRIGHT.txt
-rw-r--r--  1 bitnami daemon   720 Jan 16 21:45 cron.php
drwxr-xr-x  4 bitnami daemon  4096 Feb 14 16:29 includes
-rw-r--r--  1 bitnami daemon   529 Jan 16 21:45 index.php
-rw-r--r--  1 bitnami daemon  1451 Jan 16 21:45 INSTALL.mysql.txt
-rw-r--r--  1 bitnami daemon  1874 Jan 16 21:45 INSTALL.pgsql.txt
-rw-r--r--  1 bitnami daemon   688 Jan 16 21:45 install.php
-rw-r--r--  1 bitnami daemon  1298 Jan 16 21:45 INSTALL.sqlite.txt
-rw-r--r--  1 bitnami daemon 17861 Jan 16 21:45 INSTALL.txt
-rw-r--r--  1 bitnami daemon 18092 Sep 17  2011 LICENSE.txt
-rw-r--r--  1 bitnami daemon  8191 Jan 16 21:45 MAINTAINERS.txt
drwxr-xr-x  4 bitnami daemon  4096 May  4  2012 misc
drwxr-xr-x 42 bitnami daemon  4096 May  4  2012 modules
drwxr-xr-x  5 bitnami daemon  4096 May  4  2012 profiles
-rw-r--r--  1 bitnami daemon  5376 Jan 16 21:45 README.txt
-rw-r--r--  1 bitnami daemon  1561 Jan 16 21:45 robots.txt
drwxr-xr-x  2 bitnami daemon  4096 May  4  2012 scripts
drwxr-xr-x  4 bitnami daemon  4096 May  4  2012 sites
drwxr-xr-x  7 bitnami daemon  4096 May  4  2012 themes
-rw-r--r--  1 bitnami daemon 19416 Jan 16 21:45 update.php
-rw-r--r--  1 bitnami daemon  9642 Jan 16 21:45 UPGRADE.txt
-rw-r--r--  1 bitnami daemon  2051 Jan 16 21:45 web.config
-rw-r--r--  1 bitnami daemon   417 Jan 16 21:45 xmlrpc.php
Higher Learning’s picture

sudo chown -R bitnami:daemon /opt/bitnami/apps/drupal/htdocs

this worked for me

I need to get myself out of maintenance mode if anyone knows how to do that...
Thanks

mfuller526’s picture

You are here (admin)
Home » Administration » Configuration » Development » Maintenance Mode