change hostname on RHEL/CentOS 7/Almalinux 8/9
To change hostname on RHEL / Almalinux 8/9 hostnamectl set-hostname server.domain.com
To change hostname on RHEL / Almalinux 8/9 hostnamectl set-hostname server.domain.com
Anyone running a recent Linux distribution is probably already OK, because they get the curl libraries bundled in through their package managers and recent curl libraries come with the latest CA root certificate bundle from Mozilla.org. This means you can just turn CURLOPT_SSL_VERIFYPEER on and you won’t get any errors. For a PHP installation that
Login to your server as root. Install wp-cli as stated here: http://wp-cli.org/#installing After installing WP-CLI Open file: /etc/cagefs/conf.d/wp.cfg using: $ nano /etc/cagefs/conf.d/wp.cfg Add the following content to that file and save. [wp] comment=wp paths=/usr/local/bin/wp And then run: $ cagefsctl –force-update Now all users who have SSH access can use wp command.
First, login with root and install git yum install git Then apply: cagefsctl –addrpm git cagefsctl –force-update On this is done, the git application should be available correctly within CageFS for all users to utilise via SSH. source
How to remove p tags from wordpress post and page html. Open functions.php file located in your theme folder /wp-content/themes/THEME_NAME/functions.php Add this line anywhere in the file: remove_filter(‘the_content’, ‘wpautop’); // Remove p tags from posts and pages
To turn off windows update in windows 10 follow these steps: 1. Open Start menu, then click Settings (the gear icon on left corner) 2. On search bar, search for “Administrative Tools” and click on it. 3. Double-Click on “Services” 4. Look for a service called “Windows Update” and Right-click and “Properties”. 5. Change “Startup
Here is how to solve the WHM transfer tool failure error which contains: command-line: line 0: Bad configuration option: ControlPersist) To solve this error and be able to transfer websites from a remote server, apply this command: $ yum update openssh
Encryption is essential and security is priority. If you want to force your users to use HTTPS version of your website, you can use a small code to do this. Open .htaccess on your public_html folder or any sub-folder and add this code on top: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] change
Edit /etc/ssh/sshd_config $ nano /etc/ssh/sshd_config Look for: #Port 22 Change to any port number of your choice, for example, 1234 Port 1234 (remove # from the beginning and change 22 to 1234, make sure not to use a port number that’s already used by another service like 80,21,443,53,25 etc..) 2) Add the port number to the
Sometimes when you try to install git on CentOS it doesn’t continue and output this error Requires: libcurl.so.3()(64bit) First try to install libcurl by : $ yum install libcurl libcurl-devel Then try installing git again. If this doesn’t work, try installing git with this command:
Error when installing Git: Requires: libcurl.so.3()(64bit) Read More »