Articles of wordpress

使用mariadb安装WordPress时出现错误“您的PHP安装似乎缺lessWordPress所需的MySQL扩展。”

rpm -e –nodeps mysql-libs yum install MariaDB-server 上面的命令帮我安装了mariadb,也安装了wordpress。 这是一个很大的帮助。 我现在的问题是当我重新启动服务器或重新启动Apache这里是错误: "Your PHP installation appears to be missing the MySQL extension which is required by WordPress." 我怎么解决这个问题?

Nginx服务器301永久移动

当我做了curl -v http://site-wordpress.com:81我收到了这个结果: * About to connect() to site-wordpress.com port 81 (#0) * Trying ip… connected * Connected to site-wordpress.com (ip) port 81 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-unknown-linux-gnu) libcurl/7.19.7 NSS/3.12.6.2 zlib/1.2.3 libidn/1.18 libssh2/1.2.2 > Host: site-wordpress.com:81 > Accept: */* > < HTTP/1.1 301 Moved Permanently < Server: nginx/1.2.4 < Date: Fri, […]

Nginxredirect问题

我的Nginx设置目前有这样的: location / { if (!-e $request_filename){ rewrite ^/(.*)$ https://domain.com/index.php?id=$1 redirect; } } 基本上对于不存在的页面(404),它将用户redirect到主页。 但是现在我在https://domain.com/blog/上有一个wordpress博客设置,但是任何wordpress项目,例如。 https://domain.com/blog/test也被redirect到主页。 我不知道如何解决这个问题?

Nginxconfiguration – 我无法访问WordPresspipe理区域

对于Nginx来说,我是一个完整的noob,但是我正在尝试切换到我的WordPress站点。 一切正常,甚至永久链接,但我不能访问我的WordPresspipe理目录(我得到一个403错误)。 我有我的WordPress安装在一个子文件夹,所以使我的一些事情复杂一点。 这是我的Nginxconfiguration文件: server { server_name mydomain.com; access_log /srv/www/mydomain.com/logs/access.log; error_log /srv/www/mydomain.com/logs/error.log; root /srv/www/mydomain.com/public_html; location / { index index.php; # This is cool because no php is touched for static content. # include the "?$args" part so non-default permalinks doesn't break when using query string try_files $uri $uri/ /index.php?$args; } location /myWordpressDir { try_files $uri […]

Apache文件夹和文件权限

我希望我来这个问题的正确的网站。 基本上是这样的情况 您拥有Apache上托pipe的文件夹名称“Testfolder”。 testing文件夹包含只有域上的某些用户才能看到的文件。 例 file1.htm = Can only be viewed by all users file2.htm = Can only be viewed by Domain Admin, Guy2, Guy3 所以当你通过例子\ WebServer \ Site Name \ testfolder \ file1&file2.htm访问它们时,它们可以被各自的用户正确地查看。 然而,当你去“testwebsite.com/testfolder”,任何人都可以查看所有的文件,并忽略文件夹的权限,对于这种情况的任何想法,如果任何人可以帮助解决这个问题,将会非常感激。

不备份在WordPress安装中不改变的文件

我有一个WordPress安装,我想知道什么是最好的做法,当涉及到备份。 我在这里问,而不是WordPress.stackexchange这个问题不仅是一个WordPress的问题,而是一个普遍的备份问题。 是否可以不备份不会改变的文件。 例如在我的安装我有文件,如主题和插件目录,这将不会改变,我会有这些文件在原始状态的副本。 我的想法是,他们不应该需要备份,因为他们可以在任何时候恢复。 这是好逻辑吗? 或者更好地备份服务器上的所有内容? 注意:我不是在谈论数据库,因为这个基础是每周备份(小站点)

nginx虚拟主机redirect到本地主机

我有一个虚拟主机不断redirect到本地主机的nginxconfiguration。 我已经testing并重新加载configuration,/ etc / hosts正在做当前的名称parsing,并且已经清除了浏览器caching。 这是我的nginx.conf user www-data www-data; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 1024; # multi_accept on; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; gzip on; gzip_disable "msie6"; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } 这是我的idu-lms.mainconfiguration server { root /var/www/wordpress/htdocs; […]

为什么使用wordpress启用php_fpm fastcgi_cache,NGINX运行缓慢?

我有一点麻烦。 我在rtcamp.com上一步一步的按照教程一步步的做了wordpress多站点,只是把“example.com” 改成了我的域名。 我安装了nginx helper插件,它看起来像整个网站,一切都很好。 (这是一个由LAMP设置移动的大约40个站点​​的networking) 我有一个问题,但。 即使使用fastcgi_cache进行configuration,我的页面加载时间也非常高。 这是当我查看源代码时间戳时读取的内容: <!–Cached using Nginx-Helper on 2013-03-12 00:21:19. It took 62 queries executed in 13.000 seconds. Visit http://wordpress.org/extend/plugins/nginx-helper/faq/ for more details –> 这不会发生在根网站上,只与子目录网站发生。 这里是我的configuration:这是网站可用/ example.com #move next 3 lines to /etc/nginx/nginx.conf if you want to use fastcgi_cache across many sites fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:500m inactive=60m; fastcgi_cache_key "$scheme$request_method$host$request_uri"; fastcgi_cache_use_stale […]

WordPress的子目录apache2没有浏览索引和.htaccess

对不起,如果这之前已经问过,但我通过其他职位看,无法find我的答案。 WordPress的启动和运行在/ var / www / wordpress /然而,当我浏览到www.mysite.com我得到的文件和文件夹列表如下: 指数 / Name Last modified Size Description index.html 12-Mar-2013 18:31 177 wordpress/ 08-Jan-2012 17:01 – Apache / 2.2.22(Ubuntu)服务器在www.mysite.com端口80 如果我点击wordpress目录,我被带到我的网站。 我问了一个朋友,他说修改.htaccess但没有这样的名称在/ var / www / 我如何获得apache将我的默认主页/目录设置为/var/www/wordpress/(index.php)? 我试着取消注释ServerRoot“/ var / www / wordpress” 但是,这导致尝试重新启动Apache的错误: – 无法findports.conf – 无法findconf.d事情从那里走下坡… 我是否修改网站 – 可用/默认? 我修改apache.conf? 我添加一个.htaccess文件? 此外,由于这是一个新的设置,我如何确保安装,我读了很多人使用特制的.htaccess文件? 谢谢你的帮助! 网站的内容 – 可用/ wordpress: […]

在IIS中输出caching不适用于WordPress php文件

我启用输出caching的PHP文件 <configuration> <system.webServer> <serverRuntime frequentHitThreshold="1" frequentHitTimePeriod="00:00:30" /> <caching> <profiles> <add extension="*.php" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="00:00:59" location="Any" varyByQueryString="*" /> </profiles> </caching> </system.webServer> </configuration> caching适用于打印时间的PHPtesting文件 http://www.ahangbaz.com/time.php 但它不适用于wordpress(date打印在第三行的页面上) http://www.ahangbaz.com/index.php/4002/omega-el-producto/ 我没有在wordpress中使用任何插件。