Z controller File: Difference between revisions

From The Uniform Server Wiki
Jump to navigation Jump to search
(New page: {{Nav z controller}} '''File menu Introduction''' The File drop-down menu has nothing to do with files! Genially this is the first location a user checks, hence this menu contains most co...)
 
No edit summary
Line 1: Line 1:
=[http://isiqilujev.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
{{Nav z controller}}
{{Nav z controller}}
'''File menu Introduction'''
'''File menu Introduction'''
Line 4: Line 5:
The File drop-down menu has nothing to do with files! Genially this is the first location a user checks, hence this menu contains most commonly used server configurations.
The File drop-down menu has nothing to do with files! Genially this is the first location a user checks, hence this menu contains most commonly used server configurations.


{|cellpadding="6" cellspacing="1" style="background:#000000;"
{|cellpadding="6" cellspacing="1" style="background:#000000;"
|-style="background:#e8e8e8;"
|-style="background:#e8e8e8;"
|'''''Menu Item'''''||'''''Description'''''
|'''''Menu Item'''''||'''''Description'''''
|-valign="top" style="background:#f5f5f5;"
|-valign="top" style="background:#f5f5f5;"
|
|
* Put www On-Line             
* Put www On-Line             
Line 17: Line 18:


Clicking either of the four menu items opens a window confirming the selection. This window ([[#Passwords Htaccess On-line |'''Passwords Htaccess''']] On-line) also allows you to directly control all the features associated with accessing root folders. For example you can password protect these.
Clicking either of the four menu items opens a window confirming the selection. This window ([[#Passwords Htaccess On-line |'''Passwords Htaccess''']] On-line) also allows you to directly control all the features associated with accessing root folders. For example you can password protect these.
|- style="background:#f5f5f5;"
|- style="background:#f5f5f5;"
|
|
* [[#Apache Configuration | Apache Configuration]]
* [[#Apache Configuration | Apache Configuration]]
|
|
This menu item opens a window where you can change some common Apache parameters. It also provides direct access to the two Apache configuration files. After making a change you can check the syntax.
This menu item opens a window where you can change some common Apache parameters. It also provides direct access to the two Apache configuration files. After making a change you can check the syntax.
|- style="background:#f5f5f5;"
|- style="background:#f5f5f5;"
|
|
* [[#PHP Configuration |PHP Configuration]]
* [[#PHP Configuration |PHP Configuration]]
|
|
This menu item opens a window where you can change some common PHP parameters. It also provides direct access to the three PHP configuration files used in Uniform Server.
This menu item opens a window where you can change some common PHP parameters. It also provides direct access to the three PHP configuration files used in Uniform Server.
|- style="background:#f5f5f5;"
|- style="background:#f5f5f5;"
|
|
* Exit
* Exit
Line 39: Line 40:
Each root folder is protected by an htaccess file this allows you to enable public access or restrict access either locally or password protect them. Hence three common sections the following description is for root folder www however it applies to all three.
Each root folder is protected by an htaccess file this allows you to enable public access or restrict access either locally or password protect them. Hence three common sections the following description is for root folder www however it applies to all three.
{|
{|
|- valign="top"
|- valign="top"
|
|
=== Root Folder www ===
=== Root Folder www ===
Line 49: Line 50:
* Click the '''Change name password''' button this saves them to a file for latter use.
* Click the '''Change name password''' button this saves them to a file for latter use.
'''''Password protect root folder'':'''
'''''Password protect root folder'':'''
* Click first button on right. Toggles between '''Password Disabled''' and '''Password Enabled''' With "Password Enabled" you are required to enter a name and password to access the root folder.   
* Click first button on right. Toggles between '''Password Disabled''' and '''Password Enabled''' With "Password Enabled" you are required to enter a name and password to access the root folder.   
'''''On-line Access - Local Access'':'''  
'''''On-line Access - Local Access'':'''  
* Second button on right toggles between who can access the root folder. If password is enabled they are required to enter a name and password even if they are local or on-line.
* Second button on right toggles between who can access the root folder. If password is enabled they are required to enter a name and password even if they are local or on-line.
Line 66: Line 67:
This window provides access to some common Apache configuration parameters. Generally there is no need to change any of these  
This window provides access to some common Apache configuration parameters. Generally there is no need to change any of these  
{|
{|
|- valign="top"
|- valign="top"
|
|
*'''''Update Configuration''''' After making changes this button updates the Apache configuration file accordingly.
*'''''Update Configuration''''' After making changes this button updates the Apache configuration file accordingly.
Line 88: Line 89:
Any changes made to the current ini file do not become effective until the server is restarted. After making changes to either development or production use the update button to save changes. After saving changes you can switch the file into service remember this overwrites the current file. Again you need to restart the server for the changes to take effect.
Any changes made to the current ini file do not become effective until the server is restarted. After making changes to either development or production use the update button to save changes. After saving changes you can switch the file into service remember this overwrites the current file. Again you need to restart the server for the changes to take effect.
{|
{|
|- valign="top"
|- valign="top"
|
|
'''''Note'':''' Default Uniform Server has the production PHP configuration file switched in.
'''''Note'':''' Default Uniform Server has the production PHP configuration file switched in.
Line 114: Line 115:
== Short open tags ==
== Short open tags ==
=== Warning ===
=== Warning ===
* Do not use the short form '''<? ?>''' of PHP open tag.
* Do not use the short form '''&lt;? ?&gt;''' of PHP open tag.
* Always use the long form of PHP open tag '''<?php ?>'''
* Always use the long form of PHP open tag '''&lt;?php ?&gt;'''
* Always  switch short form open tags '''off''''
* Always  switch short form open tags '''off''''


Line 121: Line 122:


You can convert older scripts as follows
You can convert older scripts as follows
* Replace all occurrences of '''<? ?>''' with '''<?php ?>'''
* Replace all occurrences of '''&lt;? ?&gt;''' with '''&lt;?php ?&gt;'''
* Replace all occurrences of '''<?=''' with ''' <?php echo'''  
* Replace all occurrences of '''&lt;?=''' with ''' &lt;?php echo'''  


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''

Revision as of 01:04, 24 November 2010

Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly

 

Uniform Server 5.6-Nano.

File menu Introduction

The File drop-down menu has nothing to do with files! Genially this is the first location a user checks, hence this menu contains most commonly used server configurations.

Menu Item Description
  • Put www On-Line
  • Restrict www Local
  • Put ssl On-Line
  • Restrict ssl Local

I refer to putting the servers on-line this can be confusing! What it means is you are allowing external access (Intranet and Internet) to either the root folder UniServer\www or root folder UniServer\ssl. Restricting access means only the local machine has access to these roots folders.

Clicking either of the four menu items opens a window confirming the selection. This window (Passwords Htaccess On-line) also allows you to directly control all the features associated with accessing root folders. For example you can password protect these.

This menu item opens a window where you can change some common Apache parameters. It also provides direct access to the two Apache configuration files. After making a change you can check the syntax.

This menu item opens a window where you can change some common PHP parameters. It also provides direct access to the three PHP configuration files used in Uniform Server.

  • Exit

Closes the program

Top

Passwords Htaccess On-line

The first thing you will notice there is three root folders, should you wish you can put Apanel on-line.

Each root folder is protected by an htaccess file this allows you to enable public access or restrict access either locally or password protect them. Hence three common sections the following description is for root folder www however it applies to all three.

Root Folder www

Default Uniform Server is locked down allowing only local access. Password access is disabled.

Set a name and password:

  • In the name text box enter a name you wish to use.
  • In the password box enter a password you wish to use.
  • Click the Change name password button this saves them to a file for latter use.

Password protect root folder:

  • Click first button on right. Toggles between Password Disabled and Password Enabled With "Password Enabled" you are required to enter a name and password to access the root folder.

On-line Access - Local Access:

  • Second button on right toggles between who can access the root folder. If password is enabled they are required to enter a name and password even if they are local or on-line.

Test

  • Opens that root folder in your default browser. It allows you to check the configuration set.

Other buttons

  • E Button allows you to edit the htacces file directly
  • ? Provides detailed information

Related information 5.0-Nano: Security features

Top

Apache Configuration

This window provides access to some common Apache configuration parameters. Generally there is no need to change any of these

  • Update Configuration After making changes this button updates the Apache configuration file accordingly.

Note: Changes do not become effective until you restart the server.

  • Syntax Check After updating the configuration file run a syntax check. It will pick up any typos.
  • Edit httpd.conf Provides direct access to Apache’s main configuration file it opens this file in your default text editor.
  • Edit ssl.conf Provides direct access to Apache’s ssl configuration file it opens this file in your default text editor.
  • ? Provides detailed information for configuring

Top

PHP Configuration

Uniform server uses three configuration files for PHP. PHP loads and uses the current (php.ini) file this file is overwritten when either the development or production file is switch in. This allows you to easily swap between the two.

Access to the current configuration file is provided allowing you to experiment with parameters. If you kill the server switching in either development or production will get you backup and running.

Any changes made to the current ini file do not become effective until the server is restarted. After making changes to either development or production use the update button to save changes. After saving changes you can switch the file into service remember this overwrites the current file. Again you need to restart the server for the changes to take effect.

Note: Default Uniform Server has the production PHP configuration file switched in.

This window provides access to some common PHP configuration parameters. If a parameter is not listed you can edit a configuration file directly using the following buttons:

  • E-cur Allows you to edit the current configuration file. File is opened in your default text editor.
  • E-dev Allows you to edit the development configuration file. File is opened in your default text editor.
  • E-pro Allows you to edit the production configuration file. File is opened in your default text editor.

Current:

  • Update Updates the current.ini file.
  • Text indicator Displays what ini file was last switch in.

Development:

  • Update Updates the development .ini file.
  • Switch-dev Switches in the development configuration file overwriting the current file.

Production:

  • Update Updates the production .ini file.
  • Switch-pro Switches in the production configuration file overwriting the current file.
  • ? Provides detailed information

Top

Short open tags

Warning

  • Do not use the short form <? ?> of PHP open tag.
  • Always use the long form of PHP open tag <?php ?>
  • Always switch short form open tags off'

However older PHP scripts may use short open tags in order to test these you can change short form open tags to on after testing remember to switch back to full form tags.

You can convert older scripts as follows

  • Replace all occurrences of <? ?> with <?php ?>
  • Replace all occurrences of <?= with <?php echo

Top

Summary

The above provides access to some common server parameters that you may wish to change.

In particular, putting the server on-line and if required setting name password protection on the root folders.

The next page covers the Local drop down menu. This menu provides short cuts to Apache syntax check and switching PHP ini files. It also allows you to open the move servers window.

Top