MikeB46 Posted November 13, 2021 Share Posted November 13, 2021 Hi. I am new to the forum, I have encountered a stumbling block installing php with Apache and MySQL. I have used them years ago and I wish to utilize them for a new project. My operating system is Windows 10. Specifically, after following the installation instructions, Apache cannot find php7apache2_4.dll, even though the file is in the php directory c:/php. Suggestions would be greatly appreciated. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/314223-php74-installation-with-apache24/ Share on other sites More sharing options...
requinix Posted November 13, 2021 Share Posted November 13, 2021 Are you using PHP 7 or 8? You should go with 8.0 because it has a number of nice changes from 7.x. Quote Link to comment https://forums.phpfreaks.com/topic/314223-php74-installation-with-apache24/#findComment-1592034 Share on other sites More sharing options...
gizmola Posted November 13, 2021 Share Posted November 13, 2021 You can clutter your workstation up with a bunch of services with WAMP, or you can use vagrant or better yet Docker. Most developers are using Docker now. My advice is to install Docker and look for a tutorial that will help you get a LAMP development environment up under docker, using a docker-compose.yml. Quote Link to comment https://forums.phpfreaks.com/topic/314223-php74-installation-with-apache24/#findComment-1592046 Share on other sites More sharing options...
MikeB46 Posted November 14, 2021 Author Share Posted November 14, 2021 Thanks gizmola for the suggestions. Sad to say Docker created more obstacles - need Windows 10 Pro in order to install Hyper_V. Does not answer why the following cannot "see" the file: # PHP7 module PHPIniDir "C:/php" LoadModule php_module "C:/php/php7apache2_4.dll" This file cannot be found! AddType application/x-httpd-php .php Quote Link to comment https://forums.phpfreaks.com/topic/314223-php74-installation-with-apache24/#findComment-1592087 Share on other sites More sharing options...
Solution MikeB46 Posted November 14, 2021 Author Solution Share Posted November 14, 2021 After much wailing and grinding of teeth, as well as desk pounding, a solution has been identified and implemented. And it works. So onward. The solution was found at php.watch via a lucky Google search. # PHP7 module PHPIniDir "C:/php" LoadModule php7_module "C:/php/php7apache2_4.dll" Change php_module to php7_module. Duh! AddType application/x-httpd-php .php Thanks Quote Link to comment https://forums.phpfreaks.com/topic/314223-php74-installation-with-apache24/#findComment-1592088 Share on other sites More sharing options...
gizmola Posted November 14, 2021 Share Posted November 14, 2021 For Docker under windows, you don't have to use Hyper-V, you can simply install the Windows Subsystem for Linux (WSL) More info here: https://docs.docker.com/desktop/windows/install/#wsl-2-backend Quote Link to comment https://forums.phpfreaks.com/topic/314223-php74-installation-with-apache24/#findComment-1592089 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.