Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Gregification/apache-works

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Html Fiddle

a apache webserver ran out of docker. is not criticaly dependent on external services.

images used

  • php:8.0-apache
  • postgres:15
  • adminer:4.8.1-standalone

frameworks

  • apache
  • bootstrap

How to visit

ocassionaly avaliable at 47.37.113.251:8080 . otherwise you can host it yourself.

To host it yourself

note : the powershell scriptes are only to help automate docker commands. they are not necessary

USING DOCKER-COMPOSE

  1. build & run the project with docker compose up -d --build
  2. visit localhost:8080

USING POWERSHELL (not recommended/deprecated)

  1. install Docker & clone this repo. turn on the docker daemon.
  2. navigate to the folder containing run_phpApache.ps1 , note: addiitonsl paramaters are best found in the .ps1 script itself.
  3. for the initial startup run .\run_phpApache.ps1 -rebuild -rebuildb , afterwards just .\run_phpApache.ps1 will work.
    • .\run_phpApache.ps1 -help for help or see the param fields of the script (starts line 5).
    • the -visit flag will open automatically open your browser to the site
  4. check that private_request/config.php(generated when .\run_phpApache.ps1 is ran) has the correct information for the psql db. the file psqlConnecitonInfo.json is needed, its generated by the powershell script. it supplies the psql db's port & ip inside the docker network.
  • to quit run .\run_phpApache.ps1 -stop or stop the containers manualy
  • if the db is not initialized... run sh /setup/templateBuilder.sh from inside the psql container. that should reset it to defaults, otherwise continue reading; pgsql setup: the pgsql_dirty.tar file (stored in a google drive since too large(.7gb) for casual upload) is a .tar of a working postgresql db container saved as a iamge, then a container. use docker to create a image then container with it and make sure the name matches whats in the [string]$dbContainer = 'aphpsql' paramater in the powershell launch script aka. run_phpApache.ps1 : around line#20
  • sql conneciton error. using hte powershell script or initial starts may leave connection errors. fix this by opening webserver/private_request/psqlConnectionInfo.json and changing the value of the iPv4 entry to the container name or ip of the database container (can be found with docker network inspect).

todo

About

A apache webserver featuring user chats and other miscellaneous pages. (incomplete)

Resources

Stars

Watchers

Forks