permessi apache per authpuppy

Asked by maurizio

Hi guys I have a problem with the installation of apache2 on authpuppy.
after uploading the files via ftp directoy of authpuppy, and also set the directory permissions to 777 logs, cache,. etc. I still say that is not allowed. Why?

Question information

Language:
English Edit question
Status:
Solved
For:
AuthPuppy Edit question
Assignee:
No assignee Edit question
Solved by:
Robin Jones
Solved:
Last query:
Last reply:
Revision history for this message
Robin Jones (robin-networkfusion) said :
#1

the cache files, and possibly the log files to, when created are done so as the apache user, thus you wont have permissions to do anything with them.

There is no real need to remove these files manually, the cache is cleared by running the command "php symfony cc" from the command prompt (when in authpuppys root directory) and they are also recycled when needed. if some files remain, they are usually cleaned up by doing a reboot of the server.

Robin.

Revision history for this message
maurizio (dragoalato1988) said :
#2

but I am unable to solve this problem to finish installation.
how can I do?
http://95.174.31.252/authpuppy/web/preinstall.php?step=2

Revision history for this message
Robin Jones (robin-networkfusion) said :
#3

what is the os of the machine? do you have command line access?

Revision history for this message
maurizio (dragoalato1988) said :
#4

it is a machine I have here locally installed just for testing to do.
ubuntu server and have root access

Revision history for this message
Robin Jones (robin-networkfusion) said :
#5

if it is for testing, try running the command sudo chmod -R a+w <directory> e.g sudo chmod -R a+w /var/www/authpuppy/

if you put this into production, only do it to individual folders e.g. chmod -R a+w /var/www/authpuppy/cache/ you will also need to set the owner.

more information can be found: http://www.authpuppy.org/doc/Getting_Started

Revision history for this message
maurizio (dragoalato1988) said :
#6

I did what you told me, did not come out no errors, but when I upgrade from preinstall.php still error. Why?

Revision history for this message
Robin Jones (robin-networkfusion) said :
#7

Apart from checking your apache config (again refer to http://www.authpuppy.org/doc/Getting_Started) I am at the peek of my knowledge...

the command: stat /var/www/authpuppy/
and: stat /var/www/authpuppy/cache/

may be useful, but I haven't had a problem with permissions like this in the past...

one other question is which version of authpuppy are you using? is it from the trunk, or the latest release?

Revision history for this message
maurizio (dragoalato1988) said :
#8

I'm using the version "authpuppy-0.1.1-stable_core "

giving the command stat /var/www/authpuppy/

result:
Access (0777/drwxrwxrwx) Uid: (33/www-data) Gid : (33/www-data)

because it keeps saying can not access?

Revision history for this message
Robin Jones (robin-networkfusion) said :
#9

and stat /var/www/authpuppy/cache/

Revision history for this message
maurizio (dragoalato1988) said :
#10

by the same result

Revision history for this message
maurizio (dragoalato1988) said :
#11

is not that there's some problem on the script that controls the permissions?

Revision history for this message
Robin Jones (robin-networkfusion) said :
#12

I am pretty sure the script is working, it works fine on my servers...

2 more things you can try:

what is the output of the command: ps aux | grep apache

and does it work if you change the authpuppy folder to run as root: sudo chown -R root /var/www/authpuppy/

Revision history for this message
maurizio (dragoalato1988) said :
#13

what is the output of the command: ps aux | grep apache :

root@ubuntu:~# ps aux | grep apache
root 694 0.1 1.9 66288 7720 ? Ss 20:25 0:00 /usr/sbin/apache2 -k start
www-data 741 0.0 1.5 66740 6472 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 742 0.0 1.1 66624 4728 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 744 0.0 0.9 66288 3964 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 745 0.0 0.9 66288 3964 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 746 0.0 0.9 66288 3964 ? S 20:25 0:00 /usr/sbin/apache2 -k start
www-data 772 0.0 0.9 66288 3964 ? S 20:26 0:00 /usr/sbin/apache2 -k start
root 958 0.0 0.2 3336 820 pts/0 S+ 20:28 0:00 grep --color=auto apache

"and does it work if you change the authpuppy folder to run as root: sudo chown -R root /var/www/authpuppy/"

NO nothing changes

Revision history for this message
Robin Jones (robin-networkfusion) said :
#14

unfortunately you have me stumped for the moment...

Revision history for this message
maurizio (dragoalato1988) said :
#15

I'm sorry I did not understand? if you want I can give you private access to my ssh server testing.

Revision history for this message
gbastien (gbastien02) said :
#16

Would your install have anything to do with this bug: https://bugs.launchpad.net/authpuppy/+bug/752585

If so, you should manually create the installed.txt file in the web/ directory, manually copy the file config/databases.yml.default to config/databases.yml and fill it with you db information, then go to the http://yourserver/install and complete the install process. It should work for now, until this bug is fixed.

Or put the authpuppy install at the root of your server...

Revision history for this message
Robin Jones (robin-networkfusion) said :
#17

now why didn't I think of that ;-p

Revision history for this message
maurizio (dragoalato1988) said :
#18

I moved on the main page and it went well.
now I'm still here to http://95.174.31.252/web/install/3
error:

Not Found

The requested URL /web/install/3 was not found on this server.
Apache/2.2.14 (Ubuntu) Server at 95.174.31.252 Port 80

Revision history for this message
Best Robin Jones (robin-networkfusion) said :
#19

your still not at the root... web needs to be part of it to e.g. in the apache config file: DocumentRoot /var/www/authpuppy/web

Revision history for this message
gbastien (gbastien02) said :
#20

Yes and make sure to secure your installation, as right now, it is totally possible to access all your config files (for instance see http://95.174.31.252/lib/)

See the exemple apache configuration file at http://www.authpuppy.org/doc/Getting_Started

Revision history for this message
maurizio (dragoalato1988) said :
#21

to solve the problem of the bugs before I moved all the files from / var / www / authpuppy /.... to / var / www /.... and resolved the issue of permits.
but now I find http://95.174.31.252/web/install/3. Why?

Revision history for this message
maurizio (dragoalato1988) said :
#22

Thanks Robin Jones, that solved my question.