June 2017
Intermediate to advanced
536 pages
9h 49m
English
Assuming that we have a fresh Ubuntu 17.04 (Zesty Zapus) installation, installing the complete LAMP stack and Xdebug extension is easy via the following commands:
apt-get updateapt-get -y install lamp-server^apt-get -y install php-xdebugsudo service apache2 restart
Once this process is done, opening http://localhost/index.html in our browser should give us a default Apache page. Now, let's go ahead and do some permission changes:
sudo adduser user_name www-datasudo chown -R www-data:www-data /var/wwwsudo chmod -R g+rwX /var/www
Be sure to replace user_name with the name of the actual user on the system.
The reason for doing this permissions update is to make it possible for a user's NetBeans IDE to access the /var/www/html/ ...