You are not logged in.

#1 2013-02-06 09:12:48

Airon90
Member
From: Canegrate
Registered: 2012-12-11
Posts: 60
Website

[SOLVED] Installing Drupal

Hi you all,
I want to install drupal on my PC in order to create a website on my PC and then to show it before pushing it on the server.
I installed drupal with pacman/pacaur with mariadb, php and some related modules and apache.
I followed the instruction on the wiki and nothing happened.
I followed this guide in Italian [1] and now if I go to localhost/drupal this error is printed out:

«Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403
localhost
Wed Feb 6 10:12:04 2013
Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1c DAV/2 PHP/5.4.11 »

What should I have to do?
- MM

[1] http://www.finex.org/drupal-7-su-archlinux.html

Last edited by Airon90 (2013-12-19 14:11:01)

Offline

#2 2013-02-06 09:33:36

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: [SOLVED] Installing Drupal

Hi

Did you contact your webmaster?

Who is the owner of the files? What are the permissions?

ls -l /srv
ls -l /srv/http

Offline

#3 2013-02-06 09:37:54

Airon90
Member
From: Canegrate
Registered: 2012-12-11
Posts: 60
Website

Re: [SOLVED] Installing Drupal

wirr wrote:

Hi

Did you contact your webmaster?

Who is the owner of the files? What are the permissions?

ls -l /srv
ls -l /srv/http

Your webmaster? Maybe I uncorrectly explained my problem.
I want to host drupal in my notebook in order to create a website but it is not a server.
I just want to install Drupal in order to create a sandbox where to play.

There is no webmasters to contact!

[airon@aironpc ~]$ ls -l /srv
totale 8
dr-xr-xr-x 2 root ftp  4096 27 gen 08.29 ftp
drwxr-xr-x 2 root root 4096 27 gen 08.29 http
[airon@aironpc ~]$ ls -l /srv/http
totale 0
[airon@aironpc ~]$

Offline

#4 2013-02-06 09:48:09

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: [SOLVED] Installing Drupal

sorry smile

Do you know where your drupal files are?
Maybe /usr/share/webapps/drupal?

Most likely your webserver has not the right to access those files.

Offline

#5 2013-02-06 09:50:57

Airon90
Member
From: Canegrate
Registered: 2012-12-11
Posts: 60
Website

Re: [SOLVED] Installing Drupal

Some days ago I gave sudo chmod a+w /usr/share/webapps/drupal/ -R but nothing changed. This error was printed out before and after this command hmm

Offline

#6 2013-02-06 09:59:35

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: [SOLVED] Installing Drupal

chmod a+w gives write permissions for all? yikes

You have to run chown not chmod to change the owner.

ls -l /usr/share/webapps/{,drupal}

Offline

#7 2013-02-06 10:01:03

Airon90
Member
From: Canegrate
Registered: 2012-12-11
Posts: 60
Website

Re: [SOLVED] Installing Drupal

So I try to give chown smile

[airon@aironpc ~]$ ls -l /usr/share/webapps/{,drupal}
/usr/share/webapps/:
totale 12
drwxrwxrwx  8 root root 4096 18 gen 17.05 drupal
drwxr-xr-x 13 root root 4096  5 dic 11.58 mediawiki
drwxr-xr-x  8 root root 4096 30 gen 09.43 phpMyAdmin

