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 http://www.webidsupport.com/download.php and extract it to a directory on your server accessible by the web server (e.g. /var/www/html/your-domain.com/) using the following commands:
cd /opt/ wget http://jaist.dl.sourceforge.net/project/simpleauction/simpleauction/WeBid%20v1.2/WeBid-1.2.zip -O webid.zip unzip webid.zip mv WeBid/ /var/www/html/your-domain.com
Do not forget to replace your-domain.com 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> FLUSH PRIVILEGES; 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:
Then, create a new Apache configuration file on your virtual server:
Edit the ‘your-domain.com.conf’ configuration file:
vi vi /etc/httpd/conf.d/your-domain.com.conf
and add the following lines to it:
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org DocumentRoot /var/www/html/your-domain.com/ ServerName your-domain.com ServerAlias www.your-domain.com <Directory /var/www/html/your-domain.com/> DirectoryIndex index.html index.php Options FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog "/var/log/httpd/your-domain.com-error_log" CustomLog "/var/log/httpd/your-domain.com-access_log" combined </VirtualHost>
Set proper file permissions for the Apache web server to write to the document root (‘/var/www/html/your-domain.com’) directory of the WeBid auction web site:
sudo chown -R apache:apache /var/www/html/your-domain.com/
Restart the Apache web server for the changes to take effect:
service apache2 restart
Open your favorite web browser, navigate to http://your-domain.com/ , 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/your-domain.com/install/
If the installation process completed successfully, open http://your-domain.com/admin and create an administrator user account, then log in to the administration back-end of the WeBid auction web site at http://your-domain.com/admin/login.php using the newly created administrator account.
That is it. The WeBid installation is now complete.
Of course you don’t have to do any of this if you use one of our Powerful CentOS VPS Hosting services, in which case you can simply ask our expert Linux admins to install WeBid auction software for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.