https://wiki.uniformserver.com/index.php?title=Coral:_start_user_configuration&feed=atom&action=historyCoral: start user configuration - Revision history2024-03-29T06:41:56ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.uniformserver.com/index.php?title=Coral:_start_user_configuration&diff=6281&oldid=prevBobS: Emphasis changes2011-12-06T13:06:08Z<p>Emphasis changes</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">โ Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 13:06, 6 December 2011</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l104">Line 104:</td>
<td colspan="2" class="diff-lineno">Line 104:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><span style="padding:6px;background-color:#99FFFF"> UniServer\coral_con\config_menu\'''config_tracker.ini'''</span></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><span style="padding:6px;background-color:#99FFFF"> UniServer\coral_con\config_menu\'''config_tracker.ini'''</span></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker" data-marker="โ"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Locate this section in the configuration file and change line "www=" accordingly:</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Locate this section in the configuration file and change line <ins style="font-weight: bold; text-decoration: none;">'''</ins>"www="<ins style="font-weight: bold; text-decoration: none;">''' </ins>accordingly:</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l122">Line 122:</td>
<td colspan="2" class="diff-lineno">Line 122:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><span style="padding:6px;background-color:#99FFFF">UniServer\coral_con\config_menu\'''config_tracker.ini'''</span></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><span style="padding:6px;background-color:#99FFFF">UniServer\coral_con\config_menu\'''config_tracker.ini'''</span></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker" data-marker="โ"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Locate this section in the configuration file and change line "ssl=index.php" accordingly:</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Locate this section in the configuration file and change line <ins style="font-weight: bold; text-decoration: none;">'''</ins>"ssl=index.php"<ins style="font-weight: bold; text-decoration: none;">''' </ins>accordingly:</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td></tr>
</table>BobShttps://wiki.uniformserver.com/index.php?title=Coral:_start_user_configuration&diff=6162&oldid=prevRic: Created page with "<div id="top" style="margin:0;padding: 0px 0px 0px 5px; color: #000; background-color: #FFFFEB; border: 1px solid darkslateblue;"><span id="top" style="margin:0;padding: 0px;font..."2011-11-12T13:27:12Z<p>Created page with "<div id="top" style="margin:0;padding: 0px 0px 0px 5px; color: #000; background-color: #FFFFEB; border: 1px solid darkslateblue;"><span id="top" style="margin:0;padding: 0px;font..."</p>
<p><b>New page</b></p><div><div id="top" style="margin:0;padding: 0px 0px 0px 5px; color: #000; background-color: #FFFFEB; border: 1px solid darkslateblue;"><span id="top" style="margin:0;padding: 0px;font-size:12px">'''''Coral'' :'''&nbsp; [[Coral: start quick start|Quick Start]] | [[Coral: start quick start detail|Quick Start - More Detail]] | [[Coral: start user configuration|User Configuration]] | [[Coral: start run as program|Run as a program]] | [[Coral: start run as service|Run as a service]] | [[Coral: start server utilities|Server Utilities]] | [[Coral: start multi servers|Multi-Servers]]</span></div><br />
<br />
{|style="margin-top:5px;"<br />
|-valign="top"<br />
|<br />
<span style="margin-bottom:5px;font-size:25px;color: #31799F;">User Configuration</span><br />
<br />
The Uniform Server Coral uses a configuration file which is split into two sections: user defined configuration and server tracking. The server tracking section is automatically updated by UniController and should not be changed by a user. It tracks items such as the installation path and the current Apache and MySQL running status.<br />
<br />
This page covers the user defined configuration section. You can disable or enable the start up splash page and optionally set a new page to display. During start up, a user is nagged to change server security items such as the MySQL password. Nagging is enabled or disabled in this section. Two user buttons, www and ssl, have been pre-configured to display the root folder index pages; these can be re-configured to display specific pages. In addition each button text is changeable by setting a language file constant.<br />
<br />
__TOC__<br />
<br />
|<br />
{| cellpadding="0" cellspacing="0" style="margin-left:6px;margin-bottom:5px;padding-left:6px;padding-right:6px;font-size:11px;background-color: #FFFFEB;border: 1px solid darkslateblue;"<br />
|-<br />
|colspan="2" style="font-weight:bold;"| UniServer&nbsp;8-Coral<br />
|-<br />
|&nbsp;||[[Coral: Introduction|Home]]<br />
|-<br />
|<span style="font-size: 14px;">ยป</span>||[[Coral: start quick start|Quick Start]]<br />
|-<br />
|&nbsp;||[[Coral: general intro|General]]<br />
|-<br />
|&nbsp;||[[Coral: apache intro|Apache]]<br />
|-<br />
|&nbsp;||[[Coral: mysql intro|MySQL]]<br />
|-<br />
|&nbsp;||[[Coral: php intro|PHP]]<br />
|-<br />
|&nbsp;||[[Coral: msmtp intro|MSMTP]]<br />
|-<br />
|&nbsp;||[[Coral: cron intro|CRON]]<br />
|-<br />
|&nbsp;||[[Coral: dtdns intro|DtDNS]]<br />
|-<br />
|&nbsp;||[[Coral: dbbackup intro|Db Backup]]<br />
|-<br />
|&nbsp;||[[Coral: perl intro|Perl]]<br />
|-<br />
|&nbsp;||[[Coral: index main|Main Index]]<br />
|}<br />
|}<br />
<br />
==Splash Page==<br />
===Background===<br />
At start-up, the server displays a splash page confirming that it is working. It is only a single page mini web-site with associated image and css folders. This mini-site is in its own folder (UniServer\home\us_splash) and mapped as an alias. The folder contains an .htaccess file limiting access only to localhost.<br />
<br />
This mini web-site may be changed to fit your own requirements. Alternatively it can be disabled in the control configuration file as explained below. After that, it can be deleted, and the alias section removed from the configuration file.<br />
<br />
===Enable/Disable splash page===<br />
A single line in the control configuration file enables or disables the splash page at start-up. Edit file:<br />
<br />
<span style="padding:6px;background-color:#99FFFF">UniServer\coral_con\config_menu\config_tracker.ini</span><br />
<br />
Locate this section and change line '''start=true''' as appropriate :<br />
<br />
<pre><br />
[REDIRECT]<br />
;Redirect allows you to specify a page to display either<br />
;at startup or when www or ssl buttons pressed.<br />
;Folders can be an Alias eg us_splash. Root folder assumed <br />
;If no path or file specified root is assumed first index<br />
;page is displayed. No index page found the root folder<br />
;content is displayed.<br />
<br />
; Display page at start up. true display page false no page<br />
start=true<br />
</pre><br />
<br />
===Change Splash Page===<br />
After enabling the start-up splash page, you can set the specific page to be displayed. Locate this section in the configuration file and change the line '''display_page=us_splash/index.php''' accordingly:<br />
<br />
<pre><br />
; Page to display from folder alias us_splash <br />
; Default index.php<br />
display_page=us_splash/index.php<br />
</pre><br />
<br />
For example, if you want to display the index.php page in root folder www change line to: '''display_page=index.php'''<br />
<br />
'''Note 1:''' The default page displayed uses redirection and is constructed with the following format: '''<nowiki>http://localhost:80/display_page</nowiki>''' (display_page is the variable containing path/file to display.)<br />
<br />
'''Note 2:''' This part of the '''<nowiki>URL http://localhost:80/</nowiki>''' is automatically adjusted to match the server port configuration. <br />
<br />
'''''[[#top | Top]]'''''<br />
==User buttons www and ssl==<br />
{|<br />
|-valign="top"<br />
|<br />
Both server menus, initiated by start as program and start as service, contain two user configurable buttons:<br />
<br />
* '''B7)''' View www<br />
* '''B8)''' View ssl<br />
<br />
These have been pre-configured to display the root folder index pages. Their corresponding button text is defined in the language file<br />
|<br />
[[Image:Coral_start_menu_options.gif]]<br />
|}<br />
<br />
===Change www page===<br />
A single line in the control configuration file sets the page to be displayed. Edit file:<br />
<br />
<span style="padding:6px;background-color:#99FFFF"> UniServer\coral_con\config_menu\'''config_tracker.ini'''</span><br />
<br />
Locate this section in the configuration file and change line "www=" accordingly:<br />
<br />
<pre><br />
; Page to display from folder www when www button clicked<br />
; Default any index page. Note: http:// is used<br />
www=<br />
</pre><br />
For example, if you want to display the index.php page in root folder www change line to: www='''index.php'''<br />
<br />
'''Note 1:''' The page displayed uses redirection and is constructed with the following format: '''<nowiki>http://localhost:80/www</nowiki>''' (www is the variable containing path/file to display.)<br />
<br />
'''Note 2:''' This part of the URL '''<nowiki>http://localhost:80/</nowiki>''' is automatically adjusted to match server configuration. <br />
<br />
===Change ssl page===<br />
A single line in the control configuration file sets the page to be displayed. Edit file:<br />
<br />
<span style="padding:6px;background-color:#99FFFF">UniServer\coral_con\config_menu\'''config_tracker.ini'''</span><br />
<br />
Locate this section in the configuration file and change line "ssl=index.php" accordingly:<br />
<br />
<pre><br />
; Page to display from folder ssl when ssl button clicked<br />
; Default index.php Note: https:// is used<br />
ssl=index.php<br />
</pre><br />
<br />
For example, if you want to display the fred.html page in root folder ssl change line to: ssl='''fred.html'''<br />
<br />
'''Note 1:''' The page displayed uses redirection and is constructed with the following format: '''<nowiki>https://localhost:443/ssl</nowiki>''' (sll is the variable containing path/file to display.)<br />
<br />
'''Note 2:''' This part of the URL '''<nowiki>https://localhost:443/</nowiki>''' is automatically adjusted to match server configuration. <br />
<br />
===Change button names (www or ssl)===<br />
Button names are defined in the language configuration files. The actual file used is lang.vbs, but this is just a copy of the active language. When a language is selected with the Select Language button, that language file is copied to lang.vbs and replaces it.<br />
<br />
Currently there are two language files; other languages will be added as translations are made available.<br />
<br />
For English, edit: <br />
<br />
<span style="padding:6px;background-color:#99FFFF">UniServer\coral_con\lang\'''English.vbs'''</span><br />
<br />
Locate this section in the configuration file and change lines accordingly:<br />
<pre><br />
'******************************************************************************<br />
' User Configuration<br />
'******************************************************************************<br />
<br />
Const lang_view_www = "View www" 'User button text<br />
Const lang_view_ssl = "View ssl" 'User button text<br />
<br />
'-------------------------------------------------- End User Configuration ---<br />
</pre><br />
<br />
For example, if you want to change the displayed text "View www" to "My Index" and change "View ssl" to "Information", then the block becomes:<br />
<br />
<pre><br />
'******************************************************************************<br />
' User Configuration<br />
'******************************************************************************<br />
<br />
Const lang_view_www = "My Index" 'User button text<br />
Const lang_view_ssl = "Information" 'User button text<br />
<br />
'-------------------------------------------------- End User Configuration ---<br />
</pre><br />
<br />
'''Note:'''<br /><br />
To activate your change, you can either duplicate the change to lang.vbs or use the Select Language button, which will do the copy for you. <br />
<br />
'''''[[#top | Top]]'''''<br />
==Start-up - Nagging==<br />
I personally hate the concept of nagging users, hence the ability to turn it off when first encountered. That said, it is essential to set a new MySQL server root password, and nagging stresses the security issue.<br />
<br />
===Enable/Disable - Nagging===<br />
If you accidentally turn off nagging, it is easy to restore by editing the control configuration file.<br />
<br />
<span style="padding:6px;background-color:#99FFFF">UniServer\coral_con\config_menu\'''config_tracker.ini'''</span><br />
<br />
Search for this section:<br />
<br />
<pre><br />
[NAG]<br />
; Enables nagging to get user to change MYSQL password<br />
; Default true - nag user<br />
nag_user=false<br />
</pre><br />
<br />
Change the section as shown to reenable nagging:<br />
<br />
<pre><br />
[NAG]<br />
; Enables nagging to get user to change MYSQL password<br />
; Default true - nag user<br />
nag_user=true<br />
</pre><br />
<br />
'''''[[#top | Top]]'''''<br />
==Where to next==<br />
<br />
[[Coral: mysql change password|MySQL Change Restore password]] - Set new MySQL root password<br />
<br />
----<br />
<br />
[[Category: Uniform Server 8-Coral]]</div>Ric