Skip to content

phpLiteAdmin on github codespaces

License

Notifications You must be signed in to change notification settings

F9mm/phpLiteAdmin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

phpLiteAdmin

Install phpLiteAdmin on GitHub Codespaces based on cs50

Install

# download code files
git clone https://github.com/eniompw/phpLiteAdmin
cd phpLiteAdmin
# move linked php and css files
mkdir -p /opt/cs50/phpliteadmin/
mv ./share/ /opt/cs50/phpliteadmin/
# make phpliteadmin executable
chmod +x phpliteadmin.py
# add to path, allows running by name only
sudo mv phpliteadmin.py /usr/local/bin
# remove unneeded code
rm ../phpLiteAdmin -fr
cd ..
# install requirements
pip install termcolor
sudo apt update
sudo apt install phpliteadmin -y

Run

phpliteadmin
usage: phpliteadmin [-h] path
phpliteadmin: error: the following arguments are required: path
touch test.db
phpliteadmin.py test.db

Investigation

On cs50.dev

$ whereis phpliteadmin 
phpliteadmin: /opt/cs50/bin/phpliteadmin
$ ls /opt/cs50/bin/phpliteadmin 
/opt/cs50/bin/phpliteadmin@
$ readlink /opt/cs50/bin/phpliteadmin 
/opt/cs50/phpliteadmin/bin/phpliteadmin

Python file points to:

PHP_FILE = f'/opt/cs50/phpliteadmin/share/index.php'
PHP_THEME = f'/opt/cs50/phpliteadmin/share/phpliteadmin.css'

About

phpLiteAdmin on github codespaces

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 97.0%
  • CSS 2.3%
  • Python 0.7%