PHP info not loading

Hello, In the php info : "Configuration File (php.ini) Path no value Loaded Configuration File (none)" Windows 10 pc with apache and php C:\php in Windows PATH added C:\php php.ini is in the C:\php (not php.ini_dev) PHP Version 8.2.2 apache server restarted, pc restarted Why not loading the php.ini ?
95 Replies
ἔρως
ἔρως2mo ago
are you sure that the file exists?
lanszelot
lanszelot2mo ago
Yes, I can edit php.ini
ἔρως
ἔρως2mo ago
can you show the explorer window, with the php.ini file selected?
lanszelot
lanszelot2mo ago
Yes, please give me a minute. How can I upload picture here?
ἔρως
ἔρως2mo ago
copy-paste drag&drop both work the same
lanszelot
lanszelot2mo ago
No description
lanszelot
lanszelot2mo ago
No description
ἔρως
ἔρως2mo ago
does php -i show anything?
lanszelot
lanszelot2mo ago
I don't understand. Where should I have to use -i ?
ἔρως
ἔρως2mo ago
in the command prompt or powershell
lanszelot
lanszelot2mo ago
Yes A lot
ἔρως
ἔρως2mo ago
does it say anything about the php.ini file? also, why are you installing php like this?
lanszelot
lanszelot2mo ago
I am looking. Where can I found it?
ἔρως
ἔρως2mo ago
should be at the top you should try to redirect the output to a file but if the file is there, php should use it but not all values will be set, by the way
lanszelot
lanszelot2mo ago
No description
ἔρως
ἔρως2mo ago
"loaded configuration file" look for that
lanszelot
lanszelot2mo ago
Yes it is there You can see on the image
ἔρως
ἔρως2mo ago
yup, so, the file is being loaded
lanszelot
lanszelot2mo ago
No description
ἔρως
ἔρως2mo ago
are you using php -S?
lanszelot
lanszelot2mo ago
index.php with phpinfo() not show it And sqlite not working
ἔρως
ἔρως2mo ago
which server are you using?
lanszelot
lanszelot2mo ago
Apache
ἔρως
ἔρως2mo ago
you're in the wrong folder apache doesn't use that, unless you manually installed apache and manually configured it to use phpmod or php-fpm for that specific directory which i doubt it how did you install apache?
lanszelot
lanszelot2mo ago
Folowed a youtube video I had to download from apache.org
ἔρως
ἔρως2mo ago
you went about it the absolute hardest way it's a lot easier to download xampp and use that
lanszelot
lanszelot2mo ago
No, that is not good. Take security gate open
ἔρως
ἔρως2mo ago
are you going to host your website on your pc? and have it available to the entire world from your pc?
lanszelot
lanszelot2mo ago
Should have to deactivate UAC to install. No
ἔρως
ἔρως2mo ago
then why do you care that it is a tiny tiny tiny bit less secure, if you have an actual working php, mysql and apache install in minutes? and no, you don't have to disable anything
lanszelot
lanszelot2mo ago
I am create website to myself as a hobby. Not shared.
ἔρως
ἔρως2mo ago
then just use xampp
lanszelot
lanszelot2mo ago
No, I don't want it I am not disable UAC
ἔρως
ἔρως2mo ago
^ this
lanszelot
lanszelot2mo ago
No description
ἔρως
ἔρως2mo ago
so what? you click the button, it works
lanszelot
lanszelot2mo ago
Before install start it shows this and close the install
ἔρως
ἔρως2mo ago
that is only if you want to install it as a service and if you do that, you're asking for trouble
lanszelot
lanszelot2mo ago
No, I not take risk. It is only a hobby
ἔρως
ἔρως2mo ago
🤦‍♂️ well, i can't help you with this then
lanszelot
lanszelot2mo ago
Thank you so much for your help
ἔρως
ἔρως2mo ago
my advice: stop ignoring tools that do the work perfectly fine because you're scared of a message that means nothing
lanszelot
lanszelot2mo ago
I am appreciate it
ἔρως
ἔρως2mo ago
installing apache manually is a pain if i were you, since you had all the work to install apache is to find where it thinks that php is, then you add the php.ini file there
lanszelot
lanszelot2mo ago
Only sql not working Everything else is fine
ἔρως
ἔρως2mo ago
since i don't know what you did, i can't tell you where things are that's why i can't help you
lanszelot
lanszelot2mo ago
I just not use sql
ἔρως
ἔρως2mo ago
you have to enable the extensions in php.ini
lanszelot
lanszelot2mo ago
No worries.
ἔρως
ἔρως2mo ago
which is where the php file is
lanszelot
lanszelot2mo ago
It is enabled
ἔρως
ἔρως2mo ago
which only you and apache know where it might be the folder you've shown is the wrong one
lanszelot
lanszelot2mo ago
I deleted the ; from the beginning But that is my php folder C:\php\ext\
ἔρως
ἔρως2mo ago
apache is getting php from somewhere else
lanszelot
lanszelot2mo ago
This is the extension folder
ἔρως
ἔρως2mo ago
yeah, but apache doesn't care if it is using some other php install somewhere else which is the problem
lanszelot
lanszelot2mo ago
How can I check where apache using it?
ἔρως
ἔρως2mo ago
where's apache installed?
lanszelot
lanszelot2mo ago
C:\Apache24
ἔρως
ἔρως2mo ago
try to look inside there, maybe you will find php somewhere how did you even configured a website?
lanszelot
lanszelot2mo ago
No php in that folder
ἔρως
ἔρως2mo ago
how did you enabled the php module?
lanszelot
lanszelot2mo ago
I don't remember It was about 3 years ago
ἔρως
ἔρως2mo ago
yeah, you're SOL you can try to go through the configuration files, and see if any points to any php install you can also try to open the command prompt in some random place and run php -i and see what happens
lanszelot
lanszelot2mo ago
I found something on youtube I have to add apache conf httpd.conf a few lines
ἔρως
ἔρως2mo ago
try checking that file
lanszelot
lanszelot2mo ago
I do not have there
ἔρως
ἔρως2mo ago
yeah well, if you don't want the perfectly fine easy mode, why don't you install it in wsl2? i recommend debian over ubuntu, due to disk size
lanszelot
lanszelot2mo ago
If I paste those lines the apache server not start. So I have to found what should I have to write there
ἔρως
ἔρως2mo ago
honestly, the juice isn't worth the squeeze remove it, start over you'll spend hours banging your head, and we will come to the conclusion that it's beyound f*cked
lanszelot
lanszelot2mo ago
I never give up 🙂 problems coming to someone solve it. I am that one 🙂 It takes time, but I learn
ἔρως
ἔρως2mo ago
that's the thing: you're on windows, and you're doing something almost nobody does anymore people install docker in wsl2, download a pre-built image with everything configured and just work or like me: xampp or wsl -> apt install what i need -> done yes, i use xampp on my personal computer, a lot and uac is very enabled what you learn here won't be very useful outside of windows, and windows isn't that used for web hosting (unless you use asp.net and stuff like that)
lanszelot
lanszelot2mo ago
Ok I got it php.net have an example
ἔρως
ἔρως2mo ago
that is surprising
lanszelot
lanszelot2mo ago
For apache httpd.conf file I had to copy paste
ἔρως
ἔρως2mo ago
windows stuff is the most horrible you can imagine and it works now?
lanszelot
lanszelot2mo ago
And it is working fine
ἔρως
ἔρως2mo ago
that is very surprising
lanszelot
lanszelot2mo ago
Now we learned 🙂
ἔρως
ἔρως2mo ago
can you share that?
lanszelot
lanszelot2mo ago
Never give up
ἔρως
ἔρως2mo ago
it's not giving up
lanszelot
lanszelot2mo ago
Yes
ἔρως
ἔρως2mo ago
it's just using my time better
lanszelot
lanszelot2mo ago
No description
lanszelot
lanszelot2mo ago
I hope it is readable
ἔρως
ἔρως2mo ago
can you share the link instead? images aren't useful for copy-paste
lanszelot
lanszelot2mo ago
php.net/manual/en/install.windows.apache2.php
ἔρως
ἔρως2mo ago
thank you by the way, php 8.2.2 is very outdated
lanszelot
lanszelot2mo ago
Thank you I am working on it 2 days ago
ἔρως
ἔρως2mo ago
you should install php 8.3.7 also, be careful because some settings were removed in 8.3
lanszelot
lanszelot2mo ago
Oh I will look after it Thank you to let me know And thank you so much for your help I am so happy now
ἔρως
ἔρως2mo ago
you're welcome i was surprised there was any info at all linux-centered stuff usually has poor/no documentation for windows
lanszelot
lanszelot2mo ago
If you know what are you looking easy to found. You help me to show where should I have to search Apache was the magic word Thanks again
ἔρως
ἔρως2mo ago
you're welcome