Operating environment: Fedora 1.0 Core, this article is how to install php4.34 mysql4.0.16 apache-2.0.48 with source package, this version is currently the latest and most stable version; this article is just the simplest installation operation That is to say, let a newbie can build a simple website that supports Apache and supports PHP and MySQL; a little description: For masters, this is all pediatrics, so this article is for masters. There is no value. Because we are familiar with Apache, we care more about extended features, such as support for ASP JSP. If you are a beginner Linux, or have not successfully compiled Apache MySQL PHP installation, I still recommend watching this article, at least Apache and PHP MySQL installation a bit understanding, this is also the purpose I wrote this article ;
============================================================================================================================================================================================================= ============ 正:: ==================================================================================================================================================================================================================== ==========================
============================================================================================================================================================================================================= ============ First, if you have used the Apache and PHP installed by the RPM package, you can now completely remove it. We have to learn this command with rpm -qa, query the corresponding PHP, MySQL, and Apache's RPM, then remove these packs one one one one one, then removes one one one ============== ==============================================
1. Uninstall mysql; [root @ Linuxsir01 root] # rpm -qa | grep mysqllibdbi-dbd-mysql-0.6.5-7mod_auth_mysql-20030510-3php-mysql-4.3.3-6mysql-3.23.58-4mysql-bench-3.23 .58-4MYSQL-Server-3.23.58-4freeradius-mysql-0.9.1-1mysql-wevol-3.23.58-4 [root @ Linuxsir01 root] # uninstall process: starting from the bottom of the package, because some things It is in order. So this is to pay attention. Here, we should first remove mysql-devel-3.23.58-4, and then freeradius-mysql-0.9.1-1, you have to come; the method is: [root @ Linuxsir01 root] # RPM-E Mysql-Devel, for example, if we want to uninstall PHP-MySQL-4.3.3-6, you should use the following method [root @ Linuxsir01 root] # rpm -e php-mysql this should be understood :) If there is any unloading, there is order, such as PHP, of course, first to remove PHP; 2. Uninstall Apache, method and mysql method are the same. [root @ Linuxsir01 root] # rpm -qa | grep httpdredhat-config-httpd-1.1.0.47-10htpd-manual-2.0.47-10httpd-2.0.47-103. Uninstall PHP, and The method of mysql is the same; [root @ Linuxsir01 root] # rpm -qa | grep phpasp2php-0.76.2-6PHP-DOMXML-4.3.3-6PHP-mysql-4.3.3-6ASP2PHP-GTK-0.76.2-6PHP -4.3.3-6PHP-ODBC-4.3.3-6PHP-XMLRPC-4.3.3-6PHP-IMAP-4.3.3.3-6PHP-DEVEL-4.3.3-6PHP-LDAP-4.3 .3-6PHP-SNMP-4.3.3-6 Note: If there is a unloaded package, you should add parameters to uninstall. For example, we uninstall PHP-SNMP-4.3.3-6, it is difficult, it is necessary to find Dependent package, first remove that package, then let this package. There may be really unloaded. The parameters should be used with --Nodeps. For example [root @ Linuxsir01 root] # rpm -e php-snmp-4.3.3-6 --Nodeps
============================================================================================================================================================================================================= ============ Second, install mysql =================================================================================================================================================================================== ================================ 1. Download: The latest and most stable version should be mysql-4.0.16, such as We built a temporary installation directory Software in the / Opt directory, put the mysql-4.0.16.tar.gz downloaded, put it in / opt / software / directory; [root @ Linuxsir01 root] # MKDIR / OPT / Software
http://www.mysql.com/get/downloads/....IHostUnit.com/
2. Unzip, compile and install: 1] Decompression [root @ Linuxsir01 root] # CD / OPT / Software [root @ Linuxsir01 Software] # lsmysql-4.0.16.tar.gz [root @ Linuxsir01 Software] #tar zxvf MySQL- 4.0.16.tar.gz 2] Compilation and installation: In this place, it is worth noting that we have to install MySQL-4.0.16 into our designated directory. For system and security and optimization, it is recommended to use your own source package The installed server class software is placed in the / OPT directory. So here, we have to install mysql-4.0.16 into / opt / mysql; [root @ Linuxsir01 Software] #CD [root @ Linuxsir01 Software] # cd mysql-4.0.16 [root @ Linuxsir01 MySQL -4.0.16] #. / Configure --prefix = / opt / mysql --with-mysqld-user = beinan --with-charset = GB2312 --WITH-EXTRA-CHARS = All --With-UNIX-Socket- PATH = / OPT / MySQL / VAR / MySQL.SOCK [Note] One point for the option of Configure: - prefix = / opt / mysql The mysql-4.0.16 is specified in the / OPT / MySQL directory; - with -Charset = GB2312 Specifies the mysql default language to GB2312, which is Chinese; - with-extra-chars = all support for multi-language; - with-unix-socket-path = / OPT / mysql / var / mysql.sock This is the location and file name where the online socket file is specified, that is, if the MySQL server is successfully started, you can see the mysql.sock file in the / OPT / MySQL / Var directory. If you can't see it, you can't start my mysql. --with-mysqld-user = beinan This is the MYSQL server can also allow the normal user Beinan in the system to start the MySQL server. Of course, I have to learn to live :) You can also change Beinan to your system already existing users, such as the SIR in your system, then replace Beinan into SIR. The advantage of starting MySQL with ordinary users is: MySQL process will die automatically. Of course, the root user can, but sometimes MySQL has some process dead, but it will not exit automatically, and root can't kill. So use ordinary users such a benefit, most of the mysql process is dead, but will not quit; [root @ Linuxsir01 mysql-4.0.16] #make [root @ Linuxsir01 MySQL-4.0.16] #make INSTALL is installed:) 3] Formulate mysql: Installation is just the first step, we also have to formulate the corresponding form of MySQL; in general, mysql is looking for formulation file my.cnf, where we are in / etc directory, so we You have to put the file my.cnf file in / etc / directory. Let the MySQL server starts when it starts.
After we install MySQL, the formulation file should be in the / opt / mysql / share / mysql directory, such as my-huge.cnf my-medium.cnf my-large.cnf my-small.cnf, different The traffic website and the different formulated server environments, of course, there is a need for different formulation files. In general, MY-Medium.cnf will meet most of our needs; enter / opt / mysql this directory, look at it is installed? ? [root @ Linuxsir01 mysql-4.0.16] # cd / opt / mysql / [root @ Linuxsir01 mysql] # lsbin incrude info liblibexec man mysql-test share sql-bench We put / opt / mysql / share / mysql this directory MY-Medium.cnf, copy it to my.cnf to / etc directory. [root @ Linuxsir01 mysql] # cp /opt/mysql/share/mysql/my-medium.cnf /etc/my.cnf has to create a MySQL licensed form, otherwise the database is not started. MySQL_INSTALL_DB, the use of this command is to do this. Mysql commands are installed in / opt / mysql / bin. [root @ Linuxsir01 mysql] # / opt / mysql / bin / mysql_install_db runs the mysql_install_db command, we will find that there is a VAR directory. This catalog is used to install all databases. For example, after we create LinuxSir's database, there is a directory in the / OPT / MySQL / VAR directory. This should be understood. 4] Start the MySQL server, it may be the easiest, but it is not too early because there will be an error in permissions. :) MySQL server starts, should be the mysql.server startup method in the / opt / mysql / share / mysql directory is: [root @ Linuxsir01 mysql] # /opt/mysql/share/mysql/mysql.server Start launched, we To see if mysql is started, you should use the following command; [root @ Linuxsir01 mysql] # ps -aux | grep mysqld If only the following line, the mysql is not started.
Root 3345 0.0 0.1 5812 648 PTS / 2 s 17:41 0:00 Grep MySQLD How do we view error messages? Where do you view? You should go to the / opt / mysql / var directory to find a file with .ERR suffixed file; [root @ Linuxsir01 var] # cd / opt / myql / var [root @ Linuxsir01 var] # more * .rr may exist The following error message: 031203 14:49:10 mysqld Started031203 14:49:10 can't Start Server: Bind on unix socket: permission denied031203 14:49:10 do you already Have another mysqld server running on socket: / tmp / MySQL.SOCK? 031203 14:49:10 Aborting031203 14:49:10 / OPT / mysql / libexec / mysqld: shutdown completion031203 14:49:10 mysqld ended actually this is permission, we set the permissions to set the permission OK. . The permissions we have to set is / opt / mysql / var. To set to 1777. The method is: [root @ Linuxsir01 mysql] # chmod -r 1777 / opt / mysql / var then restart the MySQL server. [root @ linuxsir01 mysql] # /opt/mysql/share/mysql/mysql.server start is it successful? ? [root @ Linuxsir01 mysql] #ps -aux | grep mysql5] In order to make MySQL can also make us compiled the specified ordinary user Beinan can also start the MySQL server. So we have to place the / opt / mysql directory to the Beinan user, here, we want to use the chown command. [root @ Linuxsir01 MySQL] # chown -r beinan.beinan / opt / mysql / If you compile, for example, the SIR user already exists in the system should be the following approach, we should learn to learn to live, right ? [root @ Linuxsir01 mysql] # chown -r sir.sir / opt / mysql / to this mysql has been compiled and installed, below We want to introduce a little Mysql's basic management, and the most basic usage. If you want to learn more, you should find a Mysql manual, now there is a lot of online. Crouch, right? ? 3. Mysql a little, the most basic foundation 1] How to create a mysqld database management user? ? After the database is installed, we should create an administrative account for the MySQL database. To set the root user as an administrator, we should run the following command; [root @ Linuxsir01 root] # / opt / mysql / bin / mysqladmin -u root password 123456 [root @ Linuxsir01 root] # By the command, we can Know that the administrator of the mysql database is root, the password is 123456.
2] How do I enter mySQL database? Take the mysql database administrator root, the password is 123456 as an example; [root @ Linuxsir01 root] # / opt / mysql / bin / mysql -uroot -p123456 After outputting the above command, the following prompts; Welcome to the MySQL Monitor . Commands end with; or /g.your mysql connection ID is 6 to server version: 3.23.58type 'help;' or '/ h' for help. Type '/ c' to clear the buffer.mysql> Note: Operation When the command, you should open the MySQLD server. These novice brothers have long known:) 3] How to operate commands in the database, I think this is the MySQL manual, I mainly say a few things that you have to pay attention to. In fact, I will not have a few commands. If you want to learn the brother, it is not difficult; in Windows Operates mysql, it is also the same here, MySQL is cross-platform database, usage is the same. In the mysql database, each operation is; the end of the end, there may be a new hand brother, forget the input; the end, the result is noted. :) :) 1] What databases do you have in mysql? Source code:
mysql> show data;
--------
| Database |
--------
| mysql |
| Test |
--------
2 rows in set (0.00 sec)
MySQL>
After mysql installation, after setting the administrator, first enter the system, we use the show databases; command to view the list of databases, find two databases, mysql, and test, this is the system built, it is to make everyone practice of. 4] How to create and delete a database? For example, I want to create a database called Linux, I should run mysql> create database [Database Name]; so we should run the following command to create a database named Linux, Mysql> Create Database Linux; Query Ok, 1 ROW Affected (0.00 sec) isn't it built? ? It must be built, because there is OK :) Check whether there is Linux this database?
Source code:
mysql> show data;
--------
| Database |
--------
| Linux |
| mysql |
| Test |
--------
3 rows in set (0.00 sec)
MySQL>
Then how do we delete a database? ? MySQL> DROP DATABASE [Database Name]; if we want to delete the Linux database you just created, use the following command; mysql> DROP DATABASE Linux; query ok, 0 rows affected (0.00 sec) is not deleted? ?
Source code:
mysql> show data;
---------- | Database |
--------
| mysql |
| Test |
--------
2 rows in set (0.00 sec)
MySQL>
5] How to operate a database, this problem is more, it is recommended to look at the mysql manual. There are too many things inside. If you operate a database, you should first specify a database as the current database, you should use the USE command mysql> use [database], for example, I want to specify the Linux database for the current database, should be mysql> use Linux; database changeMysql> 6] backup database? ? For example, we have to back up the database already known as Linux in MySQL. To use the command mysqldump command format as follows: [Root @ Linuxsir01 root] # / opt / mysql / bin / mysqldump -uroot -p Linux> / root / linux. SQLENTER Password: In the above command, you must understand two things. First, the backup database is to back up the database as a database administrator; second: Backup destination is / root, backup file name is Linux. SQL. In fact, the location and file name of the backup, according to its own situation. File names can be taken by themselves, and the path can also be arranged by themselves; [root @ LinuxSir01 root] # / opt / mysql / bin / mysqldump -uroot -p Linux> /Home/beinan/linuxsir031130.sqlenter password: Enter the database administrator root herein to / home / beinan directory In summary of the backup file of the database in MySQL, LinuxSir031130.SQL, we have to learn to work. :) :) 5] How to import the backed up database into the database? First we still have to operate the above procedures, such as adding database administrators (if you do not add Mysql database administrators), create a database. For example, we have to import LinuxSir031130.sql in / home / beinan, import named Linux, you should do the following; [root @ Linuxsir01 root] # / opt / mysql / bin / mysql -uroot -p Linux show status; view process
Source code:
Mysql> show processlist;
-- ------ --------- ---- --------- ---- - ------ ------------------
| ID | User | Host | DB | Command | TIME | State | Info |
-- ------ --------- ---- --------- ---- - ------ ------------------ | 16 | root | localhost | null | query | 0 | Null | Show ProcessList |
-- ------ --------- ---- --------- ---- - ------ ------------------
1 row in set (0.00 sec)
MySQL>
View the table, you should first specify a database as the current database; such as a database named Linux; mysql> use Linux; mysql> show tables; Empty Set (0.00 sec) mysql> 7] A point to the mysql database common command; A commonly used mysql-related management command mysql command: basic text, display, and use MySQL database. Previously, you have a simple use method; such as login, etc.
The mysqladmin command is used to create and maintain the command of the mysql database. It is already easy to mention; isamchk is a database file used to fix, check, and optimize .ism suffix; mysqldump is used for backup database, which is already a brief description. Myisamchk is used to fix the .myi suffix database file; for example, we have to check the database named Linux. Does the MYI database table exist problems, should use the following command; to stop the MySQLD server [root @ Linuxsir01 root] # / OPT / MySQL / Share / MySQL.Server Stop then execute [root @ Linuxsir01 root] # / opt / mysql / bin / myisamchk /opt/mysql/var/linux/*.myi The above command is to check all .myi files, Database directory in / opt / mysql / var / linux / directory, if there is a problem, use -R parameters to repair [root @ Linuxsir01 root] # / opt / mysql / bin / myisamchk -r / opt / mysql / var / Linux / *. myi6] mysqlshow command: Display the database and table selected by the user [root @ Linuxsir01 root] # / opt / mysql / bin / mysqlshow -uroot -p [database name] For example, I want to view the database named Linux; should Yes: [root @ Linuxsir01 root] # / opt / mysql / bin / mysqlshow -uroot -p Linux ============================= ================================== third, install apache-2.0.48 ======== ============================================================================================================================================================================================================= ==== 1. Download: The latest and most stable version should be httpd-2.0.48, such as we build a temporary installation directory Software in the / OPT directory, put the downloaded httpd-2.0.48.tar.gz In the / OPT / Software / Directory; http: //nagoya.apache.org/mirror/htt...d-2.0.48.tar.gz2. Unzip: [Root @ Linuxsir01 mysql] # CD / OPT / Software / [root @
LinuxSir01 Software] # ls mysql-4.0.16 httpd-2.0.48.tar.gz mysql-4.0.16.tar.gz [root @ Linuxsir01 Software] #tar zxvf httpd-2.0.48.tar.gz 3. Compile: It is worth noting this place that we have to install HTTPD-2.0.48 into our designated directory, suggest that you have the server class software installed with source package in / OPT directory for system and security and optimization. So here, we have to install httpd-2.0.48 to / opt / apache in this directory; [root @ Linuxsir01 Software] # CD httpd-2.0.48 [root @ Linuxsir01 httpd-2.0.48] #. / Configure --prefix = / opt / apache --enable-track-vars --enable-cgi --with-config-file-path = / opt / apache / confes a simple description: This apache installation, there are many Options, if you are more proficient, it is necessary to see this article, you can define your own. Because I am using the default formulation, if you want Apache more features, such as support compression output and JSP, you can see other articles. This document also wants to write a simple entry article written by the brothers of the beginners, saying that it is to give LINUX how to install Apache and support PHP MySQL. It can make the brothers of Linux's brothers she rack one of the simplest websites, so that they can understand and study in depth. I have written this article only; - prefix = / opt / apache specifies to install the APAHCE to the / OPT / Apache directory; - Enable-CGI supports CGI; - with-config-file-path = / OPT / Apache / confed specifies that the formulation of Apache is placed in / opt / apache / conf; such as httpd.conf formulated files in this directory; - Enable-track-vars To launch cookie's get / post and other tracking functions if More options may be viewed by the following command; [root @ Linuxsir01 httpd-2.0.48] #. / Configure --Help Next is make and make install [root @ linuxsir01 httpd-2.0.48] #make [root @ Linuxsir01 httpd-2.0.48] #make install After the installation is complete, generate / opt / apache4 in the / opt / directory. Start Apache; if we successfully compile, we first think of how to start apache, here, We must understand the Apache's daemon is an / opt / apache / bin directory ApachectL; launch Apache daemon; [root @ Linuxsir01 httpd-2.0.0.48] # / opt / apache / bin / apachectl start Open the browser, enter http: // localhost can see an Apache welcome page, indicating that we have successfully solved the installation of Apache.
Installation is just the first step, then how do we formulate her, such as what we want to specify the list of websites stored? ? 5. Formulate Apache, we only make a simple explanation, just let a website can run it simple, if we started, we can learn more; if you learn, you can't have a day, you may have to spend a lifetime, maybe for a lifetime I don't have learned:) 1] The formulation of the file is /opt/apache/conf/httpd.conf, if it is installed with the RPM package, should be in / etc / httpd / confation, if it is other method installed Using locate httpd.conf to find. 2] Compilation and installation Apache default storage main page should be / opt / apache / htdocs. We can empty this directory and then change to your own things. Of course, we can also specify a directory to store our own small station; 3] When you change the file, we have to back up the original file, remember! ! [root @ Linuxsir01 root] # cp /opt/apache/conf/httpd.conf /opt/apache/conf/httpd.confbak3. Some important formulation options: serverroot "/ opt / apache" [Note] This is ServerRoot specified The directory where the Apache program is located, such as log files, formulated files, etc., do not change. Listen 80 [Note] Apache default port 80, if you want to change to other port access, change it. It is best not to change it. For example, I want to change to 8080, when I visited the URL, I should use the following format http://www.linuxsir.org:8080 serveradmin root @ localhost Note: On here, put the administrator's mailbox, such as my management mailbox It is Beinan@linuxSir.com to change this sentence for serveradmin beinan@linuxSir.com #servername new.host.name:80 Note: The # number in front is to cancel it, we have to add a line below. For example, I have no domain name, I use my own machine's IP set to 192.168.0.1, so I set the same here; it should be: Of course, this is consistent with the IP address set by my machine, here, I The IP address of the NIC, I have set it to 192.168.0.1ServerName 192.168.0.1:80documentroot "/ opt / apache / htdocs" This is a directory where the webpage is stored, that is, we should specify where the contents of the web page are, so When the URL is accessed, the file of this directory is called. For example, I specify the directory of the page to / var / home / freewill, which should write documentroot "/ var / home / freewill"
For example, I set it up / var / home / freewill, in this sentence, this / var / home / freewill is:
Don't forget to set permissions, remember! ! [root @ linuxsir01 www] # chmod -r 755 freewill then restart the Apache 's daemon httpd [root @ Linuxsir01 apache] # / opt / apache / bin / apachectl restart View whether the Apache server has been launched? ? [root @ Linuxsir01 Apache] # PS AUX | GREP HTTPD Enter 192.168.0.1 in the browser's address bar or Localhost, so you should see the page.
:) :) Note: If it is through the root user, or other users copy the corresponding website file to the directory of the website, you want to change the permissions of all the files in the directory, is what the chmod -r 755 directory Name, OK? ? ============================================================================================================================================================================================================= ============ 4, install php ================================== ============================ 1. Download PHP latest and most stable version PHP-4.3.4, you can choose the download address yourself; We built a temporary installation directory Software in the / Opt directory, put the PHP-4.3.4.tar.bz2 downloaded, put it in the / OPT / Software / directory; http://cn.php.net/get/ PHP-4.3.4.tar.bz2 / from / A / mirror2. Unzip: [Root @ LinuxSir01 Software] # lshttpd-2.0.48 mysql-4.0.16 httpd-2.0.48.tar.gz mysql-4.0.16. tar.gz php-4.3.4.tar.bz2 [root @ Linuxsir01 Software] #tar jxvf php-4.3.4.tar.bz23. Compilation and installation: Note that this article is a PHP installed by dynamic compilation; [root @ linuxsir01 Software] # CD PHP-4.3.4 [root @ Linuxsir01 PHP-4.3.4] #. / configure --prefix = / opt / php --with-mysql = / opt / mysql --with-apxs2 = / OPT / Apache / bin / apxs --enable-track-vars --enable-forward-cgi-redirect --with-config-file-path = / opt / php / etc 一: - prefix = / opt / php specified PHP-4.3.4 Install to / Opt / PHP directory; - with-mysql = / opt / mysql Specifies the location of the mysql data server installation; - with-apxs2 = / opt / apache / bin / apxs This is joining Apache The location of the DSO module; -ENABLE-TRACK-VARS is a tracking function of the cookie GET / POST --with-config-file-path =
/ OPT / PHP / ETC Specifies the directory of the PHP's formulation file to be stored in / OPT / PHP / etc directory, after we installed, you must copy php.ini to this directory. Installation: [root @ Linuxsir01 PHP-4.3.4] #make [root @ Linuxsir01 PHP-4.3.4] #make install copy php.ini-distant is php.ini, and stored in / OPT / PHP / ETC / directory [root @ Linuxsir01 PHP-4.3.4] # cp php.ini-dist /opt/php/php/php.ini edited /opt/php/etc/php.ini file, find the following line; default_charset = "ISO- 8859-1 "Add a line below this line DEFAULT_CHARSET =" GB2312 "other formulation, I don't understand myself, I don't understand: (, find a PHP manual to read. Do not change, but may not Suitable for you. Because this article is just a start, I am also a scholastic, I don't understand something, I will not write, because I wrote the article is based on practice, I can't practice it. Is it written? :) 4. Change the Apache's formulation: Get a line, the purpose is to let Apache explain the PHP program. Find the line of #addtype application / x-tar .tgz, add a line below. Don't add ## in front. AddType Application / X-httpd-php .php Find the following line plus index.php, this means that the default page of the website can also be able to index.php directoryindex index.html index.html.var index.php Note: Change HTTP After .conf, restart the Apache server, otherwise it will not take effect! ! 5] Then we build an index.php file in the directory stored in the website. We still use the front Apache to specify the location where the website is stored, / var / home / freewill directory. Built a file index.php in this directory, the content is as follows Phpinfo ();> and then change the permissions of this file CHMOD 755 index.php into http://localhost/index.php: //localhost/index.php in the browser You can see the PHP information. If it still appears Phpinfo ();?> The word page, that is, no success: (, you may have changed the Apache's formulation file, forgot to restart the Apache server, try it to try. Try apache mysql After the PHP is prepared, restart the httpd and mysql service, and have already said the method. Look back and review it again. Maybe the newbie will forget this thing, this will be reminded. ============== ===================================================================================== 5.
Install the VBB Forum; ================================================ ================ Description: This article is in the form of from before, in the form of the front Apache, the example of us is, put the website in / var / Home / freewill this directory. So now, I still use this example; 1 download, you can download 2.32 version of the 2.32 version of 2 to CNVBB.COM to create a MySQL database. I have already said, look back to see; 3 Put the compressed package to the directory you set up. In, then decompress it. For example, we specify the storage directory of the website is / var / home / freewill, that should be copied to this directory, if it is a RAR file, you have to install the software that can solve RAR, which is at www.linuxsir. There is WinRAR in the download of ORG, press the instructions. Unzip command [root @ Linuxsir01 freewill] # RAR X RAR compressed file name If it is a zip compression package, you should use unzip command [root @ Linuxsir01 freewill] # unzip with the file name of the zip suffix, then put the decompressed generated directory, change For the catalog of you, such as BBS, we have to use the mv [root @ Linuxsir01 freewill] #mv The original directory name is changed. For example, I want to change the / var / home / freewill named VBB23 BBS, it should be [root @ Linuxsir01 freewill] #CD / var / home / freewill [root @ Linuxsir01 freewill] #mv vb23 bbs I feel that the young brother should also know this. :) For example, the unlocked compressed file has two directories, one is UPLOAD, the other is extras, then change the UPLOAD directory to BBS is OK. In fact, there is no change, just when I visit, I want to use a directory such as http://www.linuxsir.org/upload, if it is changed to the name of the BBS, it should be http: // Www.linuxsir.org/bbs This directory. I want to want to go, or change it, this memory is convenient. Of course, it's okay to you like it. 4 After entering the decompressed directory, if you have changed to the BBS directory, enter the admin directory, copy config.php.new to config.php [root @ Linuxsir01 bbs] cd admin [root @ Linuxsir01 admin] # CP config .php.new config.php [root @ linuxsir01 admin] # 5 changes config.php file. $ dbservertype = "mysql"; // The host name or IP address of the server, this remains unchanged.
$ ServerName = "localhost"; // Log in to the username and password to the database, put your database management password. For example, the password of the database is 123456, which is the setting below. $ dbusername = "root"; $ dbpassword = "123456"; // database name, if your database is Linux, so you can change into your database name $ dbname = "linux"; // Provide technical support mailbox Address - Any error will be sent to this mailbox, add your management mailbox. $ TECHNICALEMAIL = "beinan@linuxsir.com"; // Do not continuously connect with the database // 0 = not using // 1 = $ usPconnect = 0; // Allow which users can view the management log // Separate Uesrid $ canviewadminLog = "1" of each user; // Allow which users can delete the management log // Separately separate the uesrid $ canpruneadminLog = "1" of each user using a comma; 6 After config.php, we To create a database. As mentioned earlier; if you haven't created a database, as well as database administrators, etc., it is now created. If you create these, see the previous description 7 Installation: In the browser to enter the address: such as http://192.168.0.1/bbs/admin/install.php This step is installed step. After the installation is complete, there will be prompt to delete the corresponding file, such as install.php, etc., remember! ! 8 Access: Enter your address in the address bar of the browser to access. There should be no problem.
============================================================================================================================================================================================================= ============6, the application and setting of the dynamic domain name: ============================== =========================================== 9. If you have ADSL, it is PPPoE Coiled, we can use the following Command, know your IP address, that is, external access: [root @ Linuxsir01 root] # ifconfig PPP0pp0 Link Encap: Point-to-Point Protocolinet Addr: 218.85.160.1 Mask: 255.255.255.255 UP pOINTOPOINT RUNNING nOARP MULTICAST MTU: 1492 Metric: 1RX packets: 1290 errors: 0 dropped: 0 overruns: 0 frame: 0TX packets: 1323 errors: 0 dropped: 0 overruns: 0 carrier: 0collisions: 0 txqueuelen: 3RX bytes: 1321840 ( 1.2 MB) TX bytes: 181060 (176.8 KB) Above, we have access to the Internet is the address of 218.85.179.201. So if we want users to access us on the Internet to our machine, we should pass the address of 218.85.179.201. For example, http://218.85.179.201/bbs can access the BBS we have erected. In fact, this is also more trouble, there is a relatively simple, it is to apply for a three-level dynamic domain name. There is now available on www.3322.org. We can apply for one. Of course, it is also necessary to download its dynamic update IP. This is convenient. http://www.3322.org/dyndnspage/ez-i...-linux-i386.tgz If you don't receive your password. Remember! For example, we apply at http://linuxsir001.3322.org, this domain name, you have to remember your username and password. Because the IP is updated with the software, you also want the username and password.