https://github.com/en10/phpliteadmin
phpLiteAdmin on github codespaces
https://github.com/en10/phpliteadmin
Last synced: 5 months ago
JSON representation
phpLiteAdmin on github codespaces
- Host: GitHub
- URL: https://github.com/en10/phpliteadmin
- Owner: EN10
- License: mit
- Created: 2023-05-14T22:31:31.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T18:54:58.000Z (about 2 years ago)
- Last Synced: 2025-08-01T04:45:18.924Z (12 months ago)
- Language: PHP
- Size: 95.7 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phpLiteAdmin
Install phpLiteAdmin on GitHub Codespaces based on [cs50](https://github.com/cs50/codespace/tree/main/opt/cs50/phpliteadmin)
## Install
One line installer:
```
curl -s https://raw.githubusercontent.com/eniompw/phpLiteAdmin/main/install.sh | bash
```
**OR**
All the explicit steps installer:
```
# download code files
git clone https://github.com/eniompw/phpLiteAdmin
cd phpLiteAdmin
# move linked php and css files
sudo mkdir -p /opt/cs50/phpliteadmin/
sudo 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
# add pla symlink to phpliteadmin.py
sudo ln -s /usr/local/bin/phpliteadmin.py /usr/local/bin/pla
# remove unneeded code
rm ../phpLiteAdmin -fr
cd ..
# install requirements
pip install termcolor
sudo apt update
sudo apt install phpliteadmin -y
sudo apt install python-is-python3 -y
```
## Run
```
pla filename.db
OR
phpliteadmin.py filename.db
usage: phpliteadmin [-h] path
phpliteadmin: error: the following arguments are required: path
```
## 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'