How to install WeBid auction software on CentOS

In this tutorial, we will show you how to install WeBid on a CentOS 7 VPS with Apache, PHP and MySQL installed on it.
WeBid is an open source auction software written in PHP. It is the best solution to build auction web sites.
This tutorial was tested and written for a CentOS VPS, but it should work on any RPM based Linux distribution.
This install guide assumes that Apache, MySQL and PHP are already installed and configured on your virtual server. At the time of writing this tutorial, the latest version of WeBid is 1.2 and it requires:

  • Apache web server. The Apache mod_rewrite module is preferred, but it is not required
  • PHP 5.2 or higher with the following PHP extensions enabled: BCMath, PDO and GD Graphics Library version 2.0.x+
  • MySQL 4.1 or higher installed on your virtual server.

Let’s start with the installation procedure. Make sure your server OS packages are fully up-to-date:

yum clean all 
yum update

Install PHP dependencies:

yum install php-bcmath php-pdo php-gd

Download the latest version of the WeBid auction software available at and extract it to a directory on your server accessible by the web server (e.g. /var/www/html/ using the following commands:

cd /opt/ 
wget -O
mv WeBid/ /var/www/html/

Do not forget to replace with your actual domain name.
Next, create a new MySQL database for WeBid to use and assign a user to it with full permissions:

mysql -u root -p
mysql> SET GLOBAL sql_mode='';
mysql> CREATE USER webid;
mysql> CREATE DATABASE webiddb;
mysql> GRANT ALL PRIVILEGES ON webiddb.* TO 'webid'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;
mysql> quit

Do not forget to replace ‘your-password’ with a strong password.
Create a new virtual host directive in Apache. Edit the main Apache configuration file (/etc/httpd/conf/httpd.conf) and add the following line at the end if it is not already done so:

vi /etc/httpd/conf/httpd.conf
IncludeOptional conf.d/*.conf

Then, create a new Apache configuration file on your virtual server:

touch /etc/httpd/conf.d/

Edit the ‘’ configuration file:

vi vi /etc/httpd/conf.d/

and add the following lines to it:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/
<Directory /var/www/html/>
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
ErrorLog "/var/log/httpd/"
CustomLog "/var/log/httpd/" combined

Set proper file permissions for the Apache web server to write to the document root (‘/var/www/html/’) directory of the WeBid auction web site:

sudo chown -R apache:apache /var/www/html/

Restart the Apache web server for the changes to take effect:

service apache2 restart

Open your favorite web browser, navigate to , start the installation process and follow the easy instructions. Enter the WeBid administrator email address, then enter the database connection settings:
Database Host: localhost
Database Username: webid
Database Password: *your-password*
Database Name: webiddb
and click on the ‘install’ button.
On the next page, click on the ‘step2’ hyperlink and make a note of the random code shown.
For security reasons you should delete the install directory:

rm -rf /var/www/html/

If the installation process completed successfully, open and create an administrator user account, then log in to the administration back-end of the WeBid auction web site at using the newly created administrator account.

webid back-end

That is it. The WeBid installation is now complete.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our cookie policy.