Linked Questions
44 questions linked to/from Where can I find php.ini?
109 votes
19 answers
522k views
How to locate the php.ini file (xampp) [duplicate]
I am using xamppserver for PHP development and want to edit the php.ini file; where can I locate it?
164 votes
5 answers
548k views
Where is the php.ini file on a Linux/CentOS PC? [duplicate]
I can't find PHP.ini location on my server. I've checked all Stack Overflow answers but I can't find my php.ini location. I have Linux, Cent OS, zPanel. Last version of PHP. My computer: Linux Mint ...
28 votes
1 answer
94k views
Where is php.ini? [duplicate]
I ran phpinfo and it said it was in C:\Windows but it's not there. It's not in the php folder. I did a system search and it wasn't found. Where is it hiding?
4 votes
1 answer
19k views
How can I change my extension_dir or confirm that it is set correctly? [duplicate]
When I do phpinfo(), it says this: extension_dir C:\php\ext C:\php\ext I thought this was determined from within php.ini, but if I change the line in php.ini to this: extension_dir = "ext2" Even if ...
2 votes
0 answers
3k views
Command-line PHP is using multiple ini files [duplicate]
I was trying to install a composer package and ran this command: php composer.phar require phpmailer/phpmailer. The response included this: Failed to download phpmailer/phpmailer from dist: The zip ...
1 vote
0 answers
2k views
Where is the php.ini file located in aws lightsail linux [duplicate]
I want to migrate one of my websites to AWS lightsail and I need access the php.ini file. I have found a php.ini file located in opt/bitnami/php/etc/ but all the changes I do to that file doesn't ...
0 votes
2 answers
1k views
Where does "php artisan serve" read configurations in Mac OS? [duplicate]
I'm running my laravel project using php artisan serve, however I got stuck because I need to upload some heavy file to the server. I've been reading on where php.ini file is in Mac, and i realized ...
0 votes
0 answers
280 views
php.ini variables for file upload size [duplicate]
In my apache server, I have 3 directories for php.ini 7.2, 7.4, and 8.0. At first I edited php.ini inside 7.4/fpm/php.ini but its not working. It throws me error saying Illuminate\\Http\\Exceptions\\...
0 votes
0 answers
73 views
PDOException “could not find driver” when run in command mode [duplicate]
I want to run a php script using command line in Ubuntu (command: php /var/www/test.php), it runs ok in browser (url: http://example.com/test.php), but when running in command while pdo tried to ...
0 votes
0 answers
70 views
The php.ini file does not exist [duplicate]
So I'm trying to work with databases in php. It did not recognize the function mysqli_connect() and after I looked up on google for a bit, I realised that I need to modify something in the php.ini ...
0 votes
0 answers
66 views
Symfony 5 : could not find driver [duplicate]
I'm using symfony 5, everything works fine when I do a command line migration (ex: php bin/console make:migration), but when I try to save a form in code with $doctrine->flush(); I get an error &...
499 votes
15 answers
609k views
How can I find the php.ini file used by the command line?
I need to enable pdo_mysql in my EasyPHP environment, so I went to the php.ini file and uncommented the following line: extension=php_pdo_mysql.dll Unfortunately I still have the same problem. I'm ...
214 votes
20 answers
1.0m views
Parse error: Syntax error, unexpected end of file in my PHP code
I got an error: Parse error: syntax error, unexpected end of file in the line With this code: <html> <?php function login() { // Login function code }...
97 votes
8 answers
258k views
Location for session files in Apache/PHP
What is the default location of session files on an installation of Apache/PHP on Ubuntu 10.10?
81 votes
5 answers
505k views
PHP: settings memory_limits > 1024M does not work
For bad reasons I need to set memory_limits higher than 1 GB for a directory, but on my PHP 5.2.17 on a Debian 5.0 (Lenny) server when I use, for example, 2048M, I get only the php.ini default value (...