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
Directories could not be created / not writable
Moderator: Thorsten
Re: Directories could not be created / not writable
Hi,
the directories have to writable for the webserver.
bye
Thorsten
the directories have to writable for the webserver.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 3
- Joined: Mon Mar 07, 2016 4:14 pm
Re: Directories could not be created / not writable
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).
---------------------------------------------------------------------------------
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).
---------------------------------------------------------------------------------
-
- Posts: 3
- Joined: Mon Mar 07, 2016 4:14 pm
Re: Directories could not be created / not writable
Problem solved. I disabled SELINUX and now the setup page is showing.
Re: Directories could not be created / not writable
Hi,
thanks for the feedback!
bye
Thorsten
thanks for the feedback!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Directories could not be created / not writable
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:
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.
Any further ideas?
PS. I have also run chomd -R 777 on the entire directory.
PPS. the exact message i see is as follows:
PPPS. I am running phpMyFAQ 2.9.5 on CentOS 6x w/ PHP Version 5.5.38The 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).
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.
-
- Posts: 2
- Joined: Sat Jun 30, 2018 7:23 am
Re: Directories could not be created / not writable
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.
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.
Re: Directories could not be created / not writable
It sounds like the issue is related to directory permissions. After creating the directories, make sure they are writable by the web server user. You can do this by running the following command:nixanwin wrote: ↑Mon Aug 02, 2010 9:22 pm 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 rice purity test
/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
Copy
chmod -R 755 /path/to/faq/attachments /path/to/faq/config /path/to/faq/data
chown -R www-data:www-data /path/to/faq/attachments /path/to/faq/config /path/to/faq/data
Replace /path/to/faq/ with the actual path to your phpMyFaq installation. This should resolve the issue.