Hi ! Can anyone recommend a panel for hosting php and html on casaos?
Have you thought about just creating a Dockerfile for it, uploading it to a registry, and running it?
Example Dockerfile
# Use an official PHP runtime as a parent image with Apache
FROM php:8.1-apache
# Set the working directory to /var/www/html
WORKDIR /var/www/html
# Copy the current directory contents into the container at /var/www/html
COPY . /var/www/html/
# Make port 80 available to the world outside this container
EXPOSE 80
Instructions:
- Create Your Application: Your application should have at least one
.php
file and you can include HTML content in it or serve separate.html
files. - Build Your Docker Image:
docker build -t my-php-app .
- Run Your Container:
docker run -p 8080:80 my-php-app
Then you can upload it to Docker Hub, etc.
You can install Docker Desktop to make this a little simpler with a UI: