@@ -25,31 +25,44 @@ section of the User Guide to begin learning how to build dynamic PHP application
2525Initial Configuration
2626*********************
2727
28- #. Open the **app/Config/App.php ** file with a text editor and
29- set your base URL to ``$baseURL ``. If you need more flexibility, the baseURL may
30- be set within the :ref: `.env <dotenv-file >` file as ``app.baseURL = 'http://example.com/' ``.
31- (Always use a trailing slash on your base URL!)
32-
33- .. note :: If you don't set the ``baseURL`` correctly, in development mode,
34- the debug toolbar may not load properly and web pages may take considerably
35- longer to display.
36-
37- #. If you intend to use a database, open the
38- **app/Config/Database.php ** file with a text editor and set your
39- database settings. Alternately, these could be set in your **.env ** file.
40- #. If it is not on the production server, set ``CI_ENVIRONMENT `` to ``development ``
41- in **.env ** file to take advantage of the debugging tools provided. See
42- :ref: `setting-development-mode ` for the detail.
43-
44- .. important :: In production environments, you should disable error display and
45- any other development-only functionality. In CodeIgniter, this can be done
46- by setting the environment to "production". By default, the application will
47- run using the "production" environment. See also :ref: `environment-constant `.
48-
49- .. note :: If you will be running your site using a web server (e.g., Apache or Nginx),
50- you will need to modify the permissions for the **writable ** folder inside
51- your project, so that it is writable by the user or account used by your
52- web server.
28+ Setting the Base URL of Your Site
29+ =================================
30+
31+ Open the **app/Config/App.php ** file with a text editor and
32+ set your base URL to ``$baseURL ``. If you need more flexibility, the baseURL may
33+ be set within the :ref: `.env <dotenv-file >` file as ``app.baseURL = 'http://example.com/' ``.
34+ (Always use a trailing slash on your base URL!)
35+
36+ .. note :: If you don't set the ``baseURL`` correctly, in development mode,
37+ the debug toolbar may not load properly and web pages may take considerably
38+ longer to display.
39+
40+ Configure Database Connection Settings
41+ ======================================
42+
43+ If you intend to use a database, open the
44+ **app/Config/Database.php ** file with a text editor and set your
45+ database settings. Alternately, these could be set in your **.env ** file.
46+
47+ Setting to Development Mode
48+ ===========================
49+
50+ If it is not on the production server, set ``CI_ENVIRONMENT `` to ``development ``
51+ in **.env ** file to take advantage of the debugging tools provided. See
52+ :ref: `setting-development-mode ` for the detail.
53+
54+ .. important :: In production environments, you should disable error display and
55+ any other development-only functionality. In CodeIgniter, this can be done
56+ by setting the environment to "production". By default, the application will
57+ run using the "production" environment. See also :ref: `environment-constant `.
58+
59+ Setting Writable Folder Permission
60+ ==================================
61+
62+ If you will be running your site using a web server (e.g., Apache or Nginx),
63+ you will need to modify the permissions for the **writable ** folder inside
64+ your project, so that it is writable by the user or account used by your
65+ web server.
5366
5467************************
5568Local Development Server
0 commit comments