spacer
Web Development Blog
 Developer Newsletter

Webmaster Blogs
Content & Blogging
Design
Photoshop
General
JavaScript
PHP
PHP Functions
Web
WordPress
Website Promotion

Blog Archives


Developer Tutorials
AJAX
ASP
CGI & Perl
CSS
Flash
HTML
Illustrator
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML
Miscellaneous

Scripts Directory
AJAX Scripts
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Web Hosting Directory
ASP.NET
Budget
Dedicated Servers
Ecommerce
Linux
Resellers
Shared
Small Business
Windows

Webmaster Blog

Digg Clone: Start your own Digg in five minutes flat with PHP

So, you want to start your own Digg or Reddit? Look no further. With PHP and MySQL, you can create your own Digg site in just five minutes. All you need is a PHP web server and MySQL database server; follow these instructions and you’ll be up and running in time.

1. Upload files, set permissions
Grab a copy of the software we’re using, Pligg, from here, and upload the files inside the zip archive to your web server. Anywhere will do as long as the files can be accessed via the web. You’ll need to CHMOD some of the files, although if your server is running Windows you may be able to skip this step. If you are using an FTP client, you can usually right click a file/folder and select “Properties” or “File Attributes” to change the permissions on a file(s), or CHMOD. Try these tutorials for Cute FTP and WS FTP.

CHMOD to 777 the folders avatars/user_uploaded, backup, cache, languages, templates and templates_c. CHMOD to 666 libs/dbconnect.php and settings.php. And finally, CHMOD to 655 config.php. Now, to install the software.

2. Install the software
Open up your web browser to the install directory under where you uploaded the files. For example, I uploaded my files to http://localhost/digg, so I’ll point my browser to http://localhost/digg/install/. Click the link to continue in English, and on the following screen click the ‘next’ button. Enter your MySQL database details - you can use any existing database, the software will use a table prefix to make sure it does not clash with data already in the database. Here’s what mine looks like:

Now, we clean up after the install and load up our brand new Digg clone.

3. Finishing up
First, delete your /install directory. You can also reupload it from the zip archive, but while it is online anyone can reinstall (and reset!) your Digg clone. Second, just in case, chmod to 644 the libs/dbconnect.php file so that nobody else on the server can see your database password. Then point your web browser to where you installed the software - for example, mine’s http://localhost/digg/ - and you should see your new Digg clone. The default username is god and password 12345, so login and play around with the settings. When you’re ready, start submitting stories and inviting people to join your new site.

And that’s all! In just five minutes or less you can have your social bookmarking media site up and running. It’s a little empty at the moment, but you can quickly create categories and submit some articles. If you’re looking for inspiration, try Digg :)

See the website for documentation and further downloads.


Related Posts
» An open source clone of Meebo is now available
» MySQL fulltext search for 3 char words
» And the winner of the most important security tip competition is…
» Maximizing social bookmarking for website promotion
» 4 PHP Professional Development Paths
 


One Response to “Digg Clone: Start your own Digg in five minutes flat with PHP”

  1. juegos Says:

    Thanks for the tips! I needed something like that :-)

    greetings!

Leave a Reply





About the NetVisits, Inc Network | Write For Us | Advertise
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: