我有一个运行nginx1.0.15的CentOS 6.5 x64服务器(FPM/FastCGI) 5.5.8和MySQL 5.5.35。
我安装了phpMyAdmin 4.1.5,并配置了一个nginx,其中html_root链接到phpMyAdmin目录。
我的问题是,当我打开地址(https://172.28.65.80:8060)时,我从phpMyAdmin获得了这个错误:
Fatal error: Call to undefined function __() in /usr/share/phpMyAdmin/libraries/core.lib.php on line 229
我做错
因为某种原因我不能启动nginx。
服务器是OpenSUSE;我完成了以下操作:
安装http://nginx.org/download/nginx-1.0.5.tar.gz
解压文件夹
运行/配置
制作
制造安装
nginx已经被提取到/usr/local/ nginx /sbin,在这里我可以看到nginx。但是当我试图运行任何命令时,它会说“命令没有找到”。
在运行时。/配置它说;
Configuration summary
+ using system PCRE library
+ OpenSSL library is not used
+ using system zli
每次我尝试以非root用户身份运行容器时,都会得到以下错误:
the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
Dockerfile:
FROM nginx:1.17.6
RUN chown -R nginx:nginx /var/cache/nginx && \
chown -R nginx:nginx /var/log/nginx &am
Apache没有安装,只有nginx。
启动Ubuntu 22.04时:
$ service nginx status
× nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-07-20 13:09:24 EDT; 1
我使用laravel new test来建立Laravel项目,并将所有目录移到/usr/share/nginx/html/中,这是Nginx的默认根目录。为了检查nginx的配置是否正确,我简单地将autoindex上的配置,trun,并将索引,html放到/usr/share/nginx/html/test/public/中,即laravel的index.php的位置。
defaul.conf of nginx
server {
listen 80;
server_name localhost;
#charset koi8-r;
#acces
nginx: [warn] conflicting server name "lolnews.com.br" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "lolnews.com.br" on 0.0.0.0:80, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is success
我在Oracle Linux 7坞映像上安装了nginx(rh-nginx116-nginx)。启动容器后,在启动nginx服务时,会得到以下错误:-
[root@7b5b3ae7d392 /]# systemctl status rh-nginx116-nginx
● rh-nginx116-nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/rh-nginx116-nginx.service; disabled; vendor preset:
我想增加DirectAdmin上安装的Nginx中的worker_process,然后打开这个文件:
nano /etc/nginx/nginx.conf
但是它没有Worker_process,下面是所有代码:
#user nginx;
# The number of worker processes is changed automatically by CustomBuild, according to the number of CPU cores, if it's set to "1"
pid /var/run/nginx.pid;
#error_lo
我向我的nginx服务器添加了一个新的SSL证书(我以前做过很多次了)。但是,当我重新启动nginx时,没有任何站点在工作。
当我运行configtest时,它说:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
如果nginx正在运行,而我运行的是nginx重新加载,则站点和新的ssl证书正在工作。
只有当Nginx重新启动时,我才会注意到:
nginx: the configu
所以,这是我的问题。由于Nginx是在我的服务器上设置的,所以我不得不在ubuntu和nginx用户ID之间来回切换权限。
要使更新在WordPress中工作,nginx需要具有完全的权限。
对于FTP访问,ubuntu需要有完全的权限。
当将权限授予其中一个时,另一个将停止工作。所以我可以使用FTP访问,也可以在WordPress中进行更新,而不是两者兼而有之。
我尝试过创建一个组并为这个组设置完整的权限,但是无法让它工作。
nginx用户和ubuntu用户都在nginx组中,nginx组似乎对主目录有权限(递归地--至少我假设是这样!)
ls -l /var/www的结果是:
total
我在一个新服务器上安装了Ubuntu18.04Nginx主线,当前版本为nginx/1.15.6。
无论我如何尝试重新加载nginx,它都不会出现错误,但是它不能工作,配置不会重新加载:
# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
#
# service nginx reload
# /etc/init.d/nginx reload
[ ok ] Rel
我无法重新装上我的Nginx。
如果我做了sudo /bin/systemctl reload nginx,我得到:Failed to reload nginx.service: Unit nginx.service not found.
如果我做nginx -t或nginx -V,我得到:
The program 'nginx' can be found in the following packages: * nginx-core * nginx-extras * nginx-full * nginx-light
如果我做了which nginx,我什么也得不到。
我有以下定义:
class nginx::install{
...
}
class nginx::service{
...
}
class nginx::config{
...
}
class nginx{
include nginx::install, nginx::service, nginx::config
}
class jenkins::nginx{
include nginx
file{'/etc/nginx/sites-enabled/jenkins':
source => ...,
require =>
今天我执行了/use/local/nginx/conf/nginx.conf -t to nginx,但是它显示了以下错误:
[root@ddqcsAPP ~]# /usr/local/nginx/conf/nginx.conf -t
/usr/local/nginx/conf/nginx.conf: line 3: worker_processes: command not found
/usr/local/nginx/conf/nginx.conf: line 9: pid: command not found
/usr/local/nginx/conf/nginx.conf: lin