|
157.
|
|
|
Once you have <application>Apache</application> and <application>MySQL</application> packages installed, you are ready to install <application>Ruby on Rails</application> package.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1000(para)
|
|
158.
|
|
|
To install the <application>Ruby</application> base packages and <application>Ruby on Rails</application>, you can enter the following command in the terminal prompt:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1007(para)
|
|
159.
|
|
|
sudo apt install rails
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1013(command)
|
|
160.
|
|
|
Modify the <filename>/etc/apache2/sites-available/000-default.conf</filename> configuration file to setup your domains.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1019(para)
|
|
161.
|
|
|
The first thing to change is the <emphasis>DocumentRoot</emphasis> directive:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1023(para)
|
|
162.
|
|
|
DocumentRoot /path/to/rails/application/public
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1027(programlisting)
|
|
163.
|
|
|
Next, change the <Directory "/path/to/rails/application/public"> directive:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1030(para)
|
|
164.
|
|
|
<Directory "/path/to/rails/application/public">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
allow from all
AddHandler cgi-script .cgi
</Directory>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
<Directory "/шлях/до/програми/rails/public">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
allow from all
AddHandler cgi-script .cgi
</Directory>
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:1034(programlisting)
|
|
165.
|
|
|
You should also enable the <application>mod_rewrite</application> module for Apache. To enable <application>mod_rewrite</application> module, please enter the following command in a terminal prompt:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1044(para)
|
|
166.
|
|
|
sudo a2enmod rewrite
|
|
|
|
sudo a2enmod rewrite
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:1050(command)
|