https://github.com/sauce-code/idlephp
https://github.com/sauce-code/idlephp
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sauce-code/idlephp
- Owner: sauce-code
- License: mit
- Created: 2024-02-28T21:26:35.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-23T09:21:58.000Z (over 1 year ago)
- Last Synced: 2025-01-15T18:31:38.934Z (about 1 year ago)
- Language: PHP
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# idlephp
## apache2 config file
```
$ sudo nano /etc/apache2/apache2.conf
```
```
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
```
Change it to
```
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
Allow from all
```
## default virtual host configuration file
```
$ sudo nano /etc/apache2/sites-available/000-default.conf
```
```
DocumentRoot /var/www/html
```
Change document root to
```
DocumentRoot /home/USER/git/idlephp
```
```
chmod 755 /home/USER
```
## restart apache
```
sudo service apache2 restart
```
## install mysql
```
sudo apt install mysql-server
```
set privileges
```
sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('[password]');
FLUSH PRIVILEGES;
```
## check service status
```
sudo systemctl status apache2.service
sudo service apache2 status
sudo systemctl restart mysql.service
sudo service mysql status
```
## install php
```
sudo apt install php libapache2-mod-php
sudo apt install php-mysql
```
sudo apt install phpmyadmin
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin.conf
sudo systemctl reload apache2.service