CentOS 7 projectsend 如何设置文件共享工具

ProjectSend is an Open Source web file and image sharing tool for professionals that solve the issue of sharing files between a company and its clients. ProjectSend provides an easy and secure multi-file uploading and unlimited file size on ANY server! Even
on common hostings shared accounts.It is basically a clients-oriented file uploading utility where the clients are created and assigned a username and a password. Then you can upload as much files as you want under each account, with the ability to add a title
and description to each one. When the client logs in, you will see a web page that contains your company logo, and a sortable list of every file uploaded under your name, with description, time, date, etc. It also works as a history of "sent" files. You can
check the differences between versions, the time that it took to do that, and so on. Additional benefits of using ProjectSend include saving hundreds of mb. on email accounts since every file remains on your server until you decide to delete it, and they can
be accessed from any browser anywhere.

Let‘s follow the instructions to install and use ProjectSend on CentOS 7 server with LAMP stack.

1) System Update

Connect to your Linux CentOS 7 server using your root user credentials and after setting up the fully qualified domain name of your server, run the following command to update/upgrade your server with updates, security patches and latest kernel release.

# yum -y upgrade

2) LAMP Setup

Now you have an updated system ready for the installation of required packages for ProjectSend application setup. You need to setup the LAMP (Linux Apache MySQL PHP) stack as a prerequisite of ProjectSend.

Installing Apache

Run the following command to install Apache Web server on CentOS 7.

# yum install httpd openssl mod_ssl

Once installed, start its services and enable it start at boot.

# systemctl start httpd

# systemctl enable httpd

You can verify by opening your favorite web browser and entering the IP address of your server in the URL, you should get a “Testing 123″ page .

Installing MySQL-MariaDB

MariaDB is a replacement for MySQL, that is a robust, scalable and reliable SQL server that comes rich set of enhancements. We will be using ‘yum‘ command to install MariaDB as shown.

# yum install mariadb mariadb-server

To start and enable MariaDB active services on your system run the following commands.

# systemctl enable mariadb

# systemctl start mariadb

By default, MariaDB is not hardened. You can secure MariaDB using the ‘mysql_secure_installation‘ script by choosing the appropriate options as shown .

# mysql_secure_installation

/usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not found

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB

SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we‘ll need the current

password for the root user. If you‘ve just installed MariaDB, and

you haven‘t set the root password yet, the password will be blank,

so you should just press enter here.

Enter current password for root (enter for none):

OK, successfully used password, moving on...

Installing PHP and its Modules

Run the command below to install PHP along with its necessary modules required for PrejectSend on CentOS 7.

]# yum install php php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-mcrypt

3) Installing ProjectSend

After completing the LAMP installation setup , now we are moving towards the installation of ProjectSend Application on our CentOS 7 Server. To download its package go to the
ProjectSend Download Page.

You can also get its packages using ‘wget‘ utility command on your server and then extract it with ‘unzip‘ command. Make sure that you have ‘wget‘ and ‘unzip‘ package installed on your server to run below commands.

# wget https://github.com/ignacionelson/ProjectSend/archive/master.zip

# unzip master.zip

Now move the ProjectSend archive to the document root directory of your web server using below command.

# mv ProjectSend-master/ /var/www/html/projectsend

Change the ownership of ‘projectsend‘ folder with apache using command below.

# chown apache: -R /var/www/html/projectsend

4) Setup DB for ProjectSend

In this step we are going to log in to the MariaDB console and create a database for the ProjectSend by running the following commands and providing the root user credentials that we had setup earlier.

# mysql -u root -p

> CREATE DATABASE psdb;

> GRANT ALL PRIVILEGES ON psdb.* TO ‘psuser‘@‘localhost‘ IDENTIFIED BY ‘password‘ WITH GRANT OPTION;

> FLUSH PRIVILEGES;

> exit;

5) ProjectSend Configurations

