Wednesday, January 26, 2011

Let WordPress in Ubuntu on the run

Help WordPress station were built based on Ubuntu local testing environment, the way to the WP friends recommended under Ubuntu Linux operating system open source this super-help build local Ubuntu fans Apache2 + Ubuntu + PHP5.1.6 + MySQL5.0.24a environment, so that you can do what you want to do work, if you want to build the site, by the way recommended by WordPress this open source super blog procedures-webmaster should have an experience when you develop a good website to upload files to server, later if you make changes to the layout or module, you must change the content uploaded on the server, there is a problem, you changed the test work do? can't modify, side while passing the test on the? if you change the error, add your site traffic is good, will scare innocent people to the site has had a negative impact on the image, the best solution is to build a WordPress locally on Ubuntu in a test environment, so that you can solve the above problem.

Closer to home, here's how to make WordPress for said in the run up on Ubuntu: [Apache2 + Ubuntu + PHP5.1.6 + MySQL5.0.24a] reference: NetworkAdvancedSerivce-UbuntuChinaWiki1, install Apache2 + PHP5 + MySQLsudoapt-getinstallapache2libapache2-mod-securitylibapache2-mod-php5php5php5-gdmysql-serverphp5-mysqlphpmyadmin2, configure php.inisudogedit/etc/apache2/php5/php.ini if not following this sentence or a comment, add this sentence or cancel previous English semicolon ";" Extension = mysql.so3, configure apache2.con sudogedit/etc/apache2/mod_rewrite module loaded apache2.con, adding the following statement: LoadModulerewrite_module/usr/lib/apache2/modules/mod_rewrite.so mod_deflate module is loaded, add the following statement: LoadModuledeflate_module/usr/lib/apache2/modules/mod_deflate.so what modules need to be added, remember they are/usr/lib/apache2/modules/here. Joined a virtual host: DocumentRoot/var/www/OptionsFollowSymLinksAllowOverrideall complete installed apache and mysql will start automatically. What optimization, security, do not have to consider that they are able to act according to their own needs to be configured, the key to this Server only your own. Later if you need to change the configuration, you only need to remember the commands. Sudo/etc/init.d/apache2restart # restart apacesudogedit/etc/apache2/php5/php.ini # configuration php.inisudogedit/etc/apache2/apache2.conf # configuration apache2.con/var/www/# home directory location 4, install WordPress last downloaded WordPress into a directory, use/var/www/http://localhost/wordpress/or http://127.0.0.1/wordpress/access can be a normal installation. My space used by MySQL and the local version are 4.0/5.0, so I'm inside this wp-includes/wp-db.php setting not garbled. Find: $ dbh = this-> & nbsp @ mysql_connect ($ dbhost, $ dbuser, $ dbpassword); in the following plus: $ this-> query ("SETNAMES ' utf8 '"); Server-well, now you can use it to debug plug-ins, templates, you can Rewrite.

Do you have, and I've got — let Linux use more exciting

Linux users may be very envious of Windows, because Windows has a lot of useful applications, but these software in their view it is not under Linux.

In fact, Linux is also a lot of very nice application, if you used, you may never want to see those ugly under Windows ... The author is using RedhatLinux7.0, depending on your experience, gather and organize some excellent ForLinux applications, writing this article for your reference. Linux Word download http://download.linuxbyte.net/office/word/abisuite-0.7.13-gtk-rh7.0-1.i386.rom home page URL: http://www.abisource.com/dl_linux_intel.ptml computer word processing is the most commonly used function, although the RedhatLinux7.0 default in Gedit Kedit, editor, but is far from satisfying the needs of the Office. AbiWord is AbiSuite, developed by word processing software, completely follow the Word design. For a used Word, you can quickly learn its method of operation. When we open AbiWord, the familiar Word interface to imitated immediately appear on the front (Figure 1), it can be imported into Word97, Word2000 and rich text format file, you can insert .BMP, .PNG, etc., but also has a find and replace, unlimited recovery (undo) and spell checking, and so on. RedhatLinux7.0 package comes with version does not support such as Chinput3.1 Chinese input, so you must download the latest version, such as the author uses AbiWord0.7.13 can handle Chinese. More interesting is that if your GNOME has set as GB2312, it will display in the entire Chinese interface. AbiWord installation is easy, simply download the RPM Redhat7.0 Edition installation package, you can install it using GnoRPM. Comparable GTKSee3.0 download ACDsee people to be much more ftp://ftp03.softhouse.com.cn/download2/47387gtksee-0-3-0-tar.gz home page URL: http://www.zg169.net/~hotaru/gtksee/index_en.html ACDsee I think we all used it, it's Windows platform the most famous image browser, Linux also have a similar software GTKSee. It consists of people of homegrown image browser software. Its interface and functions exactly the same as with ACDSee (shown in Figure 2, 3), as long as you use ACDSee will use GTKSee. It is powerful, not only support Linux commonly used image formats and also supports the Windows common image formats such as .JPG, .BMP, .GIF, and other common image. Displays image from GTKSeeBrowser and GTKSeeViewer composed of two parts. GTKSee because there is no RPM package for download, so you can only download the tar source code package, as regards the installation, simply perform the following steps: tarzxvf47387gtksee-0_3_0_tar.gz cdgtksee-0.3.0./configure make makeinstall Balse1.1.2 download http://www.linuxeden.com/download/downfile1.php?softid=103 home page URL: http://www.balsa.net/main.html in Linux the most commonly used mail processing software to count the Kmail under KDE. However, I want to assure you recommend is similar to the Windows mail client Foxmail software Balse (fig. 4). It is based on the software, support GNOME1.2 POP3 and IMAP protocol, SMTP mail support and when the local MTA (sendmail/qmail), using multiple threads to receive and significantly speed up the delivery speed. Also supports spell checking, reading MSOutlook format letter functionality. Installation method is also very simple, download the RPM installation package RedhatLinux7.0 Edition, using GnoRPM to install. Linux also has "kingsoft" download URL: http://www.linuxbyte.net/showsoftd.php?id=127 home page URL: no sorry, my English is not very good, when using Linux are often used in English to Chinese dictionary. In order to be able to make it easier to use, I find from the Internet (1) of the people develop interstellar translation Wang forLinux English-Chinese dictionary (as in Figure 5, 6). This English-Chinese dictionary, the functionality is similar to the Windows of kingsoft, in addition to the commonly used input query, but also has mouse check function word. Its installation is simple, you just have to download the tar package stardic untied, do. Wind page design essential Screem0.4.1 download http://download.linuxbyte.net/office/editor/screem-0.4.1.Tar.gz home page URL: http://www.screem.org Screem is a Web integrated development tools, support Chinese. Use the interface similar to Windows of Dreamweaver, integrated editing html files all the features you need, so that you can use to quickly build your own Web site (Figure 7). In addition to being able to display a different html ID, you can easily create Table, define the style sheet. At the same time also supports Plug-in features provide for future expansion interface! installation method: Screem because there is no RPM package for download, so you can only download the tar source code package, then install in the following way:./configure make su makeinstall exit Note: latest news, Screem has ForRedhat7 RPM package format, you can download and install. Antivirus software download-only option Linavx2.0.0 ftp://ftp03.softhouse.com.cn/download3/54675linavx-2.0.0-i386.shar home page URL: http://www.avx.ro/edownload/linux.htm Linux virus species although not up to the number of Windows, but with the programming technologies, more and more Linux virus will emerge. From a security perspective, I suggest you install LinavxforLinux software. It is a free anti-virus software, can be killing many Linux known viruses. Now we see how to install the download file Linavx extension name to shar, believe that the majority of my friends had not heard of, how to install? shar file is actually a can automatically run a script language (shellscript), since you can directly run script language, the installation should be very simple, direct running 54675linavx-2.0.0-i386.shar began Linavx installation. Once installed, please install file 54675linavx-2.0.0-i386.shar linavx.ini same directory to the directory the file copy under linavx-2.0.0 subdirectory, and then switch to linavx-2.0.0 directory, perform. future actions/linavx believe without me describe. Web browser extreme http://www.mozilla.org/Mozilla0.8.1ForLinux downloads home page URL: http://www.mozilla.org RedhatLinux7.0 comes with Netscape4.75, it not only on Chinese input support not perfect, but it doesn't show many pages, in order to be able to better surfing, I chose Mozilla0.8.1 browser. This browser has the reputation of Netscape, its latest version of the Chinese language support is quite good, but Netscape4.75 does not display properly in the Web pages that are using Mozilla0.8.1 well displayed. Installation method: after extraction, you can run. Finally, by the way, because it is a foreign company RedhatLinux7.0, so its default state is not a good support for simplified Chinese. If you want to install the software, and is used to handle Chinese, you must first be finished processing on RedhatLinux7.0. About localization issues, because not the scope of this article, please go to find related information.

