You can use an existing shell user if you wish. PHP apps on Opalstack are served from the app directory, so a symlink app is needed instead of a regular PHP application.Ĭreate a shell user if you have not done so already. Modern PHP web frameworks such as Laravel typically serve their content from a subdirectory of the project directory.
SYMBOLICLINKER APP FULL
In the Symbolic Link Path field, enter the full path to the directory that you want to serve, including the trailing slash.įor example, if your shell user is named myuser and you want to serve a directory named myfiles in the shell user's home directory, then you would enter /home/myuser/myfiles/ as the symlink path.Ĭlick the green "Create Application" button to save your new symlink app.Ĭomplete the setup by adding the symlink app to a site.Įxample: serving a Laravel project with a symlink app ¶ A "Symbolic Link Path" field will appear in the application form when you've selected a symlink app type. Nginx Static Symlink applications can serve static content directly from the front-end Nginx server.įollow our general instructions for adding applications and select either "PHP Apache Symlink" or "Nginx Static Symlink" as the application type in step 5.PHP Apache Symlink applications can serve PHP scripts (via CGI), CGI scripts, and static content via Opalstack's shared back-end Apache server proxied behind the front-end Nginx server.Symlink apps are available in two varieties: They work by creating a symlink pointing the desired directory. Symbolic link (aka "symlink") applications are used to serve web content from a directory other than the root directory of an application.