英文:
WordPress in OpenShift/Kubernetes
问题
AH00558: apache2: 无法可靠地确定服务器的FQDN,使用10.128.2.60。全局设置“ServerName”指令以抑制此消息
(13) 权限被拒绝:AH00072:make_sock:无法连接到地址[::]:80
(13) 权限被拒绝:AH00072:make_sock:无法连接到地址0.0.0.0:80
没有可用的监听套接字,关闭
AH00015:无法打开日志
这是我的WordPress部署文件:
apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress
spec:
replicas: 1
selector:
matchLabels:
app: wordpress
template:
metadata:
labels:
app: wordpress
spec:
containers:
- name: wordpress
image: wordpress:5.8.3-php7.4-apache
ports:
- containerPort: 8443
name: wordpress
volumeMounts:
- name: wordpress-data
mountPath: /var/www/html
env:
- name: WORDPRESS_DB_HOST
value: mysql-service.default.svc.cluster.local
- name: WORDPRESS_DB_PASSWORD
valueFrom:
secretKeyRef:
name: wp-db-secrets
key: MYSQL_ROOT_PASSWORD
- name: WORDPRESS_DB_USER
value: root
- name: WORDPRESS_DB_NAME
value: wordpress
volumes:
- name: wordpress-data
persistentVolumeClaim:
claimName: wordpress-volume
我的服务:
kind: Service
apiVersion: v1
metadata:
name: wordpress-service
spec:
type: LoadBalancer
selector:
app: wordpress
ports:
- name: http
protocol: TCP
port: 8443
targetPort: 8443
我只需将它返回给我的IP地址并登录WordPress。
英文:
I'm just doing a wordpress deploy to practice openshift, I have this problem that I can't solve:
AH00558: apache2: Unable to reliably determine the FQDN of the server, using [10.128.2.60](https://10.128.2.60/). Globally set the "ServerName" directive to suppress this message
(13) Permission denied: AH00072: make_sock: unable to connect to address \[::\]:80
(13) Permission denied: AH00072: make_sock: unable to connect to address [0.0.0.0:80](https://0.0.0.0:80/)
no listening sockets available, switch off
AH00015: Unable to open logs
This is my wordpress deployment file:
apiVersion: apps/v1
kind: Deployments
metadata:
name: wordpress
specs:
replies: 1
selector:
matchLabels:
apps: wordpress
templates:
metadata:
labels:
apps: wordpress
specs:
containers:
- name: wordpress
image: wordpress:5.8.3-php7.4-apache
ports:
- containerPort: 8443
name: wordpress
volumeMounts:
- name: wordpress-data
mountPath: /var/www
env:
- name: WORDPRESS_DB_HOST
value: mysql-service.default.svc.cluster.local
- name: WORDPRESS_DB_PASSWORD
valueFrom:
secretKeyRef:
name: wp-db-secrets
key: MYSQL_ROOT_PASSWORD
- name: WORDPRESS_DB_USER
value: root
- name: WORDPRESS_DB_NAME
value: wordpress
volumes:
- name: wordpress-data
persistentVolumeClaim:
claimName: wordpress-volume
My Service:
kind: Service
apiVersion: v1
metadata:
name: wordpress-service
specs:
type: LoadBalancer
selector:
apps: wordpress
ports:
- name: http
protocol: TCP
port: 8443
targetPort: 8443
I should simply put the ip address it returns to me and log into wordpress
答案1
得分: 1
权限被拒绝在端口80上,您配置的端口是8443
使用
英文:
Permission denied is on port 80, your configured port is 8443
Access it with <ip>:8443 or change it to Port 80
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论