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
ἔρως
ἔρως6mo ago
are you sure that the file exists?
lanszelot
lanszelotOP6mo ago
Yes, I can edit php.ini
ἔρως
ἔρως6mo ago
can you show the explorer window, with the php.ini file selected?
lanszelot
lanszelotOP6mo ago
Yes, please give me a minute. How can I upload picture here?
ἔρως
ἔρως6mo ago
copy-paste drag&drop both work the same
lanszelot
lanszelotOP6mo ago
No description
lanszelot
lanszelotOP6mo ago
No description
ἔρως
ἔρως6mo ago
does php -i show anything?
lanszelot
lanszelotOP6mo ago
I don't understand. Where should I have to use -i ?
ἔρως
ἔρως6mo ago
in the command prompt or powershell
lanszelot
lanszelotOP6mo ago
Yes A lot
ἔρως
ἔρως6mo ago
does it say anything about the php.ini file? also, why are you installing php like this?
lanszelot
lanszelotOP6mo ago
I am looking. Where can I found it?
ἔρως
ἔρως6mo 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
lanszelotOP6mo ago
No description
ἔρως
ἔρως6mo ago
"loaded configuration file" look for that
lanszelot
lanszelotOP6mo ago
Yes it is there You can see on the image
ἔρως
ἔρως6mo ago
yup, so, the file is being loaded
lanszelot
lanszelotOP6mo ago
No description
ἔρως
ἔρως6mo ago
are you using php -S?
lanszelot
lanszelotOP6mo ago
index.php with phpinfo() not show it And sqlite not working
ἔρως
ἔρως6mo ago
which server are you using?
lanszelot
lanszelotOP6mo ago
Apache
ἔρως
ἔρως6mo 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
lanszelotOP6mo ago
Folowed a youtube video I had to download from apache.org
ἔρως
ἔρως6mo ago
you went about it the absolute hardest way it's a lot easier to download xampp and use that
lanszelot
lanszelotOP6mo ago
No, that is not good. Take security gate open
ἔρως
ἔρως6mo ago
are you going to host your website on your pc? and have it available to the entire world from your pc?
lanszelot
lanszelotOP6mo ago
Should have to deactivate UAC to install. No
ἔρως
ἔρως6mo 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
lanszelotOP6mo ago
I am create website to myself as a hobby. Not shared.
ἔρως
ἔρως6mo ago
then just use xampp
lanszelot
lanszelotOP6mo ago
No, I don't want it I am not disable UAC
ἔρως
ἔρως6mo ago
^ this
lanszelot
lanszelotOP6mo ago
No description
ἔρως
ἔρως6mo ago
so what? you click the button, it works
lanszelot
lanszelotOP6mo ago
Before install start it shows this and close the install
ἔρως
ἔρως6mo ago
that is only if you want to install it as a service and if you do that, you're asking for trouble
lanszelot
lanszelotOP6mo ago
No, I not take risk. It is only a hobby
ἔρως
ἔρως6mo ago
🤦‍♂️ well, i can't help you with this then
lanszelot
lanszelotOP6mo ago
Thank you so much for your help
ἔρως
ἔρως6mo ago
my advice: stop ignoring tools that do the work perfectly fine because you're scared of a message that means nothing
lanszelot
lanszelotOP6mo ago
I am appreciate it
ἔρως
ἔρως6mo 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
lanszelotOP6mo ago
Only sql not working Everything else is fine
ἔρως
ἔρως6mo 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
lanszelotOP6mo ago
I just not use sql
ἔρως
ἔρως6mo ago
you have to enable the extensions in php.ini
lanszelot
lanszelotOP6mo ago
No worries.
ἔρως
ἔρως6mo ago
which is where the php file is
lanszelot
lanszelotOP6mo ago
It is enabled
ἔρως
ἔρως6mo ago
which only you and apache know where it might be the folder you've shown is the wrong one
lanszelot
lanszelotOP6mo ago
I deleted the ; from the beginning But that is my php folder C:\php\ext\
ἔρως
ἔρως6mo ago
apache is getting php from somewhere else
lanszelot
lanszelotOP6mo ago
This is the extension folder
ἔρως
ἔρως6mo ago
yeah, but apache doesn't care if it is using some other php install somewhere else which is the problem
lanszelot
lanszelotOP6mo ago
How can I check where apache using it?
ἔρως
ἔρως6mo ago
where's apache installed?
lanszelot
lanszelotOP6mo ago
C:\Apache24
ἔρως
ἔρως6mo ago
try to look inside there, maybe you will find php somewhere how did you even configured a website?
lanszelot
lanszelotOP6mo ago
No php in that folder
ἔρως
ἔρως6mo ago
how did you enabled the php module?
lanszelot
lanszelotOP6mo ago
I don't remember It was about 3 years ago
ἔρως
ἔρως6mo 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
lanszelotOP6mo ago
I found something on youtube I have to add apache conf httpd.conf a few lines
ἔρως
ἔρως6mo ago
try checking that file
lanszelot
lanszelotOP6mo ago
I do not have there
ἔρως
ἔρως6mo 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
lanszelotOP6mo ago
If I paste those lines the apache server not start. So I have to found what should I have to write there
ἔρως
ἔρως6mo 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
lanszelotOP6mo ago
I never give up 🙂 problems coming to someone solve it. I am that one 🙂 It takes time, but I learn
ἔρως
ἔρως6mo 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
lanszelotOP6mo ago
Ok I got it php.net have an example
ἔρως
ἔρως6mo ago
that is surprising
lanszelot
lanszelotOP6mo ago
For apache httpd.conf file I had to copy paste
ἔρως
ἔρως6mo ago
windows stuff is the most horrible you can imagine and it works now?
lanszelot
lanszelotOP6mo ago
And it is working fine
ἔρως
ἔρως6mo ago
that is very surprising
lanszelot
lanszelotOP6mo ago
Now we learned 🙂
ἔρως
ἔρως6mo ago
can you share that?
lanszelot
lanszelotOP6mo ago
Never give up
ἔρως
ἔρως6mo ago
it's not giving up
lanszelot
lanszelotOP6mo ago
Yes
ἔρως
ἔρως6mo ago
it's just using my time better
lanszelot
lanszelotOP6mo ago
No description
lanszelot
lanszelotOP6mo ago
I hope it is readable
ἔρως
ἔρως6mo ago
can you share the link instead? images aren't useful for copy-paste
lanszelot
lanszelotOP6mo ago
php.net/manual/en/install.windows.apache2.php
ἔρως
ἔρως6mo ago
thank you by the way, php 8.2.2 is very outdated
lanszelot
lanszelotOP6mo ago
Thank you I am working on it 2 days ago
ἔρως
ἔρως6mo ago
you should install php 8.3.7 also, be careful because some settings were removed in 8.3
lanszelot
lanszelotOP6mo 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
ἔρως
ἔρως6mo ago
you're welcome i was surprised there was any info at all linux-centered stuff usually has poor/no documentation for windows
lanszelot
lanszelotOP6mo 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
ἔρως
ἔρως6mo ago
you're welcome
Want results from more Discord servers?
Add your server