Linux Terminal operation of quick guide

Command in the terminal can use many of the commands.

There are really only when the script is used. Here are some you might use a command. Do not forget that all of the commands and options are case sensitive. -R and-r, to perform different actions. Terminal command almost all lowercase. Cd use we are familiar with the CD command to switch between the directories. A note on Linux using a forward slash (/) instead of the familiar backslash (\). The backslash is used to, but is used only to describe the commands needed to wrap, you can improve the readability of your order. Lsls command is used to list a directory of all the files. You can use many different switch changes the list representation: ls-l list files in long format, including file size, date and time, properties on the file to time ls-t sort ls-S sort on the size of the file to a sort switch ls-r and combined use, in reverse order. Ls-t up-to-the-minute file displayed at the top of the list. Latest ls-t will appear in the bottom of the file. Ls-h easy to read format. Use k, M, G, and so on to identify the size of the file, not in bytes. Ls-a show directory all files including hidden cp use cp command to copy the files. This command and DOS copy command Basic. Basic switch as follows: cp-R recursively copy files; when you need to copy the entire directory will be used to force replication cp-f and overwrite the existing file, do not ask the user links to files, cp-l instead of replication; see the instructions below use the mv command mv to move and rename files. This command works basically the move command in DOS, but it can move the entire directory structure and all the files. Cat using the cat command to view the contents of the file. It is equivalent to type commands in DOS. It will dump the contents of a file to another file, the screen or other commands. Cat is concatenate short, you can also apply a series of files into one large file. You can use the command more more to view paginated documents. It is basically the more command in DOS. Lessless command is used to view the file, but it supports the up and down scroll as well as in the document for text search. Vi some people might say that he "virtuallyimpossible" vi. It is one of Unix's long history of the text editor. Vi do not truly intuitive, but now almost all kinds of UNIX environment with vi. For Linux installed version has a built-in tutorial, once you are familiar with the vi, just a few keystrokes you can complete the incredible tasks. To tell the truth, no editor can replace vi to edit password and profile.

About QQ password stolen back issues of policy

First of all, if your number is stolen, not necessarily to find, but it is not absolutely impossible, because nothing is absolute.

Let's look at the ones after the number of flows, the numbers were stolen, the majority of whereabouts not stay in his own hand, the number of path part is a chat room is a room of the "master" rushed out, here is divided into two types: 1, your number is very neat, pretty, short, 5, 6, 7-bit, etc. You want is not very large, if your number is password protected, and that you can remember to apply for protection of information, we will be able to get back to you to recover the password for the mailbox to be your password letter box, for example, 163.com, 163.net etc, then more a few times we will be able to get your password. Another case is when your number is not very pretty, such as 8-bit, 9 bit General number, with no protection, it also has a 50% success rate to get, why so? let's look at number of distractions, your number of passwords may be complex, but why throw? is it really a "master"? "is the Trojan horse master" magic! they get number mostly to chat rooms or forums to send a "crazy", and of course get the number of people are afraid to send number of people have protection, then the password retrieval, the way to your own number to get back, so "scramble" to the number of people that are casually change the password, and then continue to "grab" go here we come to look at the common password: 123.1234.12345.123456.111.1.11.1111.0.00.0000.000.aaa.aaaa.aa.a.ddd.dd.d.asd.asdf believe most people scan numbers also used these passwords! I say numbers have a 50% success rate to get say is those passwords can get back. Nice of you lost any number, please use the above password "guess"! maybe we can make it! if you lucky to succeed, if not successful, it is normal that number has been lost. But a lot of friends through my pointing back to get my password.

Multiple-boot WINDOWS NT and RED HAT LINUX instance

Host LEE has installed a WINDOWSNT4, disk two NTFS partition. wishes to install REDHATLINUX6.0, and achieve a multiboot, detailed procedures are as follows.

1. defragment the hard disk, clear of the unpartitioned space------------------------------use PQ5.0 can easily achieve, through the reorganization of the partition, get 445M unpartitioned space. 2. install via FTP REDHATLINUX--------------------------------first, the establishment of the FTP site at host XIU (NTSERVER4 + IIS2.0) on the establishment of the FTP service, the FTP home directory to the drive (F:), allow anonymous login. REDHAT installation CD into your CD-ROM drive. The second step, make a BOOT floppy disk for REDHAT installation, using tools such as HD-COPY software installation CD IMAGES directory of the file to a floppy disk BOOTNET.IMG. The third step, using a BOOT floppy disk boot produced by LEE, specify the network card to the host model, interrupt address, interrupt, native: model: NOVELLNE2000COMPATIBLE IOADDR.: 0 X300 IRQ: 10 Configuring native TCP/IP, IP address, subnet mask, default gateway, primary DNS address. then, specify the installation mode---FTP, given the IP address of the FTP site, REDHAT release directory.: FTPADDR: 192.168.0.155 DIR:/ The fourth step, BOOT partition, SWAP partition, ROOT, use DiskDruid tools, add three partitions: DSN MountPointSize (Megs)----------------------------------------/BOOT16da5 LINUXSWAP16da6/410da7 step five, initialize the partition, select the installed components. The sixth step, select the installation partition, to begin the installation. The seventh step, configuring the system. 7.1 configuring mouse 7.2 configure XWindows 7.3 configuration network 7.4 configure clock 7.5 choose to startup device 7.6 configure printer set root password 7.7 7.8 creating boot floppy 3. install LILO--------------in order to achieve using NTLDR to boot LINUX, do not use LILO installation in the master boot record (MBR), which will be installed in the BOOT LILO partition's first sector. 4. make implementation a multiboot BOOTSECT.LIN,----------------------------------LINUX installation is finished, you start still automatically enter NT, if you want access to LINUX, you must use the LINUX boot floppy disk in order to achieve the NTLDR to boot LINUX and begin making LINUX boot sector mirror files. The following two ways: 1) to use the LINUX command ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ use the startup disk into LINUX, ROOT account login, insert the floppy disk that holds the image as follows using the command create BOOTSECT.LIN # mount-tmsdos/dev/fd0/mnt # ddif =/dev/hda5bs = 512count = 1of =/mnt/bootsect.lin # umount/dev/d0 because Linux Boot partition is/dev/hda5, ' dd ' to generate boot record mapping file. 2) using NORTONDISKEDIT2000 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ use NORTONDISKEDIT, direct read BOOT partition's boot sector, and saves it as BOOTSECT.LIN file. process is as follows: a first step, view the hard disk partition table, get LINUX extended partition addresses. The second step, view the extended partition, partition table, BOOT partition (logical drive) boot sector of the starting address. The third step, the sector (with LILO typeface) stored on floppy BOOTSECT.LIN file. Specific can be found >. After the file is obtained, BOOTSECT.LIN restart LEE entered the NT, and then modify the BOOT.INI file, and copy to C:\ BOOTSECT.LIN file, set its property is set to read-only. BOOT.INI file ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [bootloader] timeout = 30 default = multi (0) disk (0) rdisk (0) partition (1) \WINNT [operatingsystems] multi (0) disk (0) rdisk (0) partition (1) \WINNT = "WindowsNTServerVersion4.00" multi (0) disk (0) rdisk (0) partition (1) \WINNT = "WindowsNTServerVersion4.00 [VGAmode]"/basevideo/sos C:\BOOTSECT.LIN = "REDHATLINUX "restart, you can now enter through selected single arbitrary system.

Migration from Windows to Linux device control applications

This system call to the specified device sends control code and other data.

The appropriate device drivers in accordance with the instructions of the dwIoControlCode control code. For example, use IOCTL_DISK_GET_DRIVE_GEOMETRY can get from a physical drive structure parameters (media type, cylinder, TracksPerCylinder, number of sectors per track, etc.). Can be found on the MSDN Web site for all control codes defined, header files, and other details (see references for related links). Whether you need to input/output buffer, and how they structure and size, depend on the actual ioctl process involves equipment and operations, and invokes the specified by the dwIoControlCode OK. If the overlapped operation of pointer set to NULL, then the DeviceIoControl would block (synchronization). Otherwise, its work asynchronously. Linux function ioctlLinux you can use the ioctl — intioctl (intfildes, intrequest,/* arg */...); — To specify the device to send control information. The first parameter fildes is open () function returns the file descriptor for alleged specific devices. And the corresponding system call DeviceIOControl ioctl, the input parameters list is not fixed. It depends on what ioctl request, as well as the instructions request parameters, just as Windows function DeviceIOControl dwIoControlCode parameter. However, the migration period need to be aware of when choosing the correct request parameters, because the DeviceIOControl ioctl request of dwIoControlCode and have different values. But there is no dwIoControlCode and request explicit mapping list. Usually you can find the associated header file request parameter values defined for the selected parameter value. All control codes defined in/usr/include/{asm, linux}/* .h file. Parameter arg as specific equipment operation provides detailed command information. The data type of the arg depends on the specific control requests. This parameter can be used to send detailed commands and receive returned data. Migration example we see a from Windows to Linux migration example. This example involves from PC main IDE hard drive read SMART log. Step 1-identification device types as mentioned earlier, Linux devices are used as file. It is first necessary to describe the device's file on Linux. Only use this file to get the device control requires a handle to the device. In this example, the object is an IDE hard disk drive. Linux be described as/dev/hdb/dev/hda, etc. This example will be the migration of hard disk device pathname is \\\\.\\PhysicalDrive0. /Dev/hda is the device corresponding to the Linux name of the file. 2. the changes include the header file must # include header files for Linux (see table 3): table 3. # include header files WindowsLinux # include # include # include # include # include # include # include # include windows.h contains open and close the device functions (CreateFile and CloseHandle). Accordingly, on Linux is used to open () and close () function that contains the header file types.h, sys/sys/stat.h and fcntl. Windows devioctl.h for function DeviceIoControl, we change it to sys/ioctl.h to ensure that the function ioctl can work. Ntddscsi.h (it is a header file from the DDK) defines a set of control codes for device control. Because this case deals only with IDE hard drives, so simply linux/hdreg.h added to Linux program. For other situations, it should be sure to include all header files (with the required control code is defined). For example, if you access the CD-ROM rather than a hard disk drive that contains the linux/cdrom. 3. the correct function and parameter now we take a closer look at the code. Listing 4 shows the details of the order. Listing 4. command details unsignedcharcmdBuf [7]; cmdBuff [0] = SMART_READ_LOG;//UsedforspecifyingSMART "commands" cmdBuff [1] = 1;//IDEsectorcountregistercmdBuff [2] = 1;//IDEsectornumberregistercmdBuff [3] = SMART_CYL_LOW;//IDElowordercylindervaluecmdBuff [4] = SMART_CYL_HI;//IDEhighordercylindervaluecmdBuff [5] = 0xA0 | (((Dev->Id-1)&1)*16);//IDEdrive/headregiStercmdBuff [6] = SMART_CMD;//ActualIDEcommand command information from ATA command instruction. Because this code ported to Linux does not need to be modified, so there is no need for further analysis. Listing 5 shows the code to open the Windows primary hard drive. 5. open the Windows primary hard drive HANDLEdevHandle = CreateFile ("\\\\.\\PhysicalDrive0",//patnameGENERIC_WRITE | GENERIC_READ,//AccessModeFILE_SHARE_READ | FILE_SHARE_WRITE,//SharingModeNULL, OPEN_EXISTING, 0, NULL);

Apache Server's httpd.conf file comments and configuration guide

We put httpdconf file is a simple note, here's just one comment had to ask, easy to browse if you want to contrast the original browser, we have prepared for you here is a zip file, this httpdconf page comments inside has to friends so confused the file, I'll give it another life a phpstarhttpdcon if you have any questions, please see wants information: http://wwwapacheorg/docs/.

The following is a detailed content--------------------------------------------------------------------------------before you start: 1, configuration, and write the file name is "Note: If you give a file name beginning with"/", then the server will use absolute directory. 2. If the given file name does not begin with "/", such as: "logs/foolog", and the current server directory is "/usr/local/apace/", then the server assumes that the log file here: "/usr/local/apache/logs/foolog" 3, attention: throughout the configuration process all the file names must use the slash "/", instead of the backslash "". Such as: "c:/apache" instead of "c:apache", here is not the same as with DOS--------------------------------------------------------------------------------an Apache server configuration directives don't split into three relatively centralized part 1 configure Apache server running all the environment variables to configure the primary server or 2 default server run-time details of the interface parameter 3 set virtual server, on the same Apache Server, it can complete a different IP address or host name of the Web requests that a single physical server can be set to a large number of IP addresses or host names in the first part of the virtual server: environment set # set server startup: independent startup (standalone) or by the Internet Server program to start inetd. # The default is to use independent startup (standalone). ServerTypestandalone # set server directory, to hold the server's configuration files, error file, the log file directory. # Note: the last of the directory can not be combined with the slash "/". ServerRoot "C:/Apace" # service starts, it put the parent program httpd code processid as to this # log/httpdpid file. This file name can be changed with PidFile directive PidFilelogs/httpdpid # set Apache Server execution log files. ScoreBoardFilelogs/apache_status # following both at the individual's preferences, if you think httpdconf file is too long, not found. # Then you can set the required settings on it only few srmconf rows, and then open it in the following: # the following two settings, in the standard configuration is turned on, we can not open it # remove the next line of "#" in front, enabling srmcon # ResourceConfigconf/srmcon # AccessConfigconf/accesscon # server and the client's maximum wait time # if client in 300 seconds is not connected, or the server 300 seconds is not transfer data to the client, it will automatically be disconnected. Timeout300 # set whether to support resume function default is set to support KeepAliveOn # support the resume functionality. The more the number of wasted hard disk space, the more the better the performance. # Set to 0 then there is no limit. MaxKeepAliveRequests100 # settings keep resume maximum wait time # if connection to a consumer in 15 seconds has not issued a request to the server, then he cannot use the resume functionality. KeepAliveTimeout15 # settings for the same period the number of child processes, to security, setting to zero MaxRequestsPerChild0 # set up the server with the number of the process. # This is the server's responsiveness to prevail, is too big it will slow ThreadsPerChild50 # allows you to use a different Port or IP address of the access server, you can open it. # Listen3000 # Listen12345678: 80 # set Apache to listen on the IP address, which is your native on the virtual server's IP address BindAddress127001 # open the current inactive predefined modules, here unless you really need, do not change it # LoadModuleanon_auth_modulemodules/ApacheModuleAuthAnondll # sets the server-generated status information. If set to "On", the resulting detailed information # ExtendedStatusOn---------------------------------------------------------------------------------Part 2 detail interface parameters set # set server independent use listening port. Port80 # set up the Server Manager's E-Mail address ServerAdmin siron @ phpstarcom # server host name. If you have a fixed IP address, you do not need to set settings for the storage site ServerNamelocalost # html files directory DocumentRoot ' C:/Apache/htdocs "# set/directory of the directive. Specific instructions are as follows: # Option: defined in the catalog to perform. # None indicates that you can only browse # FollowSymLinks allows pages to connect to another place, # ExecCGI allow execution of CGI, # MultiViews allowed to watch the animation or listening to music, such as to allow the server to return the Indexes # catalog formatted list and # Includes to allow the use of SSI. # You can check these settings. All you can do anything, but does not include the MultiViews. # AllowOverride: # plus None parameter indicates that anyone can browse the directory of the file, but does not read the file. # FileInfo allows you to control how the file type of the directive, # AuthConfig allows inspection of recognition directive, # Indexes allow control directory index of Directive use, # Limit allows you to control access to a host of Directive use, # Options allows you to control a specific Directory features of instruction using a # is set to All, then the server will allow all directives define ptionsFollowSymLinks AllowOverrideNone # displayed first. # You can change the DirectoryIndexindexhtmlindextm DirectoryIndexindextml # define each directory access control file name AccessFileNamehtaccess # define proxy server not to cache your page the default do not use # CacheNegotiatedDocs # this instruction set mime types configuration file is located, # name of the file is relative to the ServerRoot, does not recommend changing this file TypesConfigconf/mimetypes # Server error messages are logged to a log file, the file name can take # by ErrorLog directives set # for different virtual hosts set up different error records ErrorLoglogs/errorlog # set record stalls format LogFormat "% h% l% u% t"% r "% > s% b" Alias directive allows common # files outside the DocumentRoot can be stored in the local file system # ScriptAlias directives with the same Alias directive, except that it also marks changed directory contains CGI or PHP directive file # AddType directive to specify the type of content as the file name ends with the file name of the file's Deputy Alias/icons/' C:/Apache/icons/"Alias/test/' c:/php/test/" Alias/admin/' c:/admin/phpMyAdmin/"ScriptAlias/php/' c:/pp/" AddTypeapplication/x-httpd-phppp AddTypeapplication/x-httpd-php3pp3 Actionapplication/x-httpd-php "/php/phpexe" # AddIcon, AddIconByEncodingandAddIconByType are # is used to set the display different file types by using a list of illustrations; about each column # out file, display a list of the first meet of the diagram. AddIconByTypeVID,/icons/moviegifvideo/AddIcon/icons/binarygifbinexe # default file photo shows the DefaultIcon/icons/unknowngi # have a problem or an error occurs, you can configure Apache to do four response # 1 output custom customized message text # ErrorDocument500 "Theservermadeabooboo # 2 to import to a local URL to handle the problem/error # ErrorDocument404/missingtml # ErrorDocument404/cgi-bin/missing_handlerpl # 3 rerouting to an external URL to handle the problem/error # ErrorDocument402http://someother_servercom/subscription_infohtml