Host multiple projects in your localhost and access them with urls like
Use one of the following methods:
Except in the first case, you need to execute
Move the content of this project to /var/www
composer install. You must have composer installed.
config/devel.vhostto your apache sites directory, often
config/devel.tldto your dnsmasq config directory, usually
Restart apache and dnsmasq services
Optionally, you can add
$PATHso you don't need to write the full path every time.
$> export PATH=$PATH:/var/www/bin
Add the line below to your
~/.profileif you want the change to be permanent.
For the commands above I'm going to asume you've added
/var/www/bin to your
To get help from the command line, run:
Start managing a project running this command:
$> project-manager add
Then follow the instructions of the console. I suggest to run the command from the public directory of your project.
You can enable a managed project later with:
$> project-manager enable project-name
Now you're ready to browse to
Don't forget to restart your webserver after enabling virtual hosts.
You can disable an active project with the next call:
$> project-manager disable project-name
Or remove it from project management with:
$> project-manager remove project-name
Also, you can list all projects managed calling this command:
$> project-manager project:list $> project-manager project:list --type=enabled # Only enabled projects $> project-manager project:list --type=disabled # Only disabled projects
Easy, isn't it? ;)