/usr/share/webapps/drupal:
totale 236
-rw-rw-rw-  1 root root  6553 18 gen 17.05 authorize.php
-rw-rw-rw-  1 root root 74911 18 gen 17.05 CHANGELOG.txt
-rw-rw-rw-  1 root root  1481 18 gen 17.05 COPYRIGHT.txt
-rw-rw-rw-  1 root root   720 18 gen 17.05 cron.php
drwxrwxrwx  4 root root  4096 18 gen 17.05 includes
-rw-rw-rw-  1 root root   529 18 gen 17.05 index.php
-rw-rw-rw-  1 root root  1451 18 gen 17.05 INSTALL.mysql.txt
-rw-rw-rw-  1 root root  1874 18 gen 17.05 INSTALL.pgsql.txt
-rw-rw-rw-  1 root root   688 18 gen 17.05 install.php
-rw-rw-rw-  1 root root  1298 18 gen 17.05 INSTALL.sqlite.txt
-rw-rw-rw-  1 root root 17861 18 gen 17.05 INSTALL.txt
-rw-rw-rw-  1 root root 18092 18 gen 17.05 LICENSE.txt
-rw-rw-rw-  1 root root  8191 18 gen 17.05 MAINTAINERS.txt
drwxrwxrwx  4 root root  4096 18 gen 17.05 misc
drwxrwxrwx 42 root root  4096 18 gen 17.05 modules
drwxrwxrwx  5 root root  4096 18 gen 17.05 profiles
-rw-rw-rw-  1 root root  5376 18 gen 17.05 README.txt
-rw-rw-rw-  1 root root  1561 18 gen 17.05 robots.txt
drwxrwxrwx  2 root root  4096 18 gen 17.05 scripts
lrwxrwxrwx  1 root root    21 18 gen 17.05 sites -> /var/lib/drupal/sites
drwxrwxrwx  7 root root  4096 18 gen 17.05 themes
-rw-rw-rw-  1 root root 19416 18 gen 17.05 update.php
-rw-rw-rw-  1 root root  9642 18 gen 17.05 UPGRADE.txt
-rw-rw-rw-  1 root root  2051 18 gen 17.05 web.config
-rw-rw-rw-  1 root root   417 18 gen 17.05 xmlrpc.php

Offline

#8 2013-02-06 10:12:08

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: [SOLVED] Installing Drupal

In your sandbox it is not that critical, but your permissions look wrong.

-rw-r--r--  1 aegir aegir   6605 May  5  2012 authorize.php
-rw-r--r--  1 aegir aegir  67690 May  5  2012 CHANGELOG.txt
-rw-r--r--  1 aegir aegir    996 May  5  2012 COPYRIGHT.txt
...

Last edited by wirr (2013-02-06 10:16:03)

Offline

#9 2013-02-06 10:13:27

Airon90
Member
From: Canegrate
Registered: 2012-12-11
Posts: 60
Website

Re: [SOLVED] Installing Drupal

wirr wrote:

In your sandbox it is not that critical, but those permissions look wrong.

-rw-r--r--  1 aegir aegir   6605 May  5  2012 authorize.php
-rw-r--r--  1 aegir aegir  67690 May  5  2012 CHANGELOG.txt
-rw-r--r--  1 aegir aegir    996 May  5  2012 COPYRIGHT.txt
...

So what should I have to do?

Offline

#10 2013-02-06 10:35:53

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: [SOLVED] Installing Drupal

Did you read this http://drupal.org/node/244924?

If you know how to reinstall those files with the original permissions from drupal, then I would do

chmod -R 777 /usr/share/webapps/drupal

NEVER DO THAT!

After that you should be able to browse to your drupal site. If not, then you have another problem.
You have to reinstall drupal afterwards. (Or restore the filepermissions according to the link.)

Offline

#11 2013-02-06 15:12:55

Airon90
Member
From: Canegrate
Registered: 2012-12-11
Posts: 60
Website

Re: [SOLVED] Installing Drupal

wirr wrote:

Did you read this http://drupal.org/node/244924?

If you know how to reinstall those files with the original permissions from drupal, then I would do

chmod -R 777 /usr/share/webapps/drupal

NEVER DO THAT!

After that you should be able to browse to your drupal site. If not, then you have another problem.
You have to reinstall drupal afterwards. (Or restore the filepermissions according to the link.)

I gave pacaur -Rcs drupal and then pacaur -S drupal
There was a warning: «warning: directory permissions differ on var/lib/drupal/sites/default/
filesystem: 777  package: 755»
So I chmod-ed that folder with 755.

But nothing changed.
That error appears yet.

No, I didn't read that link and I don't know what to do...

Offline

#12 2013-02-06 18:15:38

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: [SOLVED] Installing Drupal

You have to tell apache where your files are (httpd.conf) and they need the right permissions (http://drupal.org/node/244924).

Did you edit /etc/httpd/conf/httpd.conf like the wiki says?

Offline

#13 2013-12-19 14:10:48

Airon90
Member
From: Canegrate
Registered: 2012-12-11
Posts: 60
Website

Re: [SOLVED] Installing Drupal

Thank you but I don't need to use Drupal anymore.
I'm closing this thread as solved.

Offline

Board footer

Powered by FluxBB