Skip to content

Commit 8d175b2

Browse files
committed
docs: fix text decoration
1 parent a14c229 commit 8d175b2

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

user_guide_src/source/installation/running.rst

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Initial Configuration
4545
run using the "production" environment. See also :ref:`environment-constant`.
4646

4747
.. note:: If you will be running your site using a web server (e.g., Apache or Nginx),
48-
you will need to modify the permissions for the ``writable`` folder inside
48+
you will need to modify the permissions for the **writable** folder inside
4949
your project, so that it is writable by the user or account used by your
5050
web server.
5151

@@ -64,8 +64,8 @@ This will launch the server and you can now view your application in your browse
6464
be used on a production server.
6565

6666
If you need to run the site on a host other than simply localhost, you'll first need to add the host
67-
to your ``hosts`` file. The exact location of the file varies in each of the main operating systems, though
68-
all unix-type systems (include OS X) will typically keep the file at **/etc/hosts**.
67+
to your **hosts** file. The exact location of the file varies in each of the main operating systems, though
68+
all unix-type systems (include macOS) will typically keep the file at **/etc/hosts**.
6969

7070
The local development server can be customized with three command line options:
7171

@@ -99,12 +99,12 @@ The "mod_rewrite" module enables URLs without "index.php" in them, and is assume
9999
in our user guide.
100100

101101
Make sure that the rewrite module is enabled (uncommented) in the main
102-
configuration file, e.g., ``apache2/conf/httpd.conf``::
102+
configuration file, e.g., **apache2/conf/httpd.conf**::
103103

104104
LoadModule rewrite_module modules/mod_rewrite.so
105105

106-
Also make sure that the default document root's <Directory> element enables this too,
107-
in the "AllowOverride" setting::
106+
Also make sure that the default document root's ``<Directory>`` element enables this too,
107+
in the ``AllowOverride`` setting::
108108

109109
<Directory "/opt/lamp/apache2/htdocs">
110110
Options Indexes FollowSymLinks
@@ -124,18 +124,18 @@ We recommend using "virtual hosting" to run your apps.
124124
You can set up different aliases for each of the apps you work on,
125125

126126
Make sure that the virtual hosting module is enabled (uncommented) in the main
127-
configuration file, e.g., ``apache2/conf/httpd.conf``::
127+
configuration file, e.g., **apache2/conf/httpd.conf**::
128128

129129
LoadModule vhost_alias_module modules/mod_vhost_alias.so
130130

131-
Add a host alias in your "hosts" file, typically ``/etc/hosts`` on unix-type platforms,
132-
or ``c:/Windows/System32/drivers/etc/hosts`` on Windows.
133-
Add a line to the file. This could be "myproject.local" or "myproject.test", for instance::
131+
Add a host alias in your "hosts" file, typically **/etc/hosts** on unix-type platforms,
132+
or **c:/Windows/System32/drivers/etc/hosts** on Windows.
133+
Add a line to the file. This could be ``myproject.local`` or ``myproject.test``, for instance::
134134

135135
127.0.0.1 myproject.local
136136

137-
Add a <VirtualHost> element for your webapp inside the virtual hosting configuration,
138-
e.g., ``apache2/conf/extra/httpd-vhost.conf``::
137+
Add a ``<VirtualHost>`` element for your webapp inside the virtual hosting configuration,
138+
e.g., **apache2/conf/extra/httpd-vhost.conf**::
139139

140140
<VirtualHost *:80>
141141
DocumentRoot "/opt/lamp/apache2/htdocs/myproject/public"
@@ -145,26 +145,26 @@ e.g., ``apache2/conf/extra/httpd-vhost.conf``::
145145
</VirtualHost>
146146

147147
If your project folder is not a subfolder of the Apache document root, then your
148-
<VirtualHost> element may need a nested <Directory> element to grant the web server access to the files.
148+
``<VirtualHost>`` element may need a nested ``<Directory>`` element to grant the web server access to the files.
149149

150-
With mod_userdir (shared hosts)
150+
With mod_userdir (Shared Hosts)
151151
--------------------------------
152152

153153
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.
154154

155155
The following assumes that the server is already configured for mod_userdir. A guide to enabling this module is available `in the Apache documentation <https://httpd.apache.org/docs/2.4/howto/public_html.html>`_.
156156

157-
Because CodeIgniter4 expects the server to find the framework front controller at ``/public/index.php`` by default, you must specify this location as an alternative to search for the request (even if CodeIgniter4 is installed within the per-user web directory).
157+
Because CodeIgniter4 expects the server to find the framework front controller at **public/index.php** by default, you must specify this location as an alternative to search for the request (even if CodeIgniter4 is installed within the per-user web directory).
158158

159-
The default user web directory ``~/public_html`` is specified by the ``UserDir`` directive, typically in ``/apache2/mods-available/userdir.conf`` or ``/apache2/conf/extra/httpd-userdir.conf``::
159+
The default user web directory **~/public_html** is specified by the ``UserDir`` directive, typically in **apache2/mods-available/userdir.conf** or **apache2/conf/extra/httpd-userdir.conf**::
160160

161161
UserDir public_html
162162

163163
So you will need to configure Apache to look for CodeIgniter's public directory first before trying to serve the default::
164164

165165
UserDir "public_html/public" "public_html"
166166

167-
Be sure to specify options and permissions for the CodeIgniter public directory as well. A ``userdir.conf`` might look like::
167+
Be sure to specify options and permissions for the CodeIgniter public directory as well. A **userdir.conf** might look like::
168168

169169
<IfModule mod_userdir.c>
170170
UserDir "public_html/public" "public_html"
@@ -221,7 +221,7 @@ See :ref:`Handling Multiple Environments <environment-apache>`.
221221
Testing
222222
-------
223223

224-
With the above configuration, your webapp would be accessed with the URL ``http://myproject.local`` in your browser.
224+
With the above configuration, your webapp would be accessed with the URL **http://myproject.local/** in your browser.
225225

226226
Apache needs to be restarted whenever you change its configuration.
227227

@@ -279,7 +279,7 @@ Bootstrapping the App
279279
In some scenarios you will want to load the framework without actually running the whole
280280
application. This is particularly useful for unit testing your project, but may also be
281281
handy for using third-party tools to analyze and modify your code. The framework comes
282-
with a separate bootstrap script specifically for this scenario: ``system/Test/bootstrap.php``.
282+
with a separate bootstrap script specifically for this scenario: **system/Test/bootstrap.php**.
283283

284284
Most of the paths to your project are defined during the bootstrap process. You may use
285285
pre-defined constants to override these, but when using the defaults be sure that your

0 commit comments

Comments
 (0)