Académique Documents
Professionnel Documents
Culture Documents
5
Last Updated: 7 months ago apache, centos, centos 6.5, certificate, file permission, hardening,
install, installation, iptables, mysql, php, php dependencies, setup, ssl
This article will introduce steps to install Pydio step by step in CentOS 6.5 environement.
If you are running CentOS7, please make sure to read the dedicated article here.
Firstly, download pydio from sourceforge at https://pyd.io/download/. In this case, we are going
to use installation from zip file
Contents [hide]
1 Step 1: Preparation
4 Step 4. Post-installation
5 Step 5. Hardening
o 5.1 Minimize permission on your Pydio data
o 5.2 Configure iptables service:
o 5.3 Harden you server with several steps
Step 1: Preparation
MySQL
yum install -y mysql-server
#Create database
service mysqld start
# connect to mysql server
mysql -u username -p
# in mode mysql>_
create database pydio
create user pydio@localhost identified by 'mysqlpassword'
grant all privileges on pydio.* to pydio@localhost identified by
'mysqlpassword' with grant option
chkconfig mysqld --levels 235 on
Apache2
yum install httpd
# install module ssl
yum install -y openssl mod_ssl
# start apache with system
chkconfig httpd --levels 235 on
Or simply click on this link and install via GUI tools. This will install
/etc/yum.repos.d/pydio.repo which configures the repository, allowing update management.
Once installed, update the yum database and install pydio :
yum update
yum install pydio
Step 4. Post-installation
Go to Global Settings >> Application Core >> Main Options >> Sharing >>
Modify Download URL: http://192.168.0.111/pydio_public
Step 5. Hardening
Minimize permission on your Pydio data
# www is group name for httpd
chown -R root:www PYDIO_INSTALL_DIR
cd PYDIO_INSTALL_DIR/
find ./ -type d -exec chmod u=rwx,g=rx,o= '{}' \;
find ./ -type f -exec chmod u=rw,g=r,o= '{}' \;
#Mod data dir for config changes and logs
find data -type d -exec chmod ug=rwx,o= '{}' \;
find data -type f -exec chmod ug=rw,o= '{}' \;