Install problem: Directories and files are not writable for installscript

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
copernicus142
Registered User
Posts: 2
Joined: Wed Oct 14, 2020 10:35 pm

Install problem: Directories and files are not writable for installscript

Post by copernicus142 »

Hi
I have tried to install phpBB3 but im stuck at the installscript with this error:

Code: Select all

Directory is not writable

To be able to install phpBB the store/ directory needs to be writable.
Directory is not writable

To be able to install phpBB the files/ directory needs to be writable.
File is not writable

To be able to install phpBB the config.php file needs to be writable.
Directory is not writable

It is recommended that the images/avatars/upload/ directory be writable for a better forum user experience.
.
I have used chmod on my Fedora 32 OS on all the files and folders in the phpBB3 folder. I dont know what happend with all the subfolders and files. I do know that the store directory is 777 and the only file in it is also 777 (permission).
This is how it looks: in terminal when doing ls -l on the forum folder phpBB3/:

Code: Select all

[root@localhost phpBB3]# ls -l
total 672
drwxr-xr-x.  4 root root   4096 14 okt 20.20 adm
-rw-r--r--.  1 root root    952 14 okt 20.20 app.php
drwxr-xr-x.  7 root root   4096 14 okt 20.20 assets
drwxr-xr-x.  2 root root   4096 14 okt 20.20 bin
drwxrwxrwx.  3 root root   4096 14 okt 23.26 cache
-rw-r--r--.  1 root root   5535 14 okt 20.20 common.php
-rw-r--r--.  1 root root   1983 14 okt 20.20 composer.json
-rw-r--r--.  1 root root 175542 14 okt 20.20 composer.lock
drwxr-xr-x.  5 root root   4096 14 okt 20.20 config
-rw-rw-rw-.  1 root root      0 14 okt 20.20 config.php
-rw-r--r--.  1 root root   1022 14 okt 20.20 cron.php
drwxr-xr-x.  3 root root   4096 14 okt 20.20 docs
drwxr-xr-x.  2 root root   4096 14 okt 20.20 download
drwxr-xr-x.  3 root root   4096 14 okt 20.20 ext
-rw-r--r--.  1 root root    944 14 okt 20.20 faq.php
-rw-r--r--.  1 root root   1667 14 okt 20.20 feed.php
drwxrwxrwx.  2 root root   4096 14 okt 20.20 files
drwxr-xr-x.  7 root root   4096 14 okt 20.20 images
drwxr-xr-x.  9 root root   4096 14 okt 20.20 includes
-rw-r--r--.  1 root root   8470 14 okt 20.20 index.php
drwxr-xr-x.  5 root root   4096 14 okt 20.20 install
drwxr-xr-x.  3 root root   4096 14 okt 20.20 language
-rw-r--r--.  1 root root   9353 14 okt 20.20 mcp.php
-rw-r--r--.  1 root root  61990 14 okt 20.20 memberlist.php
drwxr-xr-x. 45 root root   4096 14 okt 20.20 phpbb
-rw-r--r--.  1 root root  77217 14 okt 20.20 posting.php
-rw-r--r--.  1 root root   1104 14 okt 20.20 report.php
-rw-r--r--.  1 root root  57684 14 okt 20.20 search.php
drwxrwxrwx.  2 root root   4096 14 okt 20.20 store
drwxr-xr-x.  4 root root   4096 14 okt 20.20 styles
-rw-r--r--.  1 root root  12809 14 okt 20.20 ucp.php
drwxr-xr-x. 17 root root   4096 14 okt 20.20 vendor
-rw-r--r--.  1 root root  41707 14 okt 20.20 viewforum.php
-rw-r--r--.  1 root root  17118 14 okt 20.20 viewonline.php
-rw-r--r--.  1 root root  93280 14 okt 20.20 viewtopic.php
-rw-r--r--.  1 root root   1177 14 okt 20.20 web.config
So now my Fedora OS is showing the right permissions on the directory store/ for example and the file in it. Still the install script says that the directory is not writable. How can I fix this so I can install the phpBB3 forum?
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 4142
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Install problem: Directories and files are not writable for installscript

Post by thecoalman »

Check what the group and owner is of the folder you installed too and set the phpBB folder/files to same. The script may be executing as lower level user and may not have permissions.

Generally speaking if this is public forum you should not be running scripts as root anyway.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
copernicus142
Registered User
Posts: 2
Joined: Wed Oct 14, 2020 10:35 pm

Re: Install problem: Directories and files are not writable for installscript

Post by copernicus142 »

Ok. So i used chown like this:

Code: Select all

chown username:groupname *
to change the user that owns all the files in the forumdirectory to my first user on fedora os, the one that has the same password which root has but still is named another username (actually my real name). Then I used

Code: Select all

chown -R username:groupname *
to fix all the subfolders/subfiles. I have changed the first user on my fedora to fedorauser1 to keep my anonymity.

Now ls -l gives me:

Code: Select all

drwxr-xr-x. 4 fedorauser1 fedorauser1 4096 14 okt 20.20 adm 
-rw-r--r--. 1 fedorauser1 fedorauser1 952 14 okt 20.20 app.php 
drwxr-xr-x. 7 fedorauser1 fedorauser1 4096 14 okt 20.20 assets 
drwxr-xr-x. 2 fedorauser1 fedorauser1 4096 14 okt 20.20 bin 
drwxrwxrwx. 3 fedorauser1 fedorauser1 4096 14 okt 23.26 cache 
-rw-r--r--. 1 fedorauser1 fedorauser1 5535 14 okt 20.20 common.php 
-rw-r--r--. 1 fedorauser1 fedorauser1 1983 14 okt 20.20 composer.json 
-rw-r--r--. 1 fedorauser1 fedorauser1 175542 14 okt 20.20 composer.lock 
drwxr-xr-x. 5 fedorauser1 fedorauser1 4096 14 okt 20.20 config 
-rw-rw-rw-. 1 fedorauser1 fedorauser1 0 14 okt 20.20 config.php 
-rw-r--r--. 1 fedorauser1 fedorauser1 1022 14 okt 20.20 cron.php 
drwxr-xr-x. 3 fedorauser1 fedorauser1 4096 14 okt 20.20 docs 
drwxr-xr-x. 2 fedorauser1 fedorauser1 4096 14 okt 20.20 download 
drwxr-xr-x. 3 fedorauser1 fedorauser1 4096 14 okt 20.20 ext 
-rw-r--r--. 1 fedorauser1 fedorauser1 944 14 okt 20.20 faq.php 
-rw-r--r--. 1 fedorauser1 fedorauser1 1667 14 okt 20.20 feed.php 
drwxrwxrwx. 2 fedorauser1 fedorauser1 4096 14 okt 20.20 files 
drwxr-xr-x. 7 fedorauser1 fedorauser1 4096 14 okt 20.20 images 
drwxr-xr-x. 9 fedorauser1 fedorauser1 4096 14 okt 20.20 includes 
-rw-r--r--. 1 fedorauser1 fedorauser1 8470 14 okt 20.20 index.php 
drwxr-xr-x. 5 fedorauser1 fedorauser1 4096 14 okt 20.20 install 
drwxr-xr-x. 3 fedorauser1 fedorauser1 4096 14 okt 20.20 language 
-rw-r--r--. 1 fedorauser1 fedorauser1 9353 14 okt 20.20 mcp.php 
-rw-r--r--. 1 fedorauser1 fedorauser1 61990 14 okt 20.20 memberlist.php 
drwxr-xr-x. 45 fedorauser1 fedorauser1 4096 14 okt 20.20 phpbb 
-rw-r--r--. 1 fedorauser1 fedorauser1 77217 14 okt 20.20 posting.php 
-rw-r--r--. 1 fedorauser1 fedorauser1 1104 14 okt 20.20 report.php 
-rw-r--r--. 1 fedorauser1 fedorauser1 57684 14 okt 20.20 search.php 
drwxrwxrwx. 2 fedorauser1 fedorauser1 4096 14 okt 20.20 store 
drwxr-xr-x. 4 fedorauser1 fedorauser1 4096 14 okt 20.20 styles 
-rw-r--r--. 1 fedorauser1 fedorauser1 12809 14 okt 20.20 ucp.php 
drwxr-xr-x. 17 fedorauser1 fedorauser1 4096 14 okt 20.20 vendor 
-rw-r--r--. 1 fedorauser1 fedorauser1 41707 14 okt 20.20 viewforum.php 
-rw-r--r--. 1 fedorauser1 fedorauser1 17118 14 okt 20.20 viewonline.php 
-rw-r--r--. 1 fedorauser1 fedorauser1 93280 14 okt 20.20 viewtopic.php 
-rw-r--r--. 1 fedorauser1 fedorauser1 1177 14 okt 20.20 web.config
So you see that the owner has been changed to my first fedora os user, which is the one im logged in to and use the Firefox webbrowser from and occasionaly the terminal with this user (which I now refer to as fedorauser1).

What is the problem now, when I have changed the owner of the folders and files in the forumfolder to my logged in first account on fedora?
Is my first user on fedora the same as root even though they have different names (root and fedorauser1)?
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51596
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Install problem: Directories and files are not writable for installscript

Post by stevemaury »

You might get better or further advice on a Fedora support site.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
Post Reply

Return to “[3.3.x] Support Forum”