Linked Questions

109 votes
19 answers
522k views

I am using xamppserver for PHP development and want to edit the php.ini file; where can I locate it?
Navaneeth's user avatar
  • 1,428
164 votes
5 answers
548k views

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 ...
ITChristian's user avatar
  • 11.3k
28 votes
1 answer
94k views

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?
Ryan Peschel's user avatar
4 votes
1 answer
19k views

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 ...
user avatar
2 votes
0 answers
3k views

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 ...
user3425506's user avatar
  • 1,477
1 vote
0 answers
2k views

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 ...
Antivirus's user avatar
0 votes
2 answers
1k views

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 ...
Leonardo Herrera Ornelas's user avatar
0 votes
0 answers
280 views

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\\...
yareyaredaze's user avatar
0 votes
0 answers
73 views

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 ...
Yancey's user avatar
  • 23
0 votes
0 answers
70 views

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 ...
anon's user avatar
  • 1
0 votes
0 answers
66 views

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 &...
ArthurDayne's user avatar
499 votes
15 answers
609k views

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 ...
Amokrane Chentir's user avatar
214 votes
20 answers
1.0m views

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 }...
pratnala's user avatar
  • 3,873
97 votes
8 answers
258k views

What is the default location of session files on an installation of Apache/PHP on Ubuntu 10.10?
cambraca's user avatar
  • 28k
81 votes
5 answers
505k views

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 (...
Cédric Girard's user avatar

15 30 50 per page