Tag: configuration


Create custom configuration files in CakePHP 3

1. Create new file into folder config/ 2. Name it whatever you like: myconf.php 3. Add your code: return [ /* * my configuration */ ‘myconf’ => [ ‘setting_1’ => ‘value_1’, ‘setting_2’ => ‘value_2’, ‘setting_3’ => ‘value_3’, ], ];return [ /* * my configuration */ ‘myconf’ => [ ‘setting_1’ => ‘value_1’, ‘setting_2’ => ‘value_2’, ‘setting_3’ …


OpenVpn Client Configuration

1) Connect to your Server with sftp. I prefer winscp. 2) Download /etc/openvpn/easy-rsa/2.0/keys/ca.crt. 3) Download /etc/openvpn/easy-rsa/2.0/keys/client.crt. 4) Download /etc/openvpn/easy-rsa/2.0/keys/client.csr. 5) Download /etc/openvpn/easy-rsa/2.0/keys/client.key. 6) Download /usr/share/doc/openvpn-x.x.x/sample/sample-config-files/client.conf. 7) Rename client.conf to client.ovpn. 8) Change remote my-server-1 1104 line to remote server_ip_address port_number. 9) Copy all files to OpenVPN config folder.

Information, Microsoft Servers, Microsoft Windows

Detailed Computer & OS configuration information

systeminfo displays detailed configuration information about a computer and its operating system, including operating system configuration, security information, product ID, and hardware properties, such as RAM, disk space, and network cards. Parameters /s   Computer   : Specifies the name or IP address of a remote computer (do not use backslashes). The default is the …


How to create a basic configuration on a Fortigate

Let’s see some useful command on a fortigate firewall. Assuming that you have a Fortinet Fortigate device, your local ip address is in the range of and you have a router with a public IP address and a public subnet config system global # Set the http admin port to 80/tcp set …

Apache, PHP, Programming

Set PHP configuration options in Apache using directives

Apache directives to change the PHP configuration: php_value name value Sets the value of the specified directive. php_flag name on|off Sets a boolean configuration directive. php_admin_value name value Sets the value of the specified directive. This can not be used in .htaccess files. php_admin_flag name on|off Used to set a boolean configuration directive. This can …


Securing php configuration for production mode

To follow the tips below you have to locate your php.ini file in your system and keep a backup first. A common place for php.ini file in linux is: /etc/php5/apache2/ 1. Enable safe mode Locate line: safe_mode = Off and change it to safe_mode = On By enabling safe_mode, PHP scripts are able to access …

Apache, Linux

Securing Apache Part 1

The following tips are things you can do to make your apache server more secure. Before you begin to follow the tips below, locate your apache’s configuration files first. Common places for apache’s configuration files are: /etc/apache2/apache2.conf, /etc/apache2/httpd.conf and /etc/apache2/sites-enabled/000-default. Before you make any changes, MAKE BACKUP COPIES OF YOUR FILES. Here we go: 1. …