How To Install Nette PHP Framework on CentOS 7

r00t January 26, 2016

nette-blue

In this tutorial we will show you how to install and configuration of Nette PHP Framework on your CentOS 7 server.  For those of you who didn’t know, Nette Framework is a popular tool for PHP web development It is designed to be as usable and as friendly as possible. It focuses on security and performance and is definitely one of the safest PHP frameworks. Nette Framework speaks your language and helps you to easily build better websites.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Nette PHP Framework in CentOS 7.

Install Nette PHP Framework on CentOS 7

Step 1. First we need to add EPEL repository in our system.

Step 2. Install LAMP server.

A CentOS 7 LAMP server is required. If you do not have LAMP installed, you can follow our guide here.

Step 3. Install Composer.

Download and install Composer by executing the following command:

Sample result:

Once the process completes, you can make the ‘composer.phar’ file executable by running the following command:

Now use the following commands to make composer available globally for all users in your system, which can be used for all php applications on that system:

Use following command to update it to latest version for composer:

You can also check the version of composer by running bellow command:

Step 4. Create Nette Application.

Let’s navigate to web document root and use composer to create a new nette application using following commands:

We will need to change some folders permissions:

Step 5. Access Nette Application.

At this stage you have successfully configured Nette framework on your localhost system. Open your favorite browser and navigate to  http://localhost/myapp/www/ and complete the required the steps to finish the installation.

Nette-PHP-Framework

Step 5. Configuring Apache web server for Nette.

We will create Apache virtual host for your Craft CMS website. First create ‘/etc/httpd/conf.d/vhosts.conf’ file with using a text editor of your choice:

Next, create the virtual host:

Add the following lines:

Save and close the file. Restart the apache service for the changes to take effects:

Congratulation’s! You have successfully installed Nette PHP Framework. Thanks for using this tutorial for installing Nette PHP Framework on your CentOS 7 system. For additional help or useful information, we recommend you to check the official Nette PHP Framework web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!
Share on Google+0Share on Facebook2Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon45Share on Reddit1Pin on Pinterest2

Leave a Comment