我试图在Apache 10.15Catalina上的httpd.conf配置文件中加载PHP5.6或PHP7.0模块。但是,当我在终端中使用sudo apachectl start启动Apache服务器时,会收到以下错误:
httpd: Syntax error on line 187 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/opt/php@5.6/lib/httpd/modules/libphp5.so into server: dlopen(/usr/local/opt/php@5.6/lib/httpd/mod
我正在尝试在我的linux机器上安装apache。但是当我尝试./configure --prefix = /usr/local/apache时,它显示了一个错误configure: error: APR not found. Please read the documentation。我试着用yum install apr apr-deve安装apr,结果显示
Package apr-1.4.6-1.fc15.x86_64 already installed and latest version No package apr-deve available.
Nothing to do我现在
对我的网络进行的安全扫描(使用Nessus)显示,我的mac正在运行Apache版本(2.4.46),其中存在一些关键漏洞。有人告诉我我需要升级到至少2.4.47。我在让MacOS使用升级版本而不是默认版本时遇到了问题:
默认的httpd位于/usr/sbin/,即使是根用户也只能读取。据我所知,升级默认的Mac版本不是possibility.Installed,这是使用Homebrew更新的Apache2.4.48版本。自制版本位于/usr/local/bin/httpd中,只要/usr/local/bin位于env路径中的/usr/sbin之前,它就应该是终端中首选的/usr/sbin h
我知道有几十个关于Apache不工作的问题,但似乎没有什么能为我解决这个问题。我在macOS Big Sur 11.0.1上
我先在brew install httpd上安装了Apache,然后再安装了brew services start httpd。一切似乎都很正常,但是转到http://localhost/会出现"This site can't be reached“错误。http://127.0.0.1/也会给出这个错误。我的/etc/hosts配置似乎没问题。
我不明白出了什么问题。我可以做些什么来找出问题所在?
我正在尝试用Homebrew更新PHP,但是Apache没有加载正确的版本。我运行了brew upgrade并下载了PHP5.4.29。但是,当我查找我正在运行的php版本时,它仍然是5.4.24。还有我错过的额外一步吗?
我正在运行以下环境:
MacBook专业版
OS X 10.9.3
Apache 2.2
我有一个新安装的OSX el capitan 10.11.2,并使用homebrew.Now安装了php7,得到以下错误
命令
sudo apachectl -e info -k restart
错误
httpd: Syntax error on line 171 of /private/etc/apache2/httpd.conf:
Cannot load /usr/local/opt/php70/libexec/apache2/libphp7.so into server: dlopen(/usr/local/opt/php70/libexec/apache2/libphp7.so, 1
我正在尝试设置我的macbook,以便通过(本地主机)端口80为Apache服务。我所做的是:
将pass in proto tcp from any to any port 80行添加到/etc/pf.conf
重新启动
关闭防火墙
确保httpd.conf监听端口80 Listen 80
它仍然在浏览器中给我“拒绝连接”,端口80没有显示在portscan实用程序上。
突然,在没有任何更改的情况下,我在apache start上得到了这个错误: httpd: Syntax error on line 534 of /usr/local/etc/httpd/httpd.conf:
Cannot load /usr/local/opt/php@7.1/lib/httpd/modules/libphp7.so into server:
dlopen(/usr/local/opt/php@7.1/lib/httpd/modules/libphp7.so, 10):
Library not loaded: /usr/local/opt/icu4c/lib
我正在尝试设置Laravel的Valet,作为一种依赖关系,它需要PHP 7。当我尝试用Homebrew安装PHP 7时,我得到以下错误:
Configuring SAPI modules
checking for Apache 2.0 handler-module support via DSO through APXS...
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --wi
brew info boost
boost: stable 1.71.0 (bottled), HEAD
Collection of portable C++ source libraries
https://www.boost.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/boost.rb
==> Dependencies
Required: icu4c ✔
==> Options
--HEAD
Install HEAD version
==&
当前,yum info httpd显示以下内容:
$ yum info httpd
Loaded plugins: aliases, changelog, fastestmirror, kabi, presto, refresh-packagekit, security, tmprepo, verify, versionlock
Loading support for CentOS kernel ABI
Loading mirror speeds from cached hostfile
* base: repos-lax.psychz.net
* centos-sclo-rh: mir
我用自制安装了php7.2。但是当我运行php -v时,我仍然得到php7.1。我认为它没有安装在家用啤酒里。如何启用禁用7.1和启用7.2。
我已经按照安装的建议尝试了这一点。
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php7_module /usr/local/opt/php@7.2/lib/httpd/modules/libphp7.so
<FilesMatch \.php$>
SetHandler application/x-htt
通过brew安装php,如下所示
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php_module /usr/local/opt/php/lib/httpd/modules/libphp.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
Finally, check DirectoryIndex inclu
我在运行OSX的Mac上安装了一个带有Homebrew的Apache2。我已经有一段时间没有做LAMP开发了,所以我不确定错误是什么时候开始的,但是我最近更新了OSX到12.5。当我返回到LAMP项目时,我的Apache安装停止工作。运行brew services会产生以下输出:Name Status User File httpd error 256 root ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist mysql started Nizz0k ~/Library/LaunchAgents/homeb
我刚刚用Homebrew安装了PHP7.1,当我键入终端$ sudo apachectl restart时,它会返回这个消息,AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.3.1.156. Set the 'ServerName' directive globally to suppress this message,但是一切看起来都很好。
phpinfo();返回正常结果..。
php artisan serve返回不同的U
问题
使用OS和Python2.7,我试图遵循一个简单的,但是在执行apachectl -S时会收到这个错误
httpd: Syntax error on line 171 of /private/etc/apache2/httpd.conf: Cannot load libexec/mod_wsgi.so into server: dlopen(/usr/libexec/mod_wsgi.so, 10): image not found
我试过的
首先,我将文件与其他/usr/libexec/apache2/文件放在mod_*中。其次,我尝试遵循并验证以下步骤:
1.您没有隐藏扩展,并且已经
我现在在HighSiera10.13.6,最近我遇到了一个本地开发工作的本地开发环境的问题。我似乎不知道是什么问题。任何编写器或Drush命令都会给出以下命令
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Abort trap: 6
我重新启动我的电脑,当我试图启动apachectl时,我得到
httpd: Syntax error on line 179 of /
今天,赛门铁克反病毒已经阻止了网络攻击,如下所示
Web Attack: Malicious Scan Request attack blocked. Traffic has been blocked for this application: \DEVICE\HARDDISKVOLUME4\APACHE2.2\BIN\HTTPD.EXE
Web Attack: Malicious Scan Request
黑客试图对我的apache httpd.exe文件做什么?有人能详细说明吗?