Getting Started
Atom Framework Basic Structure/Operations
Public Directory
After installing Atom, you should configure your web server's document / web root to be the public directory. The index.php in this directory serves as the front controller for all HTTP requests entering your application.
Configuration Files
All of the configuration files for the Atom framework are stored in the config
directory.
This files contains the configurations for the authentication logic.
Application Key
The next thing you should do after installing Atom is set your application key to a random string. Typically, this string should be 32 characters long. The key can be set in the env.json configuration file. If you have not renamed the env.example.json file to env.json, you should do that now.
If the application key is not set, your user sessions and other encrypted data will not be secure!
To set your application key, run the following command
This command will also regenerate your env.json
file if the environment configuration is invalid.
Web Server Configuration
Apache
Atom includes a public/.htaccess file that is used to provide URLs without the index.php front controller in the path. Before serving Atom with Apache, be sure to enable the mod_rewrite module so the .htaccess file will be honored by the server.\n If the .htaccess
file that ships with Atom does not work with your Apache installation, try this alternative:
Nginx
Dernière mise à jour
Cet article vous a-t-il été utile ?