Categories

See More
Popular Forum

MBA (4887) B.Tech (1769) Engineering (1486) Class 12 (1030) Study Abroad (1004) Computer Science and Engineering (988) Business Management Studies (865) BBA (846) Diploma (746) CAT (651) B.Com (648) B.Sc (643) JEE Mains (618) Mechanical Engineering (574) Exam (525) India (462) Career (452) All Time Q&A (439) Mass Communication (427) BCA (417) Science (384) Computers & IT (Non-Engg) (383) Medicine & Health Sciences (381) Hotel Management (373) Civil Engineering (353) MCA (349) Tuteehub Top Questions (348) Distance (340) Colleges in India (334)
See More

PHP extension enabled but not loaded on Apache

General Tech Bugs & Fixes

Max. 2000 characters
Replies

usr_profile.png

User

( 5 months ago )

 

For some reason, my php extensions are enabled, but not loaded by my Apache 2.4 server. The extensions I am missing are mbstring and fileinfo. I did the installation manually and I wish to keep it that way, mostly for learning purposes.

When I say enabled, I mean that when I run php -m in cmd, the extensions are in the list

However, when I run <?php phpinfo(); from my server, these extensions are not in the list.

In my php.ini file, I have only configured the follwing (related to extensions):

extension_dir = "ext"
extension=mbstring (uncommented the line)
extension=fileinfo (uncommented the line)

I added the following to httpd.conf:

# PHP5 module
LoadModule php7_module "C:/php/php7apache2_4.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php/"

And, in phpinfo(), I see only a single php.ini is loaded, the one from C:/php

Why would my extensions not be available on my Apache server? Do I have to load/enable them manually in Apache somehow?

*Versions: Apache 2.4.39, PHP 7.3.4

what's your interest


forum_ban8_5d8c5fd7cf6f7.gif