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

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.

2008-04-06T03:13:43+00:00 April 6th, 2008|PHP|1 Comment

About the Author:

One Comment

  1. juegos May 2, 2008 at 6:28 AM

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


Leave A Comment