Skip to content

Instantly share code, notes, and snippets.

@yalin
Created March 8, 2021 06:25
Show Gist options
  • Save yalin/b879b7bcb457b7a70763b284b7a6d0cf to your computer and use it in GitHub Desktop.
Save yalin/b879b7bcb457b7a70763b284b7a6d0cf to your computer and use it in GitHub Desktop.
Xampp and CodeIgniter 4
  • Install xampp
  • Download CodeIgniter (lets say ~/folder/)
  • edit /opt/lampp/etc/httpd.conf
  • replace line
    • DocumentRoot "/opt/lampp/htdocs" with
    • DocumentRoot "your_path"
    • And change line
    • Directory "/opt/lampp/htdocs" with
    • Directory "your_path"
  • Restart apache
  • Then change chmod of CI files
    • chmod 777 -Rv CI_folder/writable
  • Edit .env file
    • uncomment the line #CI_ENVIRONMENT = production
    • and change production with development
  • Ready!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment