1.1. ezhost.ServerAbstract

class ezhost.ServerAbstract.ServerAbstract[source]

Server abstract class, all server should extend from it

apache_dir_index

Currently, if a user requests a directory from the server, Apache will first look for a file called index.html. We want to tell our web server to prefer PHP files, so we’ll make Apache look for an index.php file first.

apache_web_dir

default apache project dir

command_path

Currently command path

django_uwsgi_ini

This ini file is django uwsgi configuration

django_uwsgi_with_nginx

This ini file nginx configuration with uwsgi application

host_keyfile

Host keyfile getter

host_passwd

Host password getter

host_string
Returns:
str: hostname string
host_user

Host user getter

install()[source]

All subclass need implement this function

kafka_install_dir

kafka install dir :return:

mysql_password

Mysql password

nginx_php7_web_config

Nginx web config

nginx_php7_web_wordpress_config

Nginx web wordpress config

nginx_ssl_dir

ssl directory

nginx_web_config

Nginx web config

nginx_web_dir

default apache project dir

nginx_web_ssl_config

Nginx web ssl config

nginx_web_wordpress_config

Nginx web wordpress config

phpinfo

In order to test that our system is configured properly for PHP, we can create a very basic PHP script.

project

project getter

python_env_dir

Python virtualenv dir

server_type

Server type getter

supervisor_config_dir

supervisor control config dir

supervisor_etc_dir

supervisor control config dir

supervisor_uwsgi_ini

supervisor control uwsgi configuration