URL Shortener writen in pure PHP.
- Clone the project
$ git clone https://github.com/YehudaEi/Y-Link
-
Create Database from the dump
create_db.sql
-
Config the database in public/include/config.php in line 14
-
Config the site domain in public/include/config.php in line 16
-
Config the site url in public/YLinkClient.php in line 21
-
if you use apache go to 7. if you use nginx go to 8.
-
copy apache.conf to
/etc/apache2/sites-available/
-
$ sudo mv apache.conf /etc/apache2/sites-available/servername.conf
- Config the servername.conf
- enable servername.conf
$ sudo a2ensite servername.conf
- go to 9.
-
-
copy nginx.conf to
/etc/nginx/sites-available/
-
$ sudo mv nginx.conf /etc/nginx/sites-available/servername.conf
- Config the servername.conf
- enable servername
$ sudo ln -s /etc/nginx/sites-available/servername.conf /etc/nginx/sites-enabled/
- go to 9.
-
-
Done! Enjoy 😁
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.