Announcement

#1 2023-04-27 16:54:53

kennysky
Member
2017-08-09
6

Give write access (chmod 777) to "_data/" directory at the root of you

Hello/Hi/Greetings,

I am trying to intall piwigo 13.6.0

but it showed
Give write access (chmod 777) to "_data/" directory at the root of your Piwigo installation

I have already given _data/ as 777 permission

Offline

 

#2 2023-04-27 18:49:03

erAck
Only trying to help
2015-09-06
2026

Re: Give write access (chmod 777) to "_data/" directory at the root of you

And the directories thereunder?

Also note that 777 is a one-big-club-hits-them-all "solution". More fine grained permissions may be possible, see [Forum, post 183419 by erAck in topic 31993] What are the correct permissions for Piwigo files and directories ?.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2023-04-28 12:40:43

kennysky
Member
2017-08-09
6

Re: Give write access (chmod 777) to "_data/" directory at the root of you

[root@mail ~]# getfacl /var/www/html/photo/_data
getfacl: Removing leading '/' from absolute path names
# file: var/www/html/photo/_data
# owner: root
# group: root
user::rwx
group::rwx
other::rwx

I am freshman in CentOS, I dont know what I should do?

Offline

 

#4 2023-04-28 17:58:58

erAck
Only trying to help
2015-09-06
2026

Re: Give write access (chmod 777) to "_data/" directory at the root of you

You are not trying to tell us that you are running a web server as root, are you? If so, do yourself a favour and shut it down. Now. Or did you "just" unpack and install Piwigo as root? Don't either. Use a dedicated user account in group with the web server group account, or after installation recursively change group of everything to the web server group, and also after installation give that group permissions rwx on directories and rw on files. Or use the web server account or if you have no clue then use the Piwigo netinstall package https://piwigo.org/guides/install/netinstall and point your browser via your web server / domain to the piwigo-netinstall.php file which installs files and gives them the initial ownership and permissions of the web server user.


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2023-04-28 23:22:47

kennysky
Member
2017-08-09
6

Re: Give write access (chmod 777) to "_data/" directory at the root of you

Sorry for my stupid question.

Use a dedicated user account in group with the web server group account.
I am using Fedora with Apache. May I know how I could know the web server group? If there is no default group, How can I assign group as web server group?



I tired to download https://piwigo.org/guides/install/netinstall to fedora and it showed:

Damnit!
Due to restrictions in your PHP configuration, NetInstall cannot get its job done.
Please see Piwigo documentation to perform a normal installation.
Really sorry for the inconvenience.

Offline

 

#6 2023-04-29 02:18:12

kennysky
Member
2017-08-09
6

Re: Give write access (chmod 777) to "_data/" directory at the root of you

I finally solve the problem with below command

curl -o piwigo.zip https://piwigo.org/download/dlcounter.php?code=latest
sudo unzip piwigo.zip -d /var/www/html
sudo chown -R www-data:www-data /var/www/html/photo/
sudo chown -R 755 /var/www/html/photo/
cd /etc/apache2/sites-available/
sudo cp 000-default.conf piwigo.conf
sudo nano piwigo.conf
   DocumentRoot /var/www/html/photo
   ServerName www.kevincaermas.com
       <Directory /var/www/html/photo/>
       Options +FollowSymlinks
       AllowOverride All
       Require all granted
       </Directory>

sudo a2ensite piwigo.conf
sudo a2enmod rewrite
sudo systemctl restart apache2.service

erAck, thank you for advice and support.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact