Skip to content

Commit b352160

Browse files
committed
docs: fix Section Headings marks
1 parent 19db8f7 commit b352160

1 file changed

Lines changed: 20 additions & 14 deletions

File tree

user_guide_src/source/installation/running.rst

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
################
12
Running Your App
23
################
34

@@ -20,8 +21,9 @@ section of the User Guide to begin learning how to build dynamic PHP application
2021

2122
.. _initial-configuration:
2223

24+
*********************
2325
Initial Configuration
24-
=====================
26+
*********************
2527

2628
#. Open the **app/Config/App.php** file with a text editor and
2729
set your base URL to ``$baseURL``. If you need more flexibility, the baseURL may
@@ -49,11 +51,12 @@ Initial Configuration
4951
your project, so that it is writable by the user or account used by your
5052
web server.
5153

54+
************************
5255
Local Development Server
53-
========================
56+
************************
5457

5558
CodeIgniter 4 comes with a local development server, leveraging PHP's built-in web server
56-
with CodeIgniter routing. You can launch it, with the following command line
59+
with CodeIgniter routing. You can launch it, with the following command line
5760
in the main directory::
5861

5962
> php spark serve
@@ -83,8 +86,9 @@ The local development server can be customized with three command line options:
8386

8487
> php spark serve --php /usr/bin/php7.6.5.4
8588

89+
*******************
8690
Hosting with Apache
87-
===================
91+
*******************
8892

8993
A CodeIgniter4 webapp is normally hosted on a web server.
9094
Apache HTTP Server is the "standard" platform, and assumed in much of our documentation.
@@ -93,7 +97,7 @@ Apache is bundled with many platforms, but can also be downloaded in a bundle
9397
with a database engine and PHP from `Bitnami <https://bitnami.com/stacks/infrastructure>`_.
9498

9599
.htaccess
96-
---------
100+
=========
97101

98102
The "mod_rewrite" module enables URLs without "index.php" in them, and is assumed
99103
in our user guide.
@@ -113,12 +117,12 @@ in the ``AllowOverride`` setting::
113117
</Directory>
114118

115119
Removing the index.php
116-
----------------------
120+
======================
117121

118122
See :ref:`CodeIgniter URLs <urls-remove-index-php-apache>`.
119123

120124
Virtual Hosting
121-
---------------
125+
===============
122126

123127
We recommend using "virtual hosting" to run your apps.
124128
You can set up different aliases for each of the apps you work on,
@@ -148,7 +152,7 @@ If your project folder is not a subfolder of the Apache document root, then your
148152
``<VirtualHost>`` element may need a nested ``<Directory>`` element to grant the web server access to the files.
149153

150154
With mod_userdir (Shared Hosts)
151-
--------------------------------
155+
===============================
152156

153157
A common practice in shared hosting environments is to use the Apache module "mod_userdir" to enable per-user Virtual Hosts automatically. Additional configuration is required to allow CodeIgniter4 to be run from these per-user directories.
154158

@@ -214,25 +218,26 @@ Be sure to specify options and permissions for the CodeIgniter public directory
214218
</IfModule>
215219

216220
Setting Environment
217-
-------------------
221+
===================
218222

219223
See :ref:`Handling Multiple Environments <environment-apache>`.
220224

221225
Testing
222-
-------
226+
=======
223227

224228
With the above configuration, your webapp would be accessed with the URL **http://myproject.local/** in your browser.
225229

226230
Apache needs to be restarted whenever you change its configuration.
227231

232+
******************
228233
Hosting with Nginx
229-
==================
234+
******************
230235

231236
Nginx is the second most widely used HTTP server for web hosting.
232237
Here you can find an example configuration using PHP 8.1 FPM (unix sockets) under Ubuntu Server.
233238

234239
default.conf
235-
------------
240+
============
236241

237242
This configuration enables URLs without "index.php" in them and using CodeIgniter's "404 - File Not Found" for URLs ending with ".php".
238243

@@ -269,12 +274,13 @@ This configuration enables URLs without "index.php" in them and using CodeIgnite
269274
}
270275
271276
Setting Environment
272-
-------------------
277+
===================
273278

274279
See :ref:`Handling Multiple Environments <environment-nginx>`.
275280

281+
*********************
276282
Bootstrapping the App
277-
=====================
283+
*********************
278284

279285
In some scenarios you will want to load the framework without actually running the whole
280286
application. This is particularly useful for unit testing your project, but may also be

0 commit comments

Comments
 (0)