2 Commits

Author SHA1 Message Date
AndreStork 65fb68d68e Aggiustamenti docker compose 2026-04-17 12:38:14 +02:00
AndreStork 65888cc865 Fix problemi sessione Apache 2026-04-17 12:05:10 +02:00
3 changed files with 19 additions and 10 deletions
+10 -3
View File
@@ -4,15 +4,22 @@ services:
ports:
- 8069:80
environment:
DB_HOST: mariadb
DB_HOST: db
DB_USERNAME: techstore
DB_PASSWORD: changeme
DB_DATABASE: TechStore
mariadb:
volumes:
- ./images:/var/www/html/img
restart: unless-stopped
depends_on:
- db
db:
image: mariadb
restart: always
restart: unless-stopped
environment:
MARIADB_ROOT_PASSWORD: changemeplease
MARIADB_USER: techstore
MARIADB_PASSWORD: changeme
MARIADB_DATABASE: TechStore
volumes:
- ./db:/var/lib/mysql
+4 -3
View File
@@ -1,3 +1,7 @@
<?php
session_start();
include '../db_conf.php';
?>
<!DOCTYPE html>
<html lang="it">
<head>
@@ -8,9 +12,6 @@
</head>
<body>
<?php
session_start();
include '../db_conf.php';
if (!isset($_SESSION['id'])) {
header('Location: ../login.php');
exit();
+4 -3
View File
@@ -1,3 +1,7 @@
<?php
session_start();
include '../db_conf.php';
?>
<!DOCTYPE html>
<html lang="it">
<head>
@@ -8,9 +12,6 @@
</head>
<body>
<?php
session_start();
include '../db_conf.php';
if (!isset($_SESSION['id'])) {
header('Location: ../login.php');
exit();