What is YOURLS?
YOURLS stands for Your Own URL Shortener. It is a small set of PHP scripts that will allow you to run your own URL shortening service (TinyURL or bitly).
How to install YOURLS.
- First of all download YOURLS zip package :
- Extract this .zip file:
$ unzip YOURLS 1.7.1.zip
- Now directory to yourls:
$ mv YOURLS 1.7.1 yourls
- Copy this Directory to Document Root of your server:
$ cp -r yourls/ var/www/html/
- If you are not root user copy this to
public_html
directory.
- Now open
/var/www/html/yourls/user/
- Copy
config-sample.php
toconfig.php
$ sudo cp config-sample.php config.php
- Now open the
config.php
$ sudo vim config.php
- In this file you will find something like this:
/** MySQL database username */ define( 'YOURLS_DB_USER', 'root' ); /** MySQL database password */ define( 'YOURLS_DB_PASS', '*****' ); /** The name of the database for YOURLS */ define( 'YOURLS_DB_NAME', 'yourls' ); /** MySQL hostname. ** If using a non standard port, specify it like 'hostname:port', eg. 'localhost:9999' or '127.0.0.1:666' */ define( 'YOURLS_DB_HOST', 'localhost' ); /** MySQL tables prefix */ define( 'YOURLS_DB_PREFIX', 'yourls_' ); /* ** Site options */ /** YOURLS installation URL -- all lowercase and with no trailing slash. ** If you define it to "http://sho.rt", don't use "http://www.sho.rt" in your browser (and vice-versa) */ /** Browser will not load its CSS files if you dont write /yourls with localhost below. ** But you can also set virtual host or your document root to localhost/yourls from localhost. */ define( 'YOURLS_SITE', 'http://localhost/yourls' ); /** In case of experimental server this is */ define( 'YOURLS_SITE', 'http://202.164.53.202/~iamjagjeetubhi/yourls' );
- Enter your Database details in it. If you dont have then create it first.
- Now things we have to do need root access.
- Enabling mod_rewrite
$ sudo a2enmod rewrite
- Now Restart the apache:
$ sudo service apache2 restart
- Open
/etc/apache2/
- Edit the file
apache2.conf
$ sudo vim apache2.conf
- You will see something like this in that file:
Options Indexes FollowSymLinks AllowOverride None Require all granted
- Change the:
AllowOverride None
toAllowOverride All
- Again Restart the Apache:
$ sudo service apache2 restart
- Now open directory
/var/www/html/yourls/
- Create a file
.htaccess
- Change it’s permission:
$ sudo chmod 777 .htaccess
- If
.htaccess
file creation/updating failed because of file permission, you’ll have to manually make one. No worry, it’s simple.
# BEGIN YOURLS RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ /yourls-loader.php [L] # END YOURLS
- It is last time you need to Restart apache:
$ sudo service apache2 restart
- Open browser and goes to
http://localhost/yourls/admin/
(YOURL_SITE address that you put in /yourls/user/config.php)
- Now click on Install Yourls.
- Enter your username and password that you have set in /yourls/user/config.php. By default username is
username
and password ispassword
- Once your installation is completed Start creating
short URL
- Open that short URL by adding with
YOURL_SITE
name. i.e http://localhost/yourls/short_url_here/
Thanks 🙂
Finally,you solved your problem (Y).
LikeLike
Good blog post. I certainly appreciate this site. Thanks!
LikeLike
Welcome! I am working on the Multi-user plugin of YOURLS. If you need further help you can contact me.
Thanks.
LikeLike
Excellent blog you have here but I was wanting to know if you knew of any discussion boards that cover the same topics talked about here? I’d really love to be a part of group where I can get advice from other experienced people that share the same interest. If you have any suggestions, please let me know. Cheers!
LikeLiked by 1 person
Thankyou so much!
I am working on it from last 6 months. Just adding some more features as per my need. Feel free to ask anything.
Contact me iamjagjeetubhi@gmail.com
LikeLike
This piece of writing is really a nice one it helps new net viewers, who are wishing in favor of blogging.
LikeLiked by 1 person
Thankyou so much ❤️😀
LikeLike
Feel free to ask anything. 😊
LikeLike
My relatives every time say that I am killing my time here at net, but I know I
am getting experience daily by reading such nice articles.
LikeLike
Everyone loves it when individuals come together and share views. Great site, stick with it!
LikeLike
Anyone that wants to read content with solid infitmaroon will want to read this article. I like how the points are stated. I share these views as well and I enjoyed this content. Thank you.
LikeLike
Thankyou so much. 🙂
Feel free to ask for more help.
LikeLike
Hi Gregory,This looks like a great program that will inevitably save me a tonne of time – as soon as I can get it working;) I’m having trouble loading my pat file into Revit. I’ve made a test hatch pattern, something very simple, and have been able to produce a successful hatch pattern definition in the white window – now how do I get this into Revit? I’ve saved the pat file to my computer but can’t figure out how to &#p;r62im8o1t’ it. Do I need to save the code for this hatch to Revit’s already existing pat file?I’m running Revit 2011. Thanks for any help you can provide.
LikeLike
I’d like to find out more? I’d want to find out more details.
LikeLike
Like what?
LikeLike
Good info. Lucky me I found your site by accident (stumbleupon). I have saved it for later!
LikeLike
I know this site provides quality dependent posts and extra data, is there any other web site which offers such information in quality?
LikeLike
Very soon this website will be famous among all blogging and site-building visitors, due to it’s nice articles or reviews
LikeLike
Hello, i think that i saw you visited my website so i got here to go back the prefer?.I’m trying to find things to improve my web site!I suppose its ok to make use of a few of your ideas!!
LikeLike
Very soon this web site will be famous amid all blogging and site-building visitors, due to it’s pleasant articles or reviews
LikeLike
I’m amazed, I have to admit. Rarely do I encounter a blog that’s both equally educative and engaging, and let me tell you, you’ve hit the nail on the head. The problem is an issue that not enough men and women are speaking intelligently about. I’m very happy I came across this during my search for something concerning this.
LikeLike
Wonderful items from you, man. I’ve consider your stuff prior to and you are simply extremely magnificent. I really like what you’ve received here, really like what you are saying and the way in which during which you say it. You are making it entertaining and you continue to take care of to keep it sensible. I can not wait to learn far more from you. That is really a tremendous web site.
LikeLike
If you desire to take a great deal from this article then you have to apply these methods to your won webpage.
LikeLike
Hi, every time i used to check weblog posts here in the early hours in the break of day, since i enjoy to find out more and more.
LikeLike
Remarkable! Its truly remarkable post, I have got much clear idea about from this paragraph.
LikeLike
I enjoy, cause I discovered exactly what I was taking a look for. You’ve ended my 4 day long hunt! God Bless you man. Have a great day. Bye
LikeLike
Hey terrific blog! Does running a blog like this take a massive amount work? I have absolutely no knowledge of programming however I was hoping to start my own blog in the near future. Anyway, if you have any suggestions or techniques for new blog owners please share. I know this is off subject however I simply needed to ask. Many thanks!
LikeLike
Hi there everyone, it’s my first go to see at this website, and piece of writing is truly fruitful in favor of me, keep up posting these types of articles or reviews.
LikeLike
Hello, I think your blog might be having browser compatibility issues. When I look at your blog in Opera, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, superb blog!
LikeLike
Hi there very cool website!! Guy .. Excellent .. Superb .. I’ll bookmark your site and take the feeds additionally? I’m satisfied to search out numerous helpful info here in the put up, we need work out more strategies in this regard, thank you for sharing. . . . . .
LikeLike
I know this site provides quality dependent content and additional stuff, is there any other web site which offers these kinds of data in quality?
LikeLike
certainly like your website but you need to take a look at the spelling on several of your posts. Many of them are rife with spelling problems and I find it very troublesome to tell the truth on the other hand I’ll certainly come again again.
LikeLike
You actually make it appear really easy along with your presentation but I find this topic to be really one thing which I believe I might by no means understand. It sort of feels too complicated and very large for me. I am having a look forward to your subsequent publish, I’ll try to get the hang of it!
LikeLike
I like the valuable info you provide for your articles. I’ll bookmark your blog and take a look at again here frequently. I am somewhat certain I will learn lots of new stuff proper right here! Best of luck for the next!
LikeLike
I think that everything published made a great deal of sense. However, think on this, what if you composed a catchier title? I am not saying your information isn’t good., however what if you added a post title that makes people want more? I mean Install YOURLS: Your Own URL Shortener is kinda vanilla. You should peek at Yahoo’s home page and note how they create post titles to get people interested. You might add a related video or a related pic or two to grab readers excited about everything’ve got to say. Just my opinion, it might bring your posts a little livelier.
LikeLike
You’re so cool! I do not suppose I’ve truly read through something like this before. So great to find another person with a few original thoughts on this issue. Seriously.. many thanks for starting this up. This site is something that is needed on the internet, someone with a bit of originality!
LikeLike
Everything is very open with a very clear clarification of the issues. It was truly informative. Your website is extremely helpful. Many thanks for sharing!
LikeLike
Fantastic items from you, man. I’ve remember your stuff previous to and you are simply too magnificent. I really like what you have received here, certainly like what you are stating and the way in which in which you say it. You are making it enjoyable and you still take care of to keep it smart. I can not wait to learn much more from you. This is actually a tremendous website.
LikeLike
We are a gaggle of volunteers and starting a new scheme in our community. Your site provided us with useful information to work on. You’ve performed an impressive activity and our entire community will likely be thankful to you.
LikeLike
I feel this is among the most vital info for me. And i am satisfied reading your article. But should observation on some general issues, The site style is ideal, the articles is actually nice : D. Excellent job, cheers
LikeLike
Nice post. I learn something totally new and challenging on blogs I stumbleupon every day. It’s always interesting to read through articles from other authors and use something from their websites.
LikeLike
If some one wishes expert view about blogging afterward i propose him/her to go to see this blog, Keep up the nice work.
LikeLike
Undeniably consider that which you said. Your favourite justification seemed to be at the net the easiest factor to consider of. I say to you, I certainly get irked even as people think about concerns that they just don’t know about. You managed to hit the nail upon the highest as well as outlined out the whole thing without having side effect , people could take a signal. Will likely be again to get more. Thanks
LikeLike
Noxious chemicals can also more easily harm children and pets, who’re usually better the carpets. Tears, unraveled binding, and stains should be repaired and treated immediately. It makes sense that by using a professional carpet cleaner will give you the maximum advantages in rug cleaning but some prefer to invest in their very own steam cleaning equipment which really isn’t that bad of the idea.
LikeLike
You are so interesting! I don’t think I’ve truly read something like that before. So wonderful to discover another person with a few original thoughts on this subject. Really.. many thanks for starting this up. This website is something that is required on the internet, someone with a little originality!
LikeLike
First of all I want to say excellent blog! I had a quick question in which I’d like to ask if you do not mind. I was curious to know how you center yourself and clear your mind before writing. I have had trouble clearing my thoughts in getting my thoughts out there. I truly do enjoy writing however it just seems like the first 10 to 15 minutes are usually lost simply just trying to figure out how to begin. Any recommendations or tips? Many thanks!
LikeLike
What i do not realize is actually how you are no longer actually a lot more neatly-appreciated than you may be right now. You are so intelligent. You understand thus considerably with regards to this topic, produced me in my opinion believe it from so many various angles. Its like women and men aren’t fascinated except it’s one thing to accomplish with Girl gaga! Your individual stuffs outstanding. At all times deal with it up!
LikeLike
I really like looking through a post that will make people think. Also, many thanks for permitting me to comment!
LikeLike
If some one needs expert view concerning blogging and site-building then i recommend him/her to go to see this webpage, Keep up the pleasant job.
LikeLike
This web site truly has all the information and facts I needed concerning this subject and didn’t know who to ask.
LikeLike
Aw, this was an extremely nice post. Taking the time and actual effort to generate a great article… but what can I say… I put things off a lot and don’t seem to get nearly anything done.
LikeLike
I really like reading a post that will make people think. Also, thanks for allowing for me to comment!
LikeLike
Hi there colleagues, its great post concerning cultureand completely defined, keep it up all the time.
LikeLike
We’re a gaggle of volunteers and opening a new scheme in our community. Your web site offered us with helpful information to work on. You’ve done a formidable activity and our entire community will be grateful to you.
LikeLike