كيفية تثبيت WeBid برنامج مزاد يوم سينت أو إس

في هذا البرنامج التعليمي, we will show you how to install WeBid on a CentOS 7 VPS مع اباتشي, PHP و MySQL مثبتة عليه.
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.
يفترض هذا دليل على أن تثبيت أباتشي, 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:

  • خادم الويب اباتشي. 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+
  • الخلية 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.
التالى, 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.
إنشاء توجيه المضيف الظاهري جديد في 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

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

touch /etc/httpd/conf.d/your-domain.com.conf

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:

<استضافة افتراضية *: 80>
ServerAdmin admin@your-domain.com
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
FollowSymLinks الخيارات
AllowOverride جميع
تتطلب كل منحت
</دليل >
ErrorLog "/var/log/httpd/your-domain.com-error_log"
CustomLog "/var/log/httpd/your-domain.com-access_log" combined
</استضافة افتراضية>

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:

خدمة apache2 إعادة تشغيل

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.
في الصفحة التالية, 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.

webid back-end

That is it. The WeBid installation is now complete.

منشور له صلة

اترك رد

يستخدم هذا الموقع أكيسمت للحد من البريد المزعج. تعلم كيفية معالجة البيانات تعليقك.