Category Archives: centOS

Centos 7 redirect http to https

<VirtualHost *:80> ServerName example.com Redirect “/” “https://example.com/” </VirtualHost>

Posted in apache, centOS | Comments Off on Centos 7 redirect http to https

resize diskspace instant machine ‘centOS’ on Google Cloud Platform

sudo yum -y install cloud-utils-growpart sudo growpart /dev/sda 1 sudo xfs_growfs /dev/sda1 df -h /dev/[DEVICE_ID]

Posted in apache, centOS | Comments Off on resize diskspace instant machine ‘centOS’ on Google Cloud Platform

Stumped by (13)Permission denied: file permissions deny server access ?

I was just pretty stumped by the following Apache error, in /var/log/httpd/error_log: [Thu Dec 08 21:53:28 2011] [error] [client 192.168.1.2] (13)Permission denied: file permissions deny server access: /var/www/html/aml/i ndex.html The error implies it’s a filesystem permissions issue, and the Apache … Continue reading

Posted in apache, centOS, command line of linux | Comments Off on Stumped by (13)Permission denied: file permissions deny server access ?

disable and enable firewall on centos

sudo systemctl disable firewalld sudo systemctl enable firewalld

Posted in centOS | Comments Off on disable and enable firewall on centos

How To Install the Apache Web Server on CentOS 7

Step 1 — Installing Apache Apache is available within CentOS’s default software repositories, which means you can install it with the yum package manager. As the non-root sudo user configured in the prerequisites, update the local Apache httpd package index … Continue reading

Posted in apache, centOS | Comments Off on How To Install the Apache Web Server on CentOS 7