In order to configure your ProjectSend configurations, you need to rename the ‘sys.config.sample.php’ file to ‘sys.config.php’ into the following directory with ‘mv‘ command. Then open this in your editor to configure its parameters.

# cd /var/www/html/projectsend/includes

# mv sys.config.sample.php sys.config.php

# vi sys.config.php

Change the configurations to match your database settings and the close file after saving changes.

/**

* Enter your database connection information here

* If you have doubts about this values, consult your web hosting provider.

*/

/** MySQL database name */

define(‘DB_NAME‘, ‘database‘);

/** Database host (in most cases it‘s localhost) */

define(‘DB_HOST‘, ‘localhost‘);

/** MySQL username (must be assigned to the database) */

define(‘DB_USER‘, ‘username‘);

/** MySQL password */

define(‘DB_PASSWORD‘, ‘password‘);

/**

* Prefix for the tables. Set to something other than tbl_ for increased

* security onr in case you want more than 1 installations on the same database.

*/

define(‘TABLES_PREFIX‘, ‘tbl_‘);

/*

6) Apache WebServer Configurations

Configure your default configuration file of Apache web server according to your current document root directory where you have placed its setup by opening file in your editor.

# vim /etc/httpd/conf/httpd.conf

DocumentRoot "/var/www/html/projectsend"

# Relax access to content within /var/www.

<Directory "/var/www/html">

AllowOverride None

# Allow open access:

Require all granted

# Further relax access to the default document root:

<Directory "/var/www/html/projectsend">

Save and close the file and restart your Apache and MariaDB services with below commands.

# systemctl restart httpd

# systemctl restart mariadb

7) Firewall and SELinux

Our installation is almost done, now before accessing the ProjectSend in the web browser make usre to allow the respective services/ports allowed in your firewall. Let‘s run the following commands to open below ports in firewall of your system.

# firewall-cmd --permanent --zone=public --add-service=http

# firewall-cmd --reload

Change the SELinux state to Permissive mode for th time being with following command later on you can configure its policy if required.

# setenforce 0

8) ProjectSend Web Access

Now its time open your web browser ans access the web console of ProjectSend using your FQDN or Server‘s IP address on default port ‘80‘.

http://your_servers_ip/

Configure the Basic System and default system administration options, then click on the Install button to proceed.

Once, everything is fine you will get the below window to congratulate upon successful installation of ProjectSend.

9) Using ProjectSend

After basic system settings of ProjectSend Web, let login using your admin username and password to start using ProjectSend File sharing application.

Welcome to the ProjectSend dashboard, Here you can see the stats about all of your file and images .

Now, in order start uploading your files and share with your clients, fisrt you need to add your client and then click on the File bar and choose the ‘upload button from the drop down to add add and then upload your files.

After uploading your files, you can choose the particular client to whom you want to share. To check the status and manage your uploaded files click on the ‘Manage Files‘ option under the Files bar as shown below.

Conclusion

Thank for reading this post and let‘s start using it to enjoy the awesome features of ProjectSend.You can create new users as many you want, upload files, create groups etc from this Dashboard. Hope you have enjoyed this, don‘t forget to share your comments
and suggestions.

时间: 2024-08-26 13:10:54

CentOS 7 projectsend 如何设置文件共享工具的相关文章

【CentOS】CentOS Linux服务器安全设置

引言: 我们必须明白:最小的权限+最少的服务=最大的安全 所以,无论是配置任何服务器,我们都必须把不用的服务关闭.把系统权限设置到最小话,这样才能保证服务器最大的安全.下面是CentOS服务器安全设置,供大家参考.       系统运维  www.osyunwei.com  温馨提醒:qihang01原创内容版权所有,转载请注明出处及原文链接 http://wenku.baidu.com/link?url=KoXqwIPp76_QSaQRQPcSESFkpeWnGWZ1EaLX_NP5Kic7n

CentOS Linux服务器安全设置

一.注释掉系统不需要的用户和用户组注意:不建议直接删除,当你需要某个用户时,自己重新添加会很麻烦.   cp  /etc/passwd  /etc/passwdbak   #修改之前先备份   vi /etc/passwd  #编辑用户,在前面加上#注释掉此行 #adm:x:3:4:adm:/var/adm:/sbin/nologin#lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin#sync:x:5:0:sync:/sbin:/bin/sync#shutdown

CentOS中Python pip包管理工具的安装和使用

Python有很多第三方的模块或包,要管理这些包,有很多方法.python的pip包管理工具,类似与CentOS中yum,使用该工具安装Python包非常方便. 从Python内部来说,pip 是一个安装和管理 Python 包的工具 , 是 easy_install 的一个替换品.distribute是setuptools的取代(Setuptools包后期不再维护了),pip是easy_install的取代. pip的安装前需要setuptools 或者 distribute,如果你使用的是P

CentOS Linux 语言环境设置

程序运行使用一套语言需要有字符集(数据)和字体(显示),Locale是根据计算机用户所使用的语言,所在国家或者地区,以及当地的文化传统所定义的一个软件运行时的语言环境.一.locale详解在 Linux 中通过 locale 来设置程序运行的不同语言环境,locale 由 ANSI C 提供支持.locale 的命名规则为:<语言>_<地区>.<字符集编码>如:zh_CN.UTF-8,zh代表中文,CN代表大陆地区,UTF-8表示字符集.在locale环境中,有一组变量

centos 使用sshfs快速搭建文件共享服务

centos 使用sshfs快速搭建文件共享服务 看了很多教程都写的不够完整所以自己根据实际操作找遇到的坑共享一下给大家 共享文件服务器必须打开ssh服务器 实例:IP192.168.7.50 yum -y install epel-release # 安装epel 源码 yum -y install fuse-sshfs # 安装sshfs  sshfs -o allow_other,nonempty [email protected]:/opt/ /opt/http 指定密钥文件 sshfs

centos 下ssh的设置-(转自数据阶梯)

CentOS SSH配置 默认CentOS已经安装了OpenSSH,即使你是最小化安装也是如此.所以这里就不介绍OpenSSH的安装了. SSH配置: 1.修改vi /etc/ssh/sshd_config,根据模板将要修改的参数注释去掉并修改参数值: Port 22 指定SSH连接的端口号,安全方面不建议使用默认22端口 Protocol 2,1 允许SSH1和SSH2连接,建议设置成 Protocal 2 其他参数根据自己的需要进行调整.配置方法详见: man ssh_config 2.修改

Centos 7 安装后设置

1.宽带连接 终端: nm-connection-editor 添加:DSL 另外一篇:Centos7宽带连接 2.输入法设置 设置-->区域和语言--> + -->搜索chinese-->选择”汉语(Intelligent Pinyin)” 切换快捷键:设置-->键盘-->快捷键-->打字-->根据自己习惯设置 其他快捷键:设置-->键盘-->快捷键-->启动器 这是我的设置: 添加终端快捷键:自定义快捷键-->+ 不知道命令怎么填

centos ADSL 拨号上网设置

下面主要介绍一下,在CentOS命令行环境下如何配置 ADSL 联网: 1.确保安装了网卡并能正常运行,使用命令查看一下网卡状态: [[email protected] simon]# /sbin/ifconfig eth0 2.在系统中不要设置默认路由(网关),让 ADSL 拨号后自动获得. 3.查看是否安装了 pppoe 软件包. [[email protected] simon]# rpm -qa|grep ppp0e 没有显示,说明没有安装,系统光盘里会有这个安装包,或去下载一个 rpm

CentOS 7 需要安装的常用工具,及centos安装fcitx 搜狗输入法的坑旅

https://blog.csdn.net/tham_/article/details/41868831 Centos常用设置 1.当最大化时隐藏标题栏 或者使用tweak tool 在字体中将标题栏字体设置为0...建议这个方法. 2.添加epel源 yum -y --nogpgcheck install http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm 3 添加 elrepo 源