-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e28b72b
commit 5403065
Showing
12 changed files
with
351 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
|
||
RUN apt-get update && apt-get install -y software-properties-common | ||
|
||
RUN add-apt-repository ppa:ondrej/php -y | ||
|
||
RUN apt-get update && apt-get install -y nginx php8.1 php8.1-fpm php8.1-mysql \ | ||
php8.1-gd \ | ||
php8.1-cli \ | ||
php8.1-common \ | ||
php8.1-opcache \ | ||
php8.1-mbstring \ | ||
php8.1-zip \ | ||
php8.1-xml \ | ||
php8.1-intl \ | ||
php8.1-curl \ | ||
php8.1-soap \ | ||
php8.1-fileinfo \ | ||
php8.1-sockets | ||
|
||
# 80 ve 443 numaralı portu aç | ||
EXPOSE 80 | ||
EXPOSE 443 | ||
|
||
# NGINX ve PHP-FPM'yi başlat | ||
CMD service php8.1-fpm start && nginx -g "daemon off;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: '3.8' | ||
|
||
services: | ||
initphp: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- 8000:80 | ||
- 443:443 | ||
volumes: | ||
- ./system/Docker/nginx/nginx.conf:/etc/nginx/nginx.conf | ||
- ./system/Docker/nginx/sites-available/default.conf:/etc/nginx/sites-available/default | ||
- ./system/Docker/php-fpm/php-fpm.conf:/etc/php/8.1/fpm/php-fpm.conf | ||
- ./:/var/www/html/ | ||
container_name: 'initphp' | ||
working_dir: /var/www/html | ||
restart: always | ||
networks: | ||
- initphpnet | ||
|
||
networks: | ||
initphpnet: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,81 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Document</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>InitPHP Framework 3</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> | ||
<style> | ||
html, body { | ||
height: 100%; | ||
} | ||
#content { | ||
min-height: calc(100vh - 56px); | ||
} | ||
footer { | ||
height: 56px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="content"> | ||
<div class="container text-center"> | ||
<div class="row mb-4 pt-2"> | ||
<div class="col"> | ||
<div class="p-2"> | ||
<h1>InitPHP Framework</h1> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6 mb-4"> | ||
<div class="h-100 card p-4"> | ||
<div class="card-body"> | ||
<img src="https://initphp.org/logos/initphp-icon-700.png" alt="initphp" class="rounded image-fluid" height="220" width="220" /> | ||
<h5 class="card-title">InitPHP</h5> | ||
<h6 class="card-subtitle mb-2 text-muted">Open Source Software Group</h6> | ||
<p class="card-text">InitPHP is a software group that develops open-source PHP libraries and publishes them under the MIT license.</p> | ||
<a href="https://github.com/InitPHP" target="_blank" class="card-link">GitHub</a> | ||
<a href="https://initphp.org" target="_blank" class="card-link">Web Site</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-6 mb-4"> | ||
<div class="h-100 card p-4"> | ||
<div class="card-body"> | ||
<img src="https://initphp.org/logos/initorm-icon-profile.png" alt="initphp" class="rounded image-fluid" height="220" width="220" /> | ||
<h5 class="card-title">InitORM</h5> | ||
<h6 class="card-subtitle mb-2 text-muted">QueryBuilder + DBAL + ORM</h6> | ||
<p class="card-text">InitORM is a free and powerful ORM library, developed as open source and distributed under the MIT license.</p> | ||
<a href="https://github.com/InitORM" target="_blank" class="card-link">GitHub</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-12 mb-4"> | ||
<figure class="text-end"> | ||
<blockquote class="blockquote"> | ||
<p>Knowledge is Power, It Grows as You Share!</p> | ||
</blockquote> | ||
<figcaption class="blockquote-footer"> | ||
Software Developer <cite title="Muhammet ŞAFAK">Muhammet ŞAFAK</cite> | ||
</figcaption> | ||
</figure> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<footer class="container-fluid border-top pt-3"> | ||
<div class="container"> | ||
<div class="col-sm-6 text-start float-start"> | ||
<p>Copyright © 2022 - <?= date("Y"); ?></p> | ||
</div> | ||
<div class="col-sm-6 text-end float-end"> | ||
<p>This page was created in <?= elapsed_time(); ?> seconds using <?= memory_usage(); ?> of memory</p> | ||
</div> | ||
</div> | ||
</footer> | ||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIGNzCCBB+gAwIBAgIUWRWpIES9Ncp5vKfupiAu517EQ68wDQYJKoZIhvcNAQEL | ||
BQAwgaoxCzAJBgNVBAYTAlRSMREwDwYDVQQIDAhJc3RhbmJ1bDERMA8GA1UEBwwI | ||
SXN0YW5idWwxGTAXBgNVBAoMEE11aGFtbWV0U0FGQUsNDSAxFDASBgNVBAsMC0xv | ||
Y2FsaG9zdA0gMRcwFQYDVQQDDA5NdWhhbW1ldCBTQUZBSzErMCkGCSqGSIb3DQEJ | ||
ARYcaW5mb0BtdWhhbW1ldHNhZmFrLmNvbS50cg0NIDAeFw0yMzEwMTcwMzU2NTFa | ||
Fw0yNDEwMTYwMzU2NTFaMIGqMQswCQYDVQQGEwJUUjERMA8GA1UECAwISXN0YW5i | ||
dWwxETAPBgNVBAcMCElzdGFuYnVsMRkwFwYDVQQKDBBNdWhhbW1ldFNBRkFLDQ0g | ||
MRQwEgYDVQQLDAtMb2NhbGhvc3QNIDEXMBUGA1UEAwwOTXVoYW1tZXQgU0FGQUsx | ||
KzApBgkqhkiG9w0BCQEWHGluZm9AbXVoYW1tZXRzYWZhay5jb20udHINDSAwggIi | ||
MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDJ/vtbNz6UArcvp07Nsop/p3NQ | ||
48WGLNroz/wPPSK2+M9Hit33Gbf+Gw8vj1z180amg0B6LOzBWtGDS3iLZPm6Ggj3 | ||
NVMh85kPqNgVr6vZVLWvt0NLmwrNM4zibpozRbFx+uPXArG8InU7pIIPsF7kI1qK | ||
LI7rVDxNTBHBTNrR02OO4ezWvLgUI3aSlsjlexo+jSnDpMcC7hQmhCeMbFRfNx0g | ||
vEbS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uKTV86SsUzuOkauXRDbL0B4cr7 | ||
kACBajcaY4iJGwDSPXE2uE4BXpFeUlkS5gN7LQJ/w6G/NS6LmcD0tqSzzrHW9xCK | ||
FDvn9mHQKnYpZ3Ik42U4nsyvDM7ND1FM1qyT79BaZn9+CErCl94r/tWxhdGMSTMX | ||
EGVfi154uyyEZx3dMEODwv02HmSBHRVShheXciZaEsIWC/hUckm2Hev288R6jV1D | ||
xr2c5ByOcrOTm7D3oCBc5PriBoNa+HJKysVzxKJO97SuCBehOKI7WiZvpXowWN1s | ||
tzQHhm4w8fIrNwk= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQDJ/vtbNz6UArcv | ||
p07Nsop/p3NQ48WGLNroz/wPPSK2+M9Hit33Gbf+Gw8vj1z180amg0B6LOzBWtGD | ||
S3iLZPm6Ggj3NVMh85kPqNgVr6vZVLWvt0NLmwrNM4zibpozRbFx+uPXArG8InU7 | ||
pIIPsF7kI1qKLI7rVDxNTBHBTNrR02OO4ezWvLgUI3aSlsjlexo+jSnDpMcC7hQm | ||
hCeMbFRfNx0gvEbSZ7/GcILLI9dGQNxPUVEFQ7nABb38ug9G6V6fkVBy3sl++jb4 | ||
VxWWbXgP+bV3zCTC/R9pTHCGgWTMJdsayrTc04wVe/qzhyGZh9fWpSSqkM2i0O4P | ||
ANrBdCIEa1daZlOOiMNOwc3yRH+eKrztOFTboFOfO89owRWOXHcS508+wHw8CURF | ||
cDkrYW1GZRw4dHvlxTRhpCJFYrx7vFJGnX6QBCinzuARbpZuJLV62SBlRoSshwMD | ||
2CHlGOv/sDkknhQ/YIFGaB+YWUb5SPOLn/ADi0dgd/giD9Pf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xeWHtSSvptb0IlGscatni90rjU9F3/nK/74Z3iwvxMN | ||
L2Lryn7e/WVIBq3BtVfWmMGU/5rX+oVYHpI8YltjSRVluJiyznoHVz4Pxs43TUyi | ||
jUJCbL5JrzKFa2M/70JziihJcGDt39KW1mXrU53Jib0Dsu5gqC0ANSPOsFnNdz2g | ||
FGupDESamZqwHbYqUSkeyzSnJNva/o+q7q16FhNK/ZrGyEN6gD6Y2ziwn8uCXdwr | ||
I9ECggEBANVvVLEX9XMMLIB/bppCngq8uPRhK/gQ7evQbsg3YX9E7udUrNbuY/7g | ||
l64c9bJCzHAtEDUPH6bQL2egNjYv99ZpWLd97po9vZohGGCLLIFwC1lBUHyyPQUZ | ||
dMinkWCBRastXbRvZ7Ez59dgDoXvmLLOndRPNLg8dzFZdg+MZQZh0EyTmgS4v7Cz | ||
e7VK67ypW6gWc6IlLAxF19z+WWgM6Km2cZgt7CchuAGRlFQo+LPUPrCvhoG+myqb | ||
TjvjjCNJ1Zklufw6p9RruQwIgmBPMLMuYeZ1esMJsYuopw104HnQGQ6bvUkyMdpX | ||
ulWMIS5JHPQCiDr+L9xpalpFQckJEGs= | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
user www-data; | ||
worker_processes auto; | ||
pid /run/nginx.pid; | ||
include /etc/nginx/modules-enabled/*.conf; | ||
|
||
events { | ||
worker_connections 768; | ||
# Çoklu işlem desteği için aşağıdaki satırı açabilirsiniz | ||
# multi_accept on; | ||
} | ||
|
||
http { | ||
sendfile on; | ||
tcp_nopush on; | ||
tcp_nodelay on; | ||
keepalive_timeout 65; | ||
types_hash_max_size 2048; | ||
|
||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
access_log /var/log/nginx/access.log; | ||
error_log /var/log/nginx/error.log; | ||
|
||
gzip on; | ||
gzip_disable "msie6"; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
include /etc/nginx/sites-enabled/*; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
root /var/www/html/public_html; | ||
index index.php index.html index.htm; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php?$args; | ||
} | ||
|
||
location ~ \.php$ { | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock; | ||
fastcgi_index index.php; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
server_name localhost; | ||
|
||
root /var/www/html/public_html; | ||
index index.php index.html index.htm; | ||
|
||
ssl_certificate /var/www/html/system/Docker/certificates/localhost.crt; | ||
ssl_certificate_key /var/www/html/system/Docker/certificates/localhost.key; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php?$args; | ||
} | ||
|
||
location ~ \.php$ { | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock; | ||
fastcgi_index index.php; | ||
} | ||
} |
Oops, something went wrong.