01:05:00
TSDK-066 1. Log in to the server via SSH.
2. Open the configuration file:
```
sudo vi /etc/httpd/conf/httpd.conf
```
3. Find the `ServerRoot` directive and change it to `/etc/httpd/test`:
```
<ServerRoot /etc/httpd/test>
```
4. Save and exit the file (press `Esc` then `:wq`). Restart Apache to apply the changes:
```
sudo systemctl restart httpd
```
5. Check that the service is running:
```
sudo systemctl status httpd
```
`To revert changes, reverse the configuration and restart the service.`
Procedures for Step 1 CLI:
1. In the Chrome browser, navigate to the [Gateway site](https://$ipaddress/auth/).
2. On the top-right of the screen, click the "Log In" button.
3. 1. Log in to the server via SSH:
To log in to the server via SSH, follow these steps:
1. Open the terminal or command line interface on your computer.
2. Use the `ssh` command to connect to the server. Replace `username` with your actual username and `server_address` with the server's IP address or domain name:
```
ssh username@server_address
```
3. When prompted, enter your password to complete the login process.
Procedures for Step 2 CLI:
2. Open the configuration file:
To open the configuration file, follow these steps:
1. Use the `sudo` command to access root privileges. Replace `location_of_file` with the actual path of the configuration file:
```
sudo vi /etc/httpd/conf/httpd.conf
```
2. The file will open in the `vi` editor. You can now edit the configuration settings as needed.
Procedures for Step 3 CLI:
3. Find the `ServerRoot` directive and change it to `/etc/httpd/`:
To find and modify the `ServerRoot` directive, follow these steps:
1. Use the `search` command by pressing `/` and type `ServerRoot` to locate the directive:
```
/ServerRoot
```
2. Press `Enter` to find the directive. Once located, press `i` to enter edit mode.
3. Modify the directive to `/etc/httpd/`:
```
<ServerRoot /etc/httpd/>
```
4. Save the changes by pressing `Esc` then `:wq`.
Procedures for Step 4 CLI:
4. Save and exit the file (press `Esc` then `:wq`). Restart Apache to apply the changes:
```
sudo systemctl restart httpd
```
Procedures for Step 5 CLI:
5. To check that the service is running, use the command:
```
sudo systemctl status httpd
```
`To revert changes, reverse the configuration and restart the service.`
Procedures for Step 1 GUI:
1. In the Chrome browser, navigate to the [Gateway site](https://$ipaddress/auth/).
2. On the top-right of the screen, click the "Log In" button.
3. Click the "Register" button to create an a account.
4. Click the "Log In" button to log in to Gateway.
Procedures for Step 2 GUI:
2. Open the configuration file:
To open the configuration file, follow these steps:
1. Log in to the server via SSH.
2. Use the `cd` command to navigate to the `/etc/httpd/conf` directory:
```
cd /etc/httpd/conf
```
3. Use the `vi` command to open the `httpd.conf` file:
```
vi httpd.conf
```
Procedures for Step 3 GUI:
3. Find the `ServerRoot` directive and change it to `/etc/http/`:
To find and modify the `ServerRoot` directive, follow these steps:
1. Use the `search` command by pressing `/` and type `ServerRoot` to locate the directive:
```
/ServerRoot
```
2. Press `Enter` to find the directive. Once located, press `i` to enter edit mode.
3. Modify the directive to `/etc/http/`:
```
<ServerRoot /etc/http/>
```
4. Save the changes by pressing `Esc` then `:wq`.
Procedures for Step 4 GUI:
4. Save and exit the file (press `Esc` then `:wq`). Restart Apache to apply the changes:
```
sudo systemctl restart httpd
```
Procedures for Step 5 GUI:
5. To check that the service is running use the command:
```
sudo systemctl status httpd
```
`To revert changes, reverse the configuration and restart the service.`
Procedures for step 1 CLI:
1. Log in to the server via SSH:
To log in to the server via SSH, follow these steps:
1. Open the terminal or command line interface on your computer.
2. Use the `ssh` command to connect to the server. Replace `username` with your actual username and `server_address` with the server's IP address or domain name:
```
ssh username@server_address
```
3. When prompted, enter your password to complete the login process.
Procedures for step 2 CLI:
2. Open the configuration file:
To open the configuration file, follow these steps:
1. Use the `cd` command to navigate to `/etc/httpd/conf`:
```
cd /etc/httpd/conf
```
2. Use the `vi` command to open the file:
```
vi httpd.conf
```
Procedures for Step 3 CLI:
3. Find the `ServerRoot` directive and change it to `/etc/http/`:
To find and modify the `ServerRoot` directive, follow these steps:
1. Use the `search` command by pressing `/` and type `ServerRoot` to locate the directive:
```
/ServerRoot
```
2. Press `Enter` to find the directive. Once located, press `i` to enter edit mode.
3. Modify the directive to `/etc/http/`:
```
<ServerRoot /etc/http/>
```
4. Save the changes by pressing `Esc` then `:wq`.
Procedures for Step 4 CLI:
4. Save and exit the file (press `Esc` then `:wq`). Restart Apache to apply the changes:
```
sudo systemctl restart httpd
`
Procedures for Step 5 CLI:
5. To check that the service is running, use the command:
```
sudo systemctl status httpd
```
`To revert changes, reverse the configuration and restart the service.`
Procedures for Step 1 GUI:
1. In the Chrome browser, navigate to the [Gateway site](https://$ipaddress/auth/).
2. On the top-right of the screen, click the "Log In" button.
3. Click the "Register" button to create an a account.
4. Click the "Log In" button to log in to Gateway.
Procedures for Step 2 GUI:
2. Open the configuration file:
To open the configuration file, follow these steps:
1. Log in to the server via SSH.
2. Use the `cd` command to navigate to `/etc/httpd/conf`:
```
cd /etc/httpd/conf
```
3. Use the `vi` command to open the `httpd.conf` file:
```
vi httpd.conf
```
Procedures for step 3 GUI:
3. Find the `ServerRoot` directive and change it to `/etc/http/`:
To find and modify the `ServerRoot` directive, follow these steps:
1. Use the `search` command by pressing `/` and type `ServerRoot` to locate the directive:
```
/ServerRoot
```
2. Press `Enter` to find the directive. Once located, press `i` to enter edit mode.
3. Modify the directive to `/etc/http/`:
```
<ServerRoot /etc/http/>
```
4. Save the changes by pressing `Esc` then `:wq`.
Procedures for Step 4 GUI:
4. Save and exit the file (press `Esc` then `:wq`). Restart Apache to apply the changes:
```
sudo systemctl restart httpd
`
Procedures for Step 5 CLI:
5. To check that the service is running use the command:
```
sudo systemctl status httpd
```
`To revert changes, reverse the configuration and restart the service. `
12月21日2017年