当前位置: 首页 > news >正文

wordpress 关站在哪学习建网站

wordpress 关站,在哪学习建网站,旅游新闻热点,网页界面设计的用途Aidux阉割版Debain10,坑很多,比如找不到实际的系统日志,有知道的大神吗? 1 Apache2安装 # 测试Apache2 sudo apt update && sudo apt upgrade sudo apt install apache2 -y80端口疑似被禁止只能换端口 rootlocalhost:/…

Aidux阉割版Debain10,坑很多,比如找不到实际的系统日志,有知道的大神吗?

1 Apache2安装

# 测试Apache2  
sudo apt update && sudo apt upgrade
sudo apt install apache2 -y

80端口疑似被禁止只能换端口

root@localhost:/home# /etc/init.d/apache2 start
[....] Starting Apache httpd web server: apache2/usr/sbin/apache2ctl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
. ok
 

# 80端口疑似被禁止只能换端口
# 修改 /etc/apache2/ports.conf 将 Listen 80 改为自己需要的端口,如 Listen 9321

vim /etc/apache2/ports.conf 

 # 修改/etc/apache2/sites-enabled/000-default.conf 将第一行的
# <VirtualHost *:80> 改为自己需要的端口<VirtualHost *:9321>

vim /etc/apache2/sites-enabled/000-default.conf 

# 在document打开文件 /etc/apache2/apache2.conf
# 在最后添加:ServerName localhost:9321 

vim /etc/apache2/apache2.conf
apachectl start
apachectl restart
#几种不同写法
# service apache2 restart
# apachectl start
# apachectl restart
# /etc/init.d/apache2 start

root@localhost:/home# apachectl start

/usr/sbin/apachectl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
httpd (pid 22631) already running
root@localhost:/home# apachectl restart
/usr/sbin/apachectl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
 

 成功打开 

2 Nextcloud部署 

参考Example installation on Ubuntu 22.04 LTS — Nextcloud latest Administration Manual latest documentation

安装包zip上传到/var/www

Index of /server/releases (nextcloud.com)

sudo apt install unzip
cd /var/www/
unzip -q nextcloud-29.0.2.zip
sudo apt install mariadb-server libapache2-mod-php php-gd php-mysql \
php-curl php-mbstring php-intl php-gmp php-bcmath php-xml php-imagick php-zip -y

2.1 php8.x

现版本只支持php8.x以上的

sudo apt update
sudo apt-get install ca-certificates apt-transport-https software-properties-common -yecho "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.listwget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add -sudo apt-get update -y

 如果装错了版本,这将卸载所有以php7.3开头的包,包括php7.3-commonphp7.3-cli

sudo apt-get remove `dpkg -l | grep php7.3 | awk '{print $2}'`

2.2 Mysql安装

# 此处SSH远端会报错要重启APP
sudo apt install mlocate libapache2-mod-php mariadb-client mariadb-server wget unzip bzip2 curl php php-common php-curl php-gd php-mbstring php-mysql php-xml php-zip php-intl php-apcu php-redis php-http-request -y

 启动MySQL

service mysql start
sudo mysql -u root -p
CREATE USER '账号'@'localhost' IDENTIFIED BY '密码';
CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
GRANT ALL PRIVILEGES ON nextcloud.* TO '账号'@'localhost';
FLUSH PRIVILEGES;
quit;

hass@m 2 

mkdir /var/www/html/nextcloud/data
# 最后,将Nextcloud目录的所有权更改为HTTP 用户:
cd /var/www/
sudo chown -Rfv www-data:www-data /var/www/nextcloud

 再看看

cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/000-default.conf.bak

sudo vim /etc/apache2/sites-available/000-default.conf

<VirtualHost *:9321>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/nextcloud
Alias /nextcloud "/var/www/nextcloud/"<Directory "/var/www/nextcloud/">
Options +FollowSymlinks
AllowOverride All<IfModule mod_dav.c>
Dav off
</IfModule>Require all grantedSetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>ErrorLog ${APACHE_LOG_DIR}/nextcloud_error_log
CustomLog ${APACHE_LOG_DIR}/nextcloud_access_log common
</VirtualHost>

root@localhost:/home# apachectl start
/usr/sbin/apachectl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
root@localhost:/home# apachectl restart
/usr/sbin/apachectl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
httpd not running, trying to start
root@localhost:/home# /etc/init.d/apache2 start
[ ok ] Starting Apache httpd web server: apache2.
root@localhost:/home# apachectl status
/usr/sbin/apachectl: line 99: ulimit: open files: cannot modify limit: Operation not permitted
Setting ulimit failed. See README.Debian for more information.
/usr/sbin/apachectl: line 113: www-browser: command not found
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars
root@localhost:/home#

离奇又打不开了,欢迎赐教

http://www.yayakq.cn/news/133324/

相关文章:

  • 国网北京电力建设研究院网站泉州企业网站开发
  • 网站如何设置404页面不用下载直接浏览的网站
  • 如何做做网站哪个公司需要做网站
  • 天津市网站建设+网页制作wordpress获取登录权限
  • 最新开的手游传奇网站网站建设越来越注重用户体验
  • 模块网站开发工具用来网站备案注册什么公司好
  • 西安公司注册网站衡水建设局网站
  • 北京广告公司名录长沙网站优化对策
  • app门户网站营销型网站关键词多少为好
  • 旅游网站首页图片喷码机营销型网站
  • 网站建站工具有哪些南京市工程造价信息网
  • 如何创建网站 优帮云建站
  • 网站开发学校 优帮云商标注册官网入口官网
  • 莆田做网站卫计网站建设工作计划
  • 沈阳企业模板建站太原王建设
  • 多语种网站建设公司万国手表网站
  • html5静态网站哪些编程语言适合网站开发
  • 网站信息抽查评估thinkphp网站开发服务
  • 一个网站做各种好玩的实验网站开发人员需要什么要求
  • 质量好网站建设费用网站手机端页面怎么做
  • 广元市利州区建设局网站wordpress 5.2.2安装要求
  • 怎么用免费的网站空间易企秀怎么做招聘网站超链接
  • 哪些网站是做采购的西宁网站建设报价ew君博贴心
  • 技术教程优化搜索引擎整站中国化工建设协会网站
  • 做感恩网站的图片大全ydg wordpress theme
  • 做网站分为哪些功能的网站广告联盟怎么建设网站
  • 自己网站制作redis wordpress 设置密码
  • 淮安网站设计网站内容添加
  • 网站做违法的事情投诉wordpress文章添加标签居中
  • 网站后台插件江西南昌网站建设服务