Directories could not be created / not writable

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
nixanwin
Posts: 11
Joined: Mon Aug 02, 2010 9:14 pm

Directories could not be created / not writable

Post by nixanwin »

Hi I am new to phpMyFaq and fairly new to linux. I have a web server (web01) that has php, php-mysql, apache, and phpmyfaq installed. A second server has MySQL installed (db01). When I run the install/setup.php from the browser, I get the following error:

The following directory/-ies could not be created or are not writable:
/attachments
/config
/data


I do not see those directories in /faq so I created them, but the error still persists. What am I doing wrong? Thanks
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Directories could not be created / not writable

Post by Thorsten »

Hi,

the directories have to writable for the webserver.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
slithyToves
Posts: 3
Joined: Mon Mar 07, 2016 4:14 pm

Re: Directories could not be created / not writable

Post by slithyToves »

I have the same problem and I did a chmod -R 777 on those directories as well as all files under the main folder. I restarted apache but same thing.


error message:
---------------------------------------------------------------------------------
phpMyFAQ 2.8.26 Setup
Did you already read the documentation carefully before starting the phpMyFAQ setup? :-)

The following directories could not be created or are not writable:

/attachments
/config
/data
/images
Please create them manually and/or change access to chmod 775 (or greater if necessary).
---------------------------------------------------------------------------------
slithyToves
Posts: 3
Joined: Mon Mar 07, 2016 4:14 pm

Re: Directories could not be created / not writable

Post by slithyToves »

Problem solved. I disabled SELINUX and now the setup page is showing.
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Directories could not be created / not writable

Post by Thorsten »

Hi,

thanks for the feedback!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
nsdb
Posts: 1
Joined: Sun Nov 13, 2016 5:23 am

Re: Directories could not be created / not writable

Post by nsdb »

I have disabled SELINUX, and still no love.

Any further ideas?

PS. I have also run chomd -R 777 on the entire directory.

PPS. the exact message i see is as follows:
The following directories could not be created or are not writable:

/attachments
/data
/images

Please create them manually and/or change access to chmod 775 (or greater if necessary).
PPPS. I am running phpMyFAQ 2.9.5 on CentOS 6x w/ PHP Version 5.5.38

thank you in advance for any further guidance.

SOLVED (fyi):

I had to create those three directories myself, and then run chmod 775 on those directories. (Now I see the db interface.)

Cheers. Thanks for a great platform.
PeteHanley
Posts: 2
Joined: Sat Jun 30, 2018 7:23 am

Re: Directories could not be created / not writable

Post by PeteHanley »

Selinux is disabled on my server and I tried manually setting to 755 and still no luck. I'm attempting a clean install of 3.0.0 and having this issue.

I then realized that the group was 501 and user was game for the files that phpmyfaq installed...very odd. Once I made the Group and User the same for the folders I created manually and the ones I was able to get in.
Post Reply