Skip to Content
Mastering PHP 7
book

Mastering PHP 7

by Branko Ajzele
June 2017
Intermediate to advanced
536 pages
9h 49m
English
Packt Publishing
Content preview from Mastering PHP 7

Installation

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/ ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning PHP 7

Learning PHP 7

Antonio L Zapata (GBP)
Upgrading to PHP 5

Upgrading to PHP 5

Adam Trachtenberg

Publisher Resources

ISBN: 9781785882814Supplemental Content