Skip to content

SidD100/LAMP-STACK-DEMO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Get a LAMP stack project up and running in 10 mins!

Requirements

  • IDE (eg.: VSCode)
  • Docker
  • Browser (eg.: Firefox)

To run this code,

  1. Clone the repo.
  2. Open command line in the same directory
  3. Open Docker, navigate to Containers
  4. Run docker-compose up in the CLI
  5. Open a browser to view the table and view PHPMyAdmin page

NOTE

Once you get the error:

Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /var/www/html/index.php:3 Stack trace: #0 {main} thrown in /var/www/html/index.php on line 3

Go to Docker's 'www' server's interactive terminal and run docker-php-ext-install mysqli && docker-php-ext-enable mysqli && apachectl restart

Credits

Inspired from Vincent Stevenson's Build a Full Stack Web App in PHP and MySQL with Docker from scratch!.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages