Answer the question
In order to leave comments, you need to log in
How to marry php8 and apache24?
I'm trying to marry apache and php. Separately, everything works fine, that is, apache starts up normally when you enter localhost, the same thing happens with php (only instead of localhost localhost: 8000). But when you try to connect them in cmd, it gives this
C:\Users\Example\Documents\Server\bin\Apache24\bin>httpd.exe -k start
httpd.exe: Syntax error on line 540 of C:/Users/Artem/Documents/Server/bin/Apache24/conf/httpd.conf: Cannot load C:/Users/Artem/Documents/Server/bin/php/php8apache2_4.dll into server: \xcd\xe5 \xed\xe0\xe9\xe4\xe5\xed \xf3\xea\xe0\xe7\xe0\xed\xed\xfb\xe9 \xec\xee\xe4\xf3\xeb\xfc.
The config itself looks like this (only the way to join)PHPIniDir "C:/Users/Artem/Documents/Server/bin/php"
AddHandler application/x-httpd-php .php
LoadModule php_module "C:/Users/Artem/Documents/Server/bin/php/php8.dll"
The question is how to fix the error if the bitness of Apache and php is the same?
Answer the question
In order to leave comments, you need to log in
Error message 'the specified module was not found'
Manually configuring apache and php under windows is some form of masochism right?
Choose from:
* cygwin <-- recommended, very high quality support for the entire stack of linux utilities, convenient gui
* msys
* wsl <-- in general, linux allows you to run almost full-fledged and even without virtualization (like wine in linux for windows)
* put and finally, linux in a virtual machine, it’s a couple of minutes of moving the mouse without any knowledge
. And you don’t have to install apache, especially if you don’t go there and you just need to debug your scripts locally, run the web server built into php:
php -S 0.0. 0.0:8080
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question