Teach you how to build a novel station with Jackie Chan

Source: Internet
Author: User

I built a novel station only less than a month of time, the middle met a lot of questions, take a lot of detours, if not there are a lot of enthusiastic webmaster help, I want this station (http://www.book560.com) it takes more time to build up. In order to allow more new people like me to quickly establish a novel station, I sorted out the website construction process and hoped it would be helpful to new people. Let's get started.
1. Create a local test environment
Use Jie Odd The environments required for the novel site: 1.php (4.3.0 or above), 2. Zend optimizer, 3. MySQL (4.0 or above), and 4. Apache/apache2. I have taken a lot of detours here. I have installed the required software one by one, and I do not know where the operation is wrong. It is always difficult to build a local testing environment. Later, an enthusiastic webmaster told me that I could install it with phpnow. one-click installation was fast and I was not afraid of errors.
: Http://www.skycn.com/soft/37687.html
You can install MySQL or IIS on your computer. If you have installed phpnow, you will be prompted when installing phpnow. Port Occupied. If occupied, you can only Port . To disable the service, choose "Control Panel"> "Governance Tools"> "service" to disable MySQL and IIS.
After phpnow is installed, open IE and enter it in the address: 127.0.0.1. The following content indicates that the installation is successful.
Enter the Database Password and click Connect. the following result is displayed, indicating that the database connection is successful.
MySQL test results
Server localhost connection is normal (5.0.51b-Community-NT-log)
The database test is connected normally.
Now the local test environment has been set up.
Ii. Installation Jie Odd Program
1. download.
I used Jie Odd The cracked version of 1.5 is now available on the Internet. Download it by yourself, so that you do not need to talk about my Trojans. Download and decompress Jie Odd All contents in the folder are copied to htdocs in the phpnow folder.
2. import data to the database.
Average Jie Odd ).
How to import data to the database: Open IE, enter 127.0.0.1/phpMyAdmin, and enter your database account and password for Logon. The general account is root, and the password here is 123456. Go to the page and click Import.
When importing database files, pay attention to the GBK character set of the selected files, as shown in. Find your database file and click execute. The database is successfully imported.
3. Get the registration code and set the define. php file.
Open your Jie Odd Folder to see which folder key. php is in. My folder is in the root directory.
Enter IE to 127.0.0.1/key. php and enter your domain name on the page that appears. Enter http: // 127.0.0.1 to get a string Code , Copy the code and open it. Jie Odd The define. php file in the config folder under the folder is entered as follows:
@ Define ('jieqi _ url', 'HTTP: // 127.0.0.1 /)
@ Define ('jieqi _ site_name ', 'reading swords ');
@ Define ('jieqi _ contact_email ',' *** @ 163.com ');
@ Define ('jieqi _ main_server ', 'HTTP: // 127.0.0.1 ');
@ Define ('jieqi _ user_entry ', 'HTTP: // 127.0.0.1 ');
@ Define ('jieqi _ meta_keyword', 'reading novels; http://www.book560.com; free online novels; fantasy novels; romance novels; online games novels; urban novels; martial arts novels; network fiction ');
@ Define, online reading of martial arts novels and online novels is always the fastest-updated and most novel. ');
@ Define ('jieqi _ meta_copyright', 'all novels, posts, and novel comments on this novel site are updated by netizens! It only represents the individual behavior of the publisher. It has nothing to do with the attitude of this novel station (www.kanshu3.com!
Copyright of all novels on this site is owned by the original author! If you inadvertently infringe on your rights or contain illegal content, please contact us in time and we will respond immediately! Thank you! ');
@ Define ('jieqi _ banner ','');
@ Define ('Enter the copied registration Code' here ');
@ Define ('jieqi _ db_type ', 'mysql'); (this is the database type. Do not change it)
@ Define ('jieqi _ db_prefix', 'jieqi ');
@ Define ('jieqi _ db_host ', 'localhost'); (do not change this)
@ Define ('jieqi _ db_user ', 'root ');
@ Define ('jieqi _ db_pass ', '20140901 ');
@ Define ('jieqi _ db_name ', 'mysql'); (this is the database name)
Save it.
4. Test the website and log on to the background.
When IE is input to 127.0.0.1 Jie Odd The default homepage of the program. enter 127.0.0.1/admin to enter the background, and the account and password are all admin. So far, Jie Odd The novel Station Program has been installed.
3. Collect novel data
At this time, some people may say that the layout is not properly configured. How can we start to collect data? I have to explain how to see the layout effect because the local test station does not have any data or a book? Therefore, we can collect a small amount of data and arrange the layout before the effect can be achieved.
1. collection rules. Find several collection rules, search for a large number of online ones, and pay attention to 1.5 collection rules. Put the downloaded collection rules in configs \ article. If it is too troublesome, I have a few here. Download them by yourself.
16 K collection rules 8-way collection rules Apsara stack collection rules
2. Modify the collectsite. php file. Open collectsite. php In configs \ article and add collection rules according to the writing format. For example:
$ Jieqicollectsite ['12'] ['name'] = 'xx literature net ';
$ Jieqicollectsite ['12'] ['config'] = 'xx _ com ';
$ Jieqicollectsite ['12'] ['url'] = '1 ';
$ Jieqicollectsite ['12'] ['barticleid'] = '';
$ Jieqicollectsite ['12'] ['enable'] = '1 ';
3. Start collection. Go to the website background-module governance-novel serialization-Batch collection by PAGE, and click Start collection. The collection speed is very fast. You can collect more than a dozen novels, mainly to see the homepage effect.
Iv. Homepage block settings
The number is occupied. When you open the homepage of the website, you can see the list of some novels, but the interface is poor. At this time, we can start to set the display block in the background.
1. Modify the display block. Log on to the backend-system governance-block governance. The list of blocks is displayed. the blocks are configured with the block name, location, sorting, and display type. We can click Edit to modify it. Generally, you only need to modify the block title, display position, and display type. The description of each block is clearly written here. I will not talk about it here. You must change the display type to "display all" when editing a block.
2. Clear the cache and create a static homepage. After the display block is set, you may not be able to see the changes when you re-open the homepage. This is because the cache is not cleared. In system tools, we can clear all the caches, refresh the static homepage, and then open the homepage to see the changes.
After setting the display block on the home page, our booksite is created locally. After the local test finds that the effect is satisfied, you can upload it to the space. In the future, you can test the effect locally before uploading it to the space.
5. Upload a program to a space
1. It should be noted that the uploaded space is new. Jie Odd The program also needs to re-import the database file and modify the define. php file. I will not repeat the method of importing database files here. If not, you can contact your space provider to help you import the files to the database.
2. To modify define. php, you must first obtain the registration code, and then enter the URL, database type, name, account, password, and other information in the define. php file, which is similar to the above local code. You can use the modified define. php file to overwrite the files in the space. Modifying the define file is troublesome, mainly because of the question of the registration code, so it is necessary to try more here.
3. Go to the background and adjust the block settings to the same settings as your local test. This ensures that the site in your space is the same as the local test site.
4. overwrite the local collectsite. php and collection rules to the corresponding folder in the space. In this way, you can start to collect data.

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.