CentOS 7Installation Post installation tasks Join Active Directory SELinux Configuration Install Cockpit Create a Logical Volume (1) Create a Logical Volume (2) Creating an iSCSI Target (1) Creating an iSCSI Target (2) Creating an iSCSI Client Installing a Samba Server Installing an Apache Server Installing an NFS Server Installing a TFTP Server Installing KVM/QEMU Hypervisor Compiling Bacula Backup (1) Compiling Bacula Backup (2)
Debian 8Installation Post installation tasks Join Active Directory Installing an Apache Server Installing a Samba Server
Ubuntu 16Post installation tasks Join Active Directory Installing Apache/Samba Servers
Linux Commandsfdisk + LVM htop vi - line numbering
Having up until now used WAMP for serving my web pages during the development stage, its a no brainer now that I have my linux server up and running, to use Apache with PHP and MariaDB, so here goes
Installed: httpd.x86_64 0:2.4.6-40.el7.centos.1 Dependency Installed: apr.x86_64 0:1.4.8-3.el7 apr-util.x86_64 0:1.5.2-6.el7 httpd-tools.x86_64 0:2.4.6-40.el7.centos.17 mailcap.noarch 0:2.1.41-2.el7 4.2.10-6.el7_2 @updates
and configure it, start by removing the welcome page
line 86: change admin's email address (for the moment I have simply put the following) ServerAdmin root@localhost line 95: server's name or ip address ServerName xx.xx.xx.xx:80 (if DNS is working use hostname:80) line 151: change AllowOverride All line 164: add file names that can be accessed DirectoryIndex index.html index.cgi index.php Go to end of file and add the following ServerTokens Prod KeepAlive On Save and quit file.
We must start and enable the program
Allow HTTP service through firewall and reload
We can now test if our setup is correct, if you already have a web page (index.html) copy it to /var/www/html/, if not we can create a page quickly with the following command and add the text in red
<html> <body> <div style="width: 100%; font-size: 36px; font-weight: bold; text-align: center;"> Apache ServerTest page </div> </body> </html>
enter your host name or ip address in in a client browser and if Apache Server Test Page is shown then the config is OK.
To make it a LAMP server we need to install PHP next
and restart httpd
We now have Linux Apache and PHP which makes LAP not LAMP so let us install MariaDB to complete our LAMP setup.
Do I need to say it? OK you must start and enable the mariadb service