Setup Apache + PHP Per User Directory

Installing PHP 5.x

Enable Apache Rewrite and Userdir Module

Edit Apache userdir configuration

Full config look’s like this :

Enable Userdir for PHP5

Create configuration like this :

Create a new user

Grant permission

Create Virtual host for John’s

Enable Apache virtual host

Restart Apache Configuration

Test a new site

open your web browser and navigate to, if you’re successfull default apache2 will be show on your browser! Okay that’s its.

Leave a Reply

Your email address will not be published. Required fields are marked *