(' WordPress '); /** MySQL Database username */define (' WordPress '); /** MySQL Database password */define (' your password ');
Copying files to the root directory of the Web site generally sets/var/www as the root of the Web site.
sudo mkdir-p/var/www
Copy files:
sudo cp-r ~/wordpress/*/var/www
Fix permissions:
Previously, Shanda cloud server was installed with an apache server on ubuntu, but the website always lost its response inexplicably. It was necessary to restart apache to provide normal services. There was no exception in reading logs, I am too lazy to study it. I just want to change it to nginx. It is easier to move wordpress from apache to nginx. Copy the sour
WordPress is a very popular blog system, it can use the mod_rewrite of Apache to achieve the static URL. Installed WordPress After the persistent link is configured, Generates a. htaccess file at the root of the Web site (if writable), which instructs Apache on how to URL rewrite (if the server is configured to allow htaccess instructions), its contents are as follows:
# BEGIN WordPressRewriteengine onRewr
Nginx to allow WordPress to support fixed-link pseudo-static rules
For Nginx to support WordPress fixed links is very simple, you need to add point configuration code:
Copy Code code as follows:
Location/{
if (-f $request _filename/index.html) {
Rewrite (. *) $1/index.html break;
}
if (-f $request _filena
Wordpress 3.0 rewrite Rules in nginx
The multi-site feature has been enabled in wordpress recently, and the test is normal. However, when I insert an image in the article, I encountered a problem. Follow the previous installation settings. One step is to create the blogs. dir directory under the wp-content directory to store the files uploaded by the user. When a
In the past, apache + wordpress was used when I was playing with wordpress. However, although I became an nginx fan, it was only used for nginx + python development and did not work with nginx + php. This time I tried to build a debugging environment for
Wordpress
WordPress is still the world's most popular blog system, more and more by the WordPress built Web site in the use of Nginx Server Software, here to share the WordPress nginx rewrite rules:
server {Listen 80;
fastcgi_script_name; Include Fastcgi_params; } 7) Test Installation successsudo nano/usr/share/nginx/html/info.php File, enter Phpinfo (); ?> Restart Nginx after saving sudo service nginx restart Enter the URL to see the PHP information page that indicates that the installation was successful. 8) Install phpMyAdminsudo apt-get install phpMyAdmin su
Start the iptables website in the Centos + nginx + wordpress environment and return the 502 website environment: Centos nbsp; nginx nbsp; php (wordpress). The following is a summary of the current problems: 502 is returned when the iptables website is started, close iptables website open normal I start iptables websi
I rented an aliyun server and now it runs Django + fastcgi and runs normally. I want to add a wordpress blog, use php5-fpm. Blog. conf configuration: {code ...} I want to use the second-level domain name blog.joinwee.com, re-activated the php5-fpm, but the access is still prompted to be inaccessible... I rented an aliyun server and now it runs Django + fastcgi and runs normally. I want to add a wordpress bl
Server Configuration
CPU model [8 core] Intel (R) Xeon (r) CPU E5620 @ 2.40GHZ | Usage Frequency: 2394.021 | Second-level cache: 12288 KB | bogomips:4788.04x8
Memory 4G
HDD 3 x 300G 15000 turn to RAID 5
WordPress 3.8
CentOS 5.7nginx/1.2.7Php5.2.17p1MySQL 5.1.60
Nginx php mysql These parameters should be how to configure
Reply content:
Server ConfigurationCPU model [8 core] Intel (R) Xeon (r) CPU E5620
website files.# SCP [email protected]:/home/wwwroot/default/home/wwwroot/default# chown Www.www/home/wwwroot/defaultIt is important to note that: Node1 the running Nginx of users ID in the Node2 to exist, and ID also have the same, otherwise may be accessed when the error. in the Node1 Start Nginx , in Node2 on Start PHP-FPM . in browser access http://192.168.2.11 can enter
The problem is this: I am accustomed to add "wp-admin" directly behind the blog address to enter the WordPress backstage, but in the future found no matter what I point to any of the management subkeys, all 404 (Can not find the page), the moment I was embarrassed, this is God horse condition ...
Carefully looked at the link to manage the child, found that they are all similar to "//www.jb51.net/blog/edit.php" such, the key is that they are less "/wp
Http://www.gongzi.org/nginxstartwp-super-cache-mod_rewrite.html Original Address
The question was tangled up in the afternoon, and finally settled.But also not white tangled, review the Linux command.Just started this plan to use WordPress plugin way to solve, but later tried a half day WP Super Cache (do not know what situation) or not.Finally helpless occasion to see a more easy way (the heart began not to believe it line), rely on ~ incredibly so
) ${Expires 24 h;Access_log off;} Restart your nginxFixed Link (URL rewriting) rules in nginxIt is only used for a single WordPress site (usually installed by default), not multiple sites. Insert the following code into the root of location: The code is as follows:Copy code If (! -F $ request_filename ){Set $ rule_1 1 $ rule_1;}If (! -D $ request_filename ){Set $ rule_1 2 $ rule_1;}If ($ rule_1 = "21 "){Rewrite/./index. php last;} My
.}------------------Complete the Configuration:
This is my complete WordPress nginx rewrite rule configuration.1. Change the nginx rewrite url to 301 redirection.2. nginx rewrite iamle.cn is redirected to www.jb51.net.3. nginx WordPress
expression to the Nginx conf file.
—————————————————–
Location/{
Put it here.
}
—————————————————-
Complete configuration:
This is my complete wordpress nginx rewrite rule configuration.
1, nginx rewrite URL change 301 redirect.
2, Nginx rewrite iamle.cn redirect to Www.jb
Rented is the Aliyun server, now running django+fastcgi, normal operation. Want to add a WordPress blog up, with PHP5-FPM.
BLOG.CONF configuration:
server {listen 80;server_name blog.joinwee.com;error_log /alidata1/wwwlogs/blog.error.log;access_log /alidata1/wwwlogs/blog.access.log;location / { index index.html index.htm index.php; root /alidata1/wordpress/; if (-f $request_filename/in
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.