![]() 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 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 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. Paste the following configuration in you new file then save and exit.All the configurations that you must perform to install Owncloud in CentOS. Now you have to make some change in Nginx configurations.Ĭreate a new config file using the following command: nano /etc/nginx/conf.d/nf Then find and uncomment the following lines: listen.owner = nobodyĪt last, find the two lines that refer to “user” and “group”, they are set with “Apache” by default you have to change the to “nginx” like below: user = nginx Open the following config file using your favorite text editor: nano /etc/php-fpm.d/and change it like below: listen = /var/run/php-fpm/php-fpm.sock Now we have to make Nginx and PHP-FPM work with each other. To start and make PHP-FPM and Nginx run as startup execute the following commands: systemctl enable nginx systemctl enable php-fpm systemctl start nginx systemctl start php-fpm Configuring Nginx and PHP-FPM Now we have to install PHP 5.6 with some dependencies: yum install php56w php56w-gd php56w-intl php56w-mbstring php56w-pdo php56w-process php56w-xml php56w-cli php56w-mcrypt php56w-fpm Start Nginx and PHP-FPM services Nginx can be installed easily using Yum: yum install nginx Run the following command to update your repositories lists: yum repolist Install and Configure Nginx and PHP ![]() You can install Webstatic with RPM package: rpm -Uvh You can easily install Epel via yum: yum install epel-release We are assuming that you have root permission, otherwise, you may start commands with “sudo”.Īs you might know, Laravel only works with PHP 5.6 and later so we have to add some repositories to install required version of PHP. ![]() In this guide, we will install Laravel on CentOS 7 and will be using Nginx as our web server and will be working with the most recent version of Laravel. Laravel is a powerful MVC PHP framework, designed for developers who need a simple and elegant toolkit to create full-featured web applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |