Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
serverok committed Sep 25, 2020
1 parent b2bc165 commit f008b2b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ansible/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
1.yaml
servers.txt
inventory
test.yaml
test.yml
2 changes: 1 addition & 1 deletion ansible/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ phpMyAdmin install on nginx debian/Ubuntu

ansible-playbook -i servers.txt phpmyadmin.yaml


ansible-playbook -i inventory/cpanel-servers.txt update-cpanel-servers.yml
6 changes: 4 additions & 2 deletions ansible/ubuntu-20-apache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
- libapache2-mod-php7.3
- name: enable apache modules
command: a2enmod rewrite ssl php7.3
- name: disable mod_autoindex
command: a2dismod autoindex -f
- name: enable apache2 service
systemd:
name: apache2
Expand All @@ -68,7 +70,7 @@
- name: install mysql server
apt:
pkg:
- mysql-server
- mariadb-server
- name: enable mysql server
systemd:
name: mysql
Expand All @@ -93,4 +95,4 @@
- name: install automysqlbackup
apt:
name: automysqlbackup
state: present
state: present
2 changes: 2 additions & 0 deletions ansible/update-cpanel-servers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
tasks:
- name: update system
yum: name=* state=latest
- name: update cpanel
command: /scripts/upcp
2 changes: 1 addition & 1 deletion centos/readme-apache.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ vi /etc/httpd/conf.d/DOMAIN_NAME.conf
ServerAdmin info@DOMAIN_NAME
DocumentRoot /home/DOMAIN_NAME/html
<Directory "/home/DOMAIN_NAME/html">
Options All
Options All -Indexes
AllowOverride All
Require all granted
Order allow,deny
Expand Down
4 changes: 2 additions & 2 deletions install/phpmyadmin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ server {

vi /etc/apache2/conf-enabled/phpmyadmin.conf

Listen 8080
Listen 7777

<VirtualHost *:8080>
<VirtualHost *:7777>
DocumentRoot /usr/serverok/phpmyadmin/
CustomLog ${APACHE_LOG_DIR}/pma.log combined
<Directory "/usr/serverok/phpmyadmin">
Expand Down
3 changes: 2 additions & 1 deletion tools/fix-yum
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/python
# https://blog.hostonnet.com/python-script-to-update-yum
# Author: Yujin Boby
# Web: https://serverok.in

import subprocess
import os
Expand Down
2 changes: 1 addition & 1 deletion ubuntu/2-nginx-php74-mysql.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# Author: [email protected]
# Web: https://www.serverok.in
# Web: https://serverok.in

apt install -y software-properties-common

Expand Down

0 comments on commit f008b2b

Please sign in to comment.