无法让phpmyadmin工作,session_start():无法解码会话对象,会话已被销毁

whlutmcx  于 4个月前  发布在  PHP
关注(0)|答案(1)|浏览(56)

我一直在尝试让phpmyadmin 5-php 83在我的freebsd 13.2服务器上工作。
我已经设法让登录屏幕工作,但当我尝试登录我得到一个错误:phpMyAdmin - Error Error在会话开始期间的错误;请检查您的PHP和/或Web服务器日志文件,并配置您的PHP安装正确.还请确保在您的浏览器中启用cookie. session_start():会话对象解码失败,会话已销毁
我相信这与权限有关。我不知道php错误日志在哪里。
有人能帮我吗?
sudo chmod -R 755 /usr/local/www/phpMyAdmin
网址:http://www.sudotvar/log/php-fpm.log

`[27-Sep-2023 06:16:50] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful

[27-Sep-2023 06:16:50] NOTICE: fpm is running, pid 58418
[27-Sep-2023 06:16:50] NOTICE: ready to handle connections
[27-Sep-2023 12:46:57] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful

[27-Sep-2023 12:46:57] NOTICE: fpm is running, pid 91927
[27-Sep-2023 12:46:57] NOTICE: ready to handle connections`

字符串
/usr/local/www $ sudo tail/var/log/php-scripts.log没有显示任何内容。
编辑01.10.2023 23:07:
z@myrkur:~ $ sudo tail/var/log/httpd-error.log

Password:
[Sun Oct 01 22:51:12.714450 2023] [mpm_prefork:notice] [pid 82594] AH00163: Apache/2.4.57 (FreeBSD) PHP/8.3.0alpha2 configured -- resuming normal operations
[Sun Oct 01 22:51:12.714563 2023] [core:notice] [pid 82594] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Sun Oct 01 22:51:25.550426 2023] [authz_host:error] [pid 82697] [client 104.28.226.138:12356] AH01753: access check of '.myrkur.net' to /phpmyadmin/ failed, reason: unable to get the remote host name
[Sun Oct 01 22:51:25.550578 2023] [authz_host:error] [pid 82697] [client 104.28.226.138:12356] AH01753: access check of '.myrkur.net' to /phpmyadmin/index.php failed, reason: unable to get the remote host name
[Sun Oct 01 22:52:06.572645 2023] [authz_host:error] [pid 82803] [client 104.28.194.138:14745] AH01753: access check of '.myrkur.net' to /phpmyadmin/ failed, reason: unable to get the remote host name
[Sun Oct 01 22:52:06.572800 2023] [authz_host:error] [pid 82803] [client 104.28.194.138:14745] AH01753: access check of '.myrkur.net' to /phpmyadmin/index.php failed, reason: unable to get the remote host name
[Sun Oct 01 22:52:14.383309 2023] [authz_host:error] [pid 82893] [client 104.28.194.138:14594] AH01753: access check of '.myrkur.net' to /phpmyadmin/index.php failed, reason: unable to get the remote host name
[Sun Oct 01 23:04:21.438995 2023] [authz_host:error] [pid 82699] [client 104.28.226.138:12772] AH01753: access check of '.myrkur.net' to /phpmyadmin/ failed, reason: unable to get the remote host name
[Sun Oct 01 23:04:21.439104 2023] [authz_host:error] [pid 82699] [client 104.28.226.138:12772] AH01753: access check of '.myrkur.net' to /phpmyadmin/index.php failed, reason: unable to get the remote host name
[Sun Oct 01 23:04:30.958554 2023] [authz_host:error] [pid 82697] [client 104.28.194.138:14469] AH01753: access check of '.myrkur.net' to /phpmyadmin/index.php failed, reason: unable to get the remote host name


z@myrkur:~ $ sudo tail/var/log/httpd-access.log

104.28.194.138 - - [01/Oct/2023:22:52:06 +0000] "GET /phpmyadmin/ HTTP/1.1" 200 4442
104.28.194.138 - - [01/Oct/2023:22:52:14 +0000] "POST /phpmyadmin/index.php?route=/ HTTP/1.1" 200 1213
104.28.194.138 - - [01/Oct/2023:22:52:34 +0000] "-" 408 -
104.28.226.138 - - [01/Oct/2023:23:01:53 +0000] "GET / HTTP/1.1" 200 371
104.28.226.138 - - [01/Oct/2023:23:01:53 +0000] "GET /favicon.ico HTTP/1.1" 404 196
104.28.226.138 - - [01/Oct/2023:23:04:21 +0000] "GET /phpmyadmin/ HTTP/1.1" 200 4440
104.28.194.138 - - [01/Oct/2023:23:04:30 +0000] "POST /phpmyadmin/index.php?route=/ HTTP/1.1" 200 1213
104.28.194.138 - - [01/Oct/2023:23:04:50 +0000] "-" 408 -
87.250.224.16 - - [01/Oct/2023:23:07:23 +0000] "GET /robots.txt HTTP/1.1" 404 196
87.250.224.8 - - [01/Oct/2023:23:07:23 +0000] "GET /wot/u%20wot/ HTTP/1.1" 404 196


编辑2:

# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
    AllowOverride none
#    Require all denied
Require ip 192.168.0.0/24
Require all granted
</Directory>

/usr/local/etc/apache24/httpd.conf: 561 lines, 21589 characters.
z@myrkur:/usr/local/www/apache24/data $ sudo service apache24 restart
Performing sanity check on apache24 configuration:
Syntax OK
Stopping apache24.
Waiting for PIDS: 14508.
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.


我试过同样的错误有什么想法吗

gpfsuwkq

gpfsuwkq1#

有一天,我试图在FreeBSD上安装MyBB,使用Apache。MyBB需要我启用一些模块才能使其工作。我在配置文件中通过取消LoadModule行的注解来启用它们。我重新启动服务器,但MyBB仍然拒绝工作,如果我没记错的话,Apache没有错误。
结果,我不得不单独打包安装php模块。即使它们在httpd.config中启用,如果我没有单独打包安装它们,它也不会工作。我相信我使用了mod_php83为php顺便说一句。

相关问题