This example will use photon cli to install Photon CMS from within the Devilbox PHP container.

After completing the below listed steps, you will have a working Photon CMS setup ready to be served via http and https.

Table of Contents

The following configuration will be used:

It will be ready in six simple steps:

Enter the PHP container Create a new VirtualHost directory Install Photon Symlink webroot directory Setup DNS record Visit http://my-photon.loc in your browser

2. Create new vhost directory¶ The vhost directory defines the name under which your project will be available.

( <vhost dir>.TLD_SUFFIX will be the final URL ). devilbox@php-7.0.20 in /shared/httpd $ mkdir my-photon See also TLD_SUFFIX

3. Install Photon¶ Navigate into your newly created vhost directory and install Photom CMS with photon cli. Note During the installation you will be asked for the MySQL hostname, username and password. Ensure not to specify localhost , but instead use 127.0.0.1 for the hostname. Additionally, provide a pair of credentials that has permissions to create a database or create the database itself beforehand. devilbox@php-7.0.20 in /shared/httpd $ cd my-photon devilbox@php-7.0.20 in /shared/httpd/my-photon $ photon new blog ...What is your mysql hostname? [ localhost ] 127 .0.0.1 ...What is your mysql username? [ root ] root ...What is your mysql password? [] How does the directory structure look after installation: devilbox@php-7.0.20 in /shared/httpd/my-photon $ tree -L 1 . └── blog 1 directory, 0 files