@@ -25,31 +25,53 @@ 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!)
28+ Configure for Your Site URIs
29+ ============================
30+
31+ Open the **app/Config/App.php ** file with a text editor.
32+
33+ #. $baseURL
34+ Set your base URL to ``$baseURL ``. If you need more flexibility, the baseURL may
35+ be set within the :ref: `.env <dotenv-file >` file as ``app.baseURL = 'http://example.com/' ``.
36+ **Always use a trailing slash on your base URL! **
3237
3338 .. note :: If you don't set the ``baseURL`` correctly, in development mode,
3439 the debug toolbar may not load properly and web pages may take considerably
3540 longer to display.
3641
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.
42+ #. $indexPage
43+ If you don't want to include **index.php ** in your site URIs, set ``$indexPage `` to ``'' ``.
44+ The setting will be used when the framework generates your site URIs.
45+
46+ .. note :: You may need to configure your web server to access your site with a URL
47+ that does not contain **index.php **. See :ref: `CodeIgniter URLs <urls-remove-index-php >`.
48+
49+ Configure Database Connection Settings
50+ ======================================
51+
52+ If you intend to use a database, open the
53+ **app/Config/Database.php ** file with a text editor and set your
54+ database settings. Alternately, these could be set in your **.env ** file.
55+
56+ Set to Development Mode
57+ =======================
58+
59+ If it is not on the production server, set ``CI_ENVIRONMENT `` to ``development ``
60+ in **.env ** file to take advantage of the debugging tools provided. See
61+ :ref: `setting-development-mode ` for the detail.
62+
63+ .. important :: In production environments, you should disable error display and
64+ any other development-only functionality. In CodeIgniter, this can be done
65+ by setting the environment to "production". By default, the application will
66+ run using the "production" environment. See also :ref: `environment-constant `.
4367
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 `.
68+ Set Writable Folder Permission
69+ ==============================
4870
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.
71+ If you will be running your site using a web server (e.g., Apache or nginx ),
72+ you will need to modify the permissions for the **writable ** folder inside
73+ your project, so that it is writable by the user or account used by your
74+ web server.
5375
5476************************
5577Local Development Server
@@ -355,10 +377,10 @@ Setting Environment
355377See :ref: `Handling Multiple Environments <environment-apache >`.
356378
357379******************
358- Hosting with Nginx
380+ Hosting with nginx
359381******************
360382
361- Nginx is the second most widely used HTTP server for web hosting.
383+ nginx is the second most widely used HTTP server for web hosting.
362384Here you can find an example configuration using PHP 8.1 FPM (unix sockets) under Ubuntu Server.
363385
364386default.conf
0 commit comments