1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-09 19:52:28 +01:00
Go to file
2014-06-27 12:55:36 -04:00
admin UGH THIS EFFING FOLDER STRUCTURE 2014-06-27 10:24:08 -04:00
css move css files 2014-06-26 16:18:11 -04:00
fonts HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
helpers create folders 2014-06-26 16:11:07 -04:00
img create folders 2014-06-26 16:11:07 -04:00
js uglify this 2014-06-27 12:55:36 -04:00
.htaccess unrewrite base 2014-06-22 08:48:36 -04:00
404.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
about.php fix license to GPL 2014-06-22 17:30:27 -04:00
activate.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
ajaxhandler.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
api.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
appcalls.php reloc 2014-03-23 10:51:04 -04:00
bootstrap.css reloc 2014-03-23 10:51:04 -04:00
createurl.php move js files to /js 2014-06-26 16:15:46 -04:00
footer.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
footerpage.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
header.php refactor css 2014-06-26 16:22:11 -04:00
headerpage.php refactor css 2014-06-26 16:22:11 -04:00
index.php refactor css 2014-06-26 16:22:11 -04:00
jquery.js reloc 2014-03-23 10:51:04 -04:00
json.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
linkcheck.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
loginproc.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
logout.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
parseurl.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
password.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
polrauth.php fix relations in h & hp 2014-06-27 10:09:34 -04:00
r.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
README.md semver 2014-06-23 09:55:12 -04:00
register.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
registerproc.php don't vardump 2014-06-27 10:37:20 -04:00
req.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
select_url.js HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
setup.php fix overlapping variables 2014-06-21 18:57:38 -04:00
sgmail.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
stats.php HUGE update: add features from PaaS, readying for 0.15 Stable 2014-06-21 09:27:18 -04:00
testmysqli.php reloc 2014-03-23 10:51:04 -04:00
version.php upgrade ver & reldate 2014-06-26 16:25:22 -04:00

Polr

###A beautiful, modern, minimalist, and open-source URL shortening platform. Demo: http://polr-c9-cydrobolt.c9.io/ Polr will use Semantic Versioning http://semver.org/ starting at ver 1.0.0

================== Installation

  • Unpack Polr, or clone the git repo
  • Go to the root of your Polr folder (on webserver)
  • Read each setup item carefully, and then click "create config"
  • You're ready to go!

Prerequisites:

This list may be long, but most hosts include these prerequisites, so you don't have to install them yourself.

================== Troubleshooting

###I get a blank page at the user dashboard (ucp.php)

This error occurs when your PHP installation's version is older than 5.3, or because you do not have either the PHP mysqli extension or do not have the MySQLnd (native driver). On Ubuntu, you simply need to sudo apt-get install php5-mysql and restart apache2 service apache2 restart. You should have the mysqli.so extension enabled. Ask on IRC if you need further support.

###I get a blank page when trying to register (registerproc.php)

This may mean you do not have the MCrypt extension for PHP. To install this on Ubuntu, run the following commands:

sudo apt-get install php5-mcrypt
sudo mv -i /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/
sudo php5enmod mcrypt
sudo service apache2 restart

On Fedora/Centos:

yum update
yum install php-mcrypt*
sudo php5enmod mcrypt
sudo service apache2 restart

###I have errors enabled, and I get "Illegal String Offset"

This usually occurs when you are missing an extension, and thus, the expected associative arrays (e.g mysqli_fetch_assoc) are instead strings, and errors occur. The most common cause of this is the missing MySQLi extension or native driver. Refer to the first FAQ.

###The links produced give me 404

You need mod_rewrite in order to use Polr. Please take a look at https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite

###I can't run setup, I get various MySQL errors.

Make sure your host is correct. Some webhosts require you to bind to a certain ip or port, such as 0.0.0.0. You may need to modify the code if you need to use an unconventional port. (option coming soon)

Make sure the database is premade, and that the user has the required permissions to create tables.

================== ####Current State: 0.23 Alpha (download at release)

Welcome to Polr, the self-hosted version. Read up on some documentation through our github wiki (https://github.com/Cydrobolt/polr/wiki)

Would like to contribute? Submit pull requests through our Github page. Found an issue? Create an issue here: (https://github.com/Cydrobolt/polr/issues)

Copyright (C) 2014 Chaoyi Zha

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.