portmeister.blogg.se

Enable webtatic php fpm
Enable webtatic php fpm








enable webtatic php fpm
  1. #ENABLE WEBTATIC PHP FPM INSTALL#
  2. #ENABLE WEBTATIC PHP FPM SOFTWARE#
  3. #ENABLE WEBTATIC PHP FPM PASSWORD#
  4. #ENABLE WEBTATIC PHP FPM SERIES#
  5. #ENABLE WEBTATIC PHP FPM DOWNLOAD#

#ENABLE WEBTATIC PHP FPM DOWNLOAD#

Now, we will go to the /tmp directory and download the latest version of OwnCloud by executing the following: cd /tmp

#ENABLE WEBTATIC PHP FPM INSTALL#

We are going to download OwnCloud using the wget command, so first, it will be necessary to install the wget package in the following way: yum -y install wget unzip We proceed to modify the permissions of the said directory: chmod 600 /etc/nginx/cert/* Step 5: Download OwnCloud

#ENABLE WEBTATIC PHP FPM SERIES#

Next, we generate the certificate using the OpenSSL command like this: openssl req -new -x509 -days 365 -nodes -out /etc/nginx/cert/owncloud.crt -keyout /etc/nginx/cert/owncloud.keyĪs we see, there will be necessary to enter a series of values: It is possible to use a free SSL certificate to encrypt the connection and thus ensure a higher level of access security.įirst, we will create a new directory for the SSL file: mkdir -p /etc/nginx/cert/ Once we access the Shell, we will run each of these lines in their order: create database owncloud_db Ĭreate user identified by all privileges on owncloud_db.* to owncloud identified by privileges Step 4: Create Linux Self-signed SSL Certificate

#ENABLE WEBTATIC PHP FPM PASSWORD#

We are going to create a new database called owncloud_db, with the user owncloud user and with the password but naturally, we can define the desired names.įor this, we will execute the following command and enter the assigned password of MariaDB: mysql -u root -p With this, we have established the root password of MariaDB, and now it will be possible to log in to the MySQL shell to create a new database and user for OwnCloud. There we will answer the following questions like this: Set root password? YNew password: Then, we secure the installation by executing the following: mysql_secure_installation Once the process of installing MariaDB is finished, we will start the service with the following command: systemctl start mariadb This database can be installed with the mariadb-server package from the CentOS repository as follows: yum -y install mariadb mariadb-server The OwnCloud utility supports the PostgreSQL and MySQL databases we will use MariaDB for the OwnCloud database. Sudo systemctl enable nginx Step 3: Install & Configure MariaDB Likewise, we will initiate the services of PHP and NGINX, together with their activation at startup, with the following commands: sudo systemctl start php-fpm Now, we will create a new directory for the login in the /var/lib/directory and modify the owner to the user nginx executing the following: mkdir -p /var/lib/php/sessionĬhown nginx:nginx -R /var/lib/php/session/ Once this is done, save the file using the Ctrl + O keys and exit it using Ctrl + X. On lines 366 to 370, we must uncomment the following lines: env = $HOSTNAME In lines 8 and 10 we establish the following: user = nginx Once we enter this file we will make the following changes: We must edit the PHP7-FPM default configuration with our desired editor like this: nano /etc/php-fpm.d/www.conf Now, we are going to configure PHP7-FPM to be executed with NGINX, PHP7-FPM will run under the nginx user and will listen on port 9000. Once this process is finished, we will verify the PHP version with the following command: php -v

enable webtatic php fpm

Now, we are going to install PHP7-FPM with some additional packages in the following way: yum -y install php70w-fpm php70w-cli php70w-gd php70w-mcrypt php70w-mysql php70w-pear php70w-xml php70w-mbstring php70w-pdo php70w-json Now it will be necessary to add another repository for PHP7-FPM. And for this we will install the webtatic repository as follows: rpm -Uvh Now, we can install NGINX by running the following command: yum -y install nginx To install it, we will execute the following command: yum -y install epel-release

#ENABLE WEBTATIC PHP FPM SOFTWARE#

Step 1: Install Nginx & PHP7-FPMīefore installing Nginx and PHP7-FPM, it is necessary to add the EPEL repository which contains additional software that is not available in the CentOS base repository. OwnCloud facilitates the secure exchange of business files, which are stored on the company's servers, thus promoting the integration of the IT infrastructure that we administer. OwnCloud is an open platform that offers higher productivity and security in the digital collaboration of organizations. All the configurations that you must perform to install Owncloud in CentOS.










Enable webtatic php fpm