How to create a website like quora using the PHP script

How to create a question and answer website like Quora using PHP. Complete free question and answer platform script. Follow the steps below, or watch video in this article. We need a localhost server to do this. i.e Xamp

How to create a website like quora using the PHP script
image screenshot

A complete question and answer platform script.

Table of content

  1. About the complete question and answer platform script
  2. Features of the complete question and answer platform script.
  3. Script Includes
  4. Requirement
  5. Step by step to run the script (installation)
  1. Screenshots
  2. Video tutorial

About the question and answer platform script

This project is a complete question and answer website script which you can use to create a question and answer website like quora. This script is a CMS which comes with a very powerful admin panel for administrators to manage the site easily and control every activity of the site. Here users or visitors can ask questions, answer questions. This platform has a trending questions section, tags, and people you may know section. It also includes a search system for users to search anything in the site like users, questions, tags, etc. Each user has their own dashboard and profile. This script has great performance, very fast to load, responsive quality design. Use this script to start your own question and answer website.

Features of the question and answer platform script.

Admin Panel

  • Dashboard: This page shows the whole website summary like total questions, total answers, total reply’s, total shares, active user, etc and so many others. It also shows bar chart of users.
  • Users: In this page you can see all registered users on the site with their user ID and username. You can also delete and edit a user.
  • Manage reports: here you can manage all reports made by users and take actions.
  • Manage verification requests: here you can manage (take action on) verification requests made by users who want to be verified.
  • Questions: This page shows the admin the entire question asked by users of the site, how many answers, shares, etc. the admin can also delete a question.
  • Answers: Manage all the answer to any question given by the users of your site. You will also see the replies to those answers, share, etc. the admin can also edit or delete an answer.
  • Account: Edit admin profile like admin name, email and also change password.
  • Website settings: This page allows the admin to change the website name, title, description, email, keywords, enable and set-up Recaptcha, upload settings, censored words, etc.
  • Change site design: Change website logo, favicon, enable either light or dark mode.
  • Manage website pages: Here you can modify website pages like about us, privacy policy, terms etc.
  • Payment settings: In this page you can enable or disable advertisement mode, switch to preferred currency, set payment gateways like PayPal, local bank account, stripe.
  • Language settings: This admin page allows you to mange languages; add a new language, delete or edit each language with its slug.
  • Email (SMTP) and SMS Settings: Here you can change your website email and SMS settings like the SMTP server settings for email, and twilio for SMS.
  • Advertisement: here you can manage your website user ads, your placed ads, and website earnings.
  • Social login settings page
  • Enable cloud storage or backup your website database to another server
  • Manage bank receipts.
  • Two factor authentication
  • Enable registration mode
  • Set auto follow
  • Send mass notification
  • Create sitemap
  • Backup database
  • Ban user.

Front end features

  • User own dashboard and profile
  • Add questions
  • Answer questions
  • Reply answers
  • Like answers
  • Share answers
  • Add your social handles to your profile
  • Ask anonymous questions
  • Create polls
  • Create adverts
  • Use of emoji
  • Login and registration system
  • Voice messages
  • See trending questions
  • Search system
  • Verification system
  • Message system
  • Notification system
  • Light and dark mode
  • User profile settings

Script includes

  • Written in - PHP
  • Database – MYSQL
  • Documentation
  • And more…

Server Requirements

 Almost all servers already have them installed.

  • PHP 5 higher
  • Curl enabled required
  • MYSQLi
  • GD library
  • php should be writable
  • Mbstring
  • Allow_url_fopen

Step by step to run the script (installation)

A server is required in other to run this script, e.g. XAMPP or you have purchased a live hosting plan.

For xampp

(You need to watch the video below for a better installation)

  1. Scroll down and download the script.
  2. Extract the source code in your pc.
  3. Copy the folder you extracted and paste it in C:/xampp/htdocs
  4. Open your XAMPP control panel and start Apache and MySql.

Creating a database

  1. Open your browser
  2. On your browse, go to this path “http://localhost/phpmyadmin/
  3. Click on New on the left side of the screen.
  4. Create a database named “ans_db” and click on create.

After creating a database

  1. Open a new tab on your browser and go to the path. E.g. “http://localhost/quora”
  2. Agree to terms and click on next,
  3. Click on next again if all requirements  are installed
  4. Fill the form you will see, like  
  • database name - ans_db
  • username – root
  • password – (leave empty or put your XAMPP password)
  • database host – localhost
  • System name – (preferred name)
  • Admin name
  • Admin email
  • Then add any password of your choice
  1. Click on install (installation takes time)

For live servers          

Creating a database

  1. Scroll down and click on download
  2. Then Extract the file
  3. Copy the files you extracted.
  4. Login to your Cpanel from your hosting platform.
  5. Go to your control Panel menu and Click MySQL® Databases
  6. You create a new Database.
  7. Then Add a New User.
  8. Then you Add User To Database,
  9. Set User Permissions

After creating a database

  1. Go to your Cpanel, then go to file manager.
  2. Open Public_html and upload the files or paste the file we copied after extraction.

Screenshots

question and answers website

question and answers website

question and answers website

question and answers website

question and answers website

question and answers website

Video tutorial

watch installation video