Installing nette framework on Ubuntu

How to Install and configure nette PHP framework in Ubuntu 16.04 ?
Nette PHP framework is one of the most popular PHP frameworks.It is getting more popularity worldwide. In SitePoint's  survey of 2015 Nette is listed as the 3rd most popular framework used for dynamic web development. Today I am going to install and configure Nette 2.4 PHP Framework on Ubuntu 16.04.

To install Nette 2.4 your server requires PHP version 5.6.0 or higher.
Step1.You can check your PHP version by typing below command.
php -version
If you are running PHP less than 5.6 then please upgrade to continue.
Here are Steps To Upgrade PHP version on Ubuntu 16.04
Step2. Checking composer is installed or not.
If it is not installed Kindly run below commands to install Composer Globally on server.
Installing composer globally on Ubuntu 16.04
Please run below commands to install composer.

  php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
  php -r "if (hash_file('SHA384', 'composer-setup.php') ==='669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410')
  { echo 'Installer verified'; } else{ echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
  php composer-setup.php
  php -r "unlink('composer-setup.php');"
 
 
Now move composer to your global executable directory using below command
   
   mv composer.phar /usr/local/bin/composer
   
  
Step 3:- Now download Nette in your public directory of server by typing below command
composer create-project nette/web-project nette-demo
Run below commands to change permissions of your folder

chown -R www-data:www-data nette-demo
chmod -R 755 nette-demo
Restart web service to take effect

sudo service apache2 restart
Now access it from the browser to check http://your-domain.com/nette-demo/www/
In my case I have installed nette in subdirectory of my website. Here is link
Nette Framework
Top Laravel interview Questions and answers

Comments

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. Nice post. Informatics content. This post really helps people.
    php interview questions

    ReplyDelete

Post a Comment