Error: The directory ../inc is not writeable. - but is 777

All about webserver configurations, PHP and databases.

Moderator: Thorsten

DogTags
Posts: 9
Joined: Sun Oct 17, 2004 7:24 am

Error: The directory ../inc is not writeable. - but is 777

Post by DogTags »

Hi All

Trying to install phpmyfaq

Got to making ../inc writeable but got an error:
The directory ../inc is not writeable.
I DEFINITELY set the permissions of /inc to 777. No doubt about it, but I still get the above error.

Any ideas? I'm stumped on this one.

Thanks :)
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which user owns the directory?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
DogTags
Posts: 9
Joined: Sun Oct 17, 2004 7:24 am

Post by DogTags »

Hi :)

The same user that owns all public docs:

/home/httpd/vhosts/domain.com/httpdocs

/home/httpd/vhosts/domain.com/httpdocs/myfaq

/home/httpd/vhosts/domain.com/httpdocs/myfaq/inc

Which user should own it?

Installation had been going fine until that point.

Thanks :)
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

if you're using PHP as Apache module the files have to be owned by the Apache user.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
DogTags
Posts: 9
Joined: Sun Oct 17, 2004 7:24 am

Post by DogTags »

drwxr-xr-x 14 arnold psacln 1024 Oct 17 02:27 phpmyfaq

drwxr-xr-x 14 arnold psacln 1024 Oct 17 02:27 inc

Does the above help? Are you saying that they should be:

drwxr-xr-x 14 arnold arnold 1024 Oct 17 02:27 phpmyfaq

drwxr-xr-x 14 arnold arnold 1024 Oct 17 02:27 inc

Thanks :)
sitespt
Posts: 10
Joined: Tue Oct 19, 2004 12:37 am

Post by sitespt »

Hello.

I don't understand this type of "owner permissions" Where and how do I set them?

Thank you.
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

if you're using Linux:

man chown
man chmod

:-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sitespt
Posts: 10
Joined: Tue Oct 19, 2004 12:37 am

Post by sitespt »

Hello, I didn't understand what you said.

I'm using Linux, but what does this means?
man chown
man chmod
Thank you
nino
Posts: 81
Joined: Tue Jul 13, 2004 1:13 pm
Location: Bern

Post by nino »

hi sitespt

man = manual

open up a console (something like the DOS-Box on Windows) and type in: man chown

the manual with many informations about the command chown will show up.

do the same for any other command you wish to know more about it.

greets

nino
sitespt
Posts: 10
Joined: Tue Oct 19, 2004 12:37 am

Post by sitespt »

Hi again.

I'm stucked in the same step.
Isn't it the same thing setting the permissions from a FTP program?

The directory is writable and it stucks here all the time! :(

Any help?
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you can test if it works if you chmod the whole directory with 777.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sitespt
Posts: 10
Joined: Tue Oct 19, 2004 12:37 am

Post by sitespt »

Hello.
When chmod the inc directory, I have this error:

Code: Select all

Warning: main(/home/xxxx/public_html/faq/inc/constants.php): failed to open stream: Permission denied in /home/xxxx/public_html/faq/install/installer.php on line 24

Fatal error: main(): Failed opening required '/home/xxxx/public_html/faq/inc/constants.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/faq/install/installer.php on line 24
Any help? The installer.php is 644
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

thi error describes that the file constants.php in the directory /inc isn't readable or even not there...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sitespt
Posts: 10
Joined: Tue Oct 19, 2004 12:37 am

Post by sitespt »

Ok, this error was because inc folder was CHMOD 766. I have CHMOD 777 now, but the other error came up again :(

It is:

Code: Select all

The directory ../inc is not writeable.
And The directory is CHMOD 777

How do I override this error? Please submit step by step instructions.

Thank you
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you could remove all writeable checks inside installer.php.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply