Use Phpdig to build your own Google

Source: Internet
Author: User
Tags connect mysql mysql version net php file php download version access
Google


Do you know Google? Do you know Baidu? As a netizen, you must have used these tools, do you want to have your own super search engine? Do you want to go beyond these internet search giants? Where is the starting point of your dream? Then do the vertical search engine bar.



Here's how to use Phpdig to build a vertical search engine that belongs to you.



   One, what is Phpdig?



Phpdig is a very popular foreign vertical search engine products (rather than a product, rather than a traditional search engine), the use of PHP language writing, using the PHP program to run high efficiency, greatly improved the search response speed, It can search the internet like Google or Baidu, as well as other search engines, and search content includes txt, doc, XLS, PDFs, and other files in addition to ordinary pages, with powerful content search and file parsing capabilities. Phpdig, like the traditional search engine, contains the following three basic technologies:



   1. Spider Technology



   2. The Technology of Web page structured information extraction or meta 



   3. Word segmentation, Indexing technology



Different from the traditional search engine, Phpdig is suitable for the personalized search engine with stronger specialization and deeper level, it is the best choice to use it to build a vertical search engine for a certain field.



   Second, how to obtain this phpdig?



Phpdig is a free product (need to retain copyright), the latest version is phpdig-1.8.9 in order to avoid Apache and MySQL version compatibility issues, the proposed lower level version, the website address is: http://www.phpdig.net, Download address is: Http://www.phpdig.net/navigation.php?action=download Explain, I tried the phpdig-1.8.9 version, but there are many problems, instead of PHPdig-1.8.8 the problem is less.



   Iii. Specific steps



   1. Access to Products



Access http://www.phpdig.net/navigation.php?action=download download PHPdig-1.8.8 to desktop, extract to the Apache server HTML directory, the general path is: D:\usr\www\ Html\, (if you do not install the Apache server, please install in advance, recommend the use of Mappm-server v1.1.9 final,mappm-server using a fool-type installation, a fix, easy to debug and run the Php/cgi+mysql program).



   2. Run and configure the Phpdig database



Open the browser input http://localhost/phpdig/press ENTER, the page lists all Phpdig files and include folders, find a Find no default first page file (Default,index), Click search.php file for error: Unable to connect to database:check the connection script. Hint cannot complete the database connection, originally we have not completed the Phpdig database configuration. Go back to the admin directory to find the install.php file, click to run, at first glance, the English-language interface (explain, Phpdig currently all versions do not support Chinese interface), no relationship, if you have the Chinese experience may wish to do their own Chinese, here to provide a copy of my own Chinese cn-language.php Download the document (please copy it to the locales directory). In addition, you will need to modify the config.php files (language modifications) and style.css files (font modifications and style modifications) in the includes directory.



Enter install.php after the system requires us to enter Phpdig Admin username and password, by default, are admin, enter after the following interface (after the Han):




(Figure 1)



The information you need to provide is:



If you are testing locally, please enter the default server name localhost (localhost is the default server name under Mappm-server, which is MySQL's default name, mappm-server built-in MySQL database) Database server port defaults to 3126, you can not fill in, the Database sock protocol defaults to NULL, the user name defaults to root (mappm-server default username), the password is you install mappm-server when the user password entered, Phpdig database name defaults to Phpdig, can be arbitrarily modified, at the same time, you can prefix the data table in the database, the default is null.



If you are uploading to a Web server connected to the Internet, ask the server provider for the name or IP address of the MySQL server, as well as the database server port, sock protocol, username, password, and so on, the database name and the data table prefix settings above.



As for the four radio buttons on the right, you can choose the default "build database" for initial use (installation), depending on the situation.



Confirm that the above information is correct, click the Install button, if the connection database is not successful will prompt "Cannot connect to the database" error message, if the database connection succeeds will jump directly into the Administration page as follows:




(Figure 2)









[1] [2] Next page




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.