nexusphp set up PT Service Site tutorial PHP open source

Source: Internet
Author: User
Tags memcached mysql host mysql command line

What PT is. I am in the PT download introduction and the PT program source download has been introduced in the article, the simple point is that only download does not upload will let the BT download service.

I was the first to see the nexusphp open Source News, and then their own search to the author's Baidu space, see just open source soon, no wonder when I find the PT program did not find.

Playing the experience of the PT on the article has a simple nexusphp set up a tutorial, but not very detailed, I have a little more detailed tutorial.

In particular, it is necessary to build nexusphp need memcache support, the relevant tutorials can search their own, I use here Ampserv in this machine to build (Christie line when the expansion of the function of the memcached)

I have a free network space, upload up is because there is no memcached support so can not build, there is a VPS but do not want to test this thing, anyway, I was in the Windows system built to the campus users, the following we start.

First download the source code program from nexusphp website

PHP Open Source

Then import the database file, (Dbstructure.sql file under the root directory _db) to modify the configuration file, under the config file, there is a allconfig.php file, modify the following:

' SITENAME ' => ' site name '
' BaseURL ' => ' website URL '
' Announce_url ' => ' localhost/announce.php ' (URL address of announce)
' Mysql_host ' => ' MySQL host '
' Mysql_user ' => ' database username '
' Mysql_pass ' => ' database password '
' mysql_db ' => ' database name '

Playing with what was said (modifying ' classes\class_cache.php ' localhost as 127.0.0.1) seemed to avoid the following error:

Warning:memcache::connect () [Memcache.connect]: Can ' t connect to localhost: The connection attempt failed because the connecting party did not respond correctly after a period of time or the host connected was not responding. () ine:\apmserv5.2.6\www\htdocs\classes\class_cache.php on Line19

Www.2meiya.com

Next is the setup administrator

First visit the website and then register a username, then enter the database management (phpMyAdmin), in the Users table to find your registered users, edit its class attribute of 16

You can also set the following methods:

1. Use the normal way to register a new user on the website, assuming the username is admin.

2. Enter the following command to enter the MySQL command line management tool: Mysql-u root-p nexusrocks-h localhost Note: replace ' root ', ' nexusrocks ', ' localhost ' with your MySQL username, password , host address.

2. Enter the following command in the MySQL Command Line administration tool: use Nexus; UPDATE users SET class= ' 16′where username= ' admin '; Note: Replace the ' Nexus ' in the above command with your database name and replace ' admin ' with your registered username.

3. Exit MySQL command line management tool:

Here the PT is basically set up, now only need to use the Administrator account to the site settings and adjustments on it.

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.