banderas328 / networks

octopus os,cloud os

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

Core of octopus project. Cloud os.

Installation

"composer install" in main directory

Database

use database.sql like Maria database dump set global sql_mode='';

Apache Setup

<VirtualHost *:80>
    ServerName zf2-tutorial.localhost
    DocumentRoot /path/to/zf2-tutorial/public
    SetEnv APPLICATION_ENV "development"
    <Directory /path/to/zf2-tutorial/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Nginx Setup

server { listen 100; server_name server_domain_or_IP; root /var/www/html/networks/networks/public;

add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";

index index.html index.htm index.php;

charset utf-8;

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt  { access_log off; log_not_found off; }

error_page 404 /index.php;

location ~ \.php$ {
    fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
    include fastcgi_params;
}

location ~ /\.(?!well-known).* {
    deny all;
}

}

About

octopus os,cloud os

License:Other


Languages

Language:PHP 57.7%Language:HTML 21.7%Language:CSS 10.9%Language:JavaScript 9.4%Language:SCSS 0.3%Language:Shell 0.0%