Questions tagged [php.ini]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
78 views

PHP-FPM on Apache log issue

I am having trouble finding the cause of my php-fpm process logging its error output to the same location as the script result. I have an Apache server which passes requests to the php-fpm process ...
user10709800's user avatar
0 votes
0 answers
144 views

Nextcloud AIO - How to persist modifications to php.ini in a docker container that frequently reboots

I’m running the Nextcloud AIO docker container. This consists of a master container that then runs the other containers such as the apache, and sql server containers. With this working I want to ...
SneakyShrike's user avatar
0 votes
1 answer
979 views

Changes made to the ini file are not reflected in phpinfo()

According to phpinfo(), the following INI files are loaded: Configuration File (php.ini) Path /etc Loaded Configuration File /etc/php.ini Scan this dir for additional .ini files /etc/php.d ...
user1727556's user avatar
0 votes
2 answers
10k views

Modify the contents of php.ini in my Dockerfile

I'm using containers which run php environments and in my Dockerfile I set php.ini from the development template cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini then once the ...
maja's user avatar
  • 329
3 votes
1 answer
6k views

Curl extension not working for php 7, Windows 7 and Apache 2.4

I've recently upgraded to php 7.1.31, starting from an installation of EasyPhp (Windows 7, x86). After installing the files and configuring the php.ini file, all is running well, except a problem with ...
Michael's user avatar
  • 31
1 vote
0 answers
1k views

MAMP 5 (Nginx) - How can I extend timeout in my MAMP setup?

I have a PHP script that runs for over the default 60 seconds, however the page returns a 504 Gateway Timeout error. How can i extend the timeout so the page returns a result at the end of the PHP ...
Cotcho_K's user avatar
0 votes
0 answers
51 views

PHP and postgresql

I am currently new to postgre and php (linux). I have updated postgresql from 9.2 to 10 and everything is working except for PHP. The php.info is still showing the old version of postgresql (see image)...
user1054373's user avatar
0 votes
0 answers
250 views

After uncomment extension=pgsql in php.ini Apache HTTP Web Server restart is failed

After I uncomment: extension_dir = "ext" extension=pgsql в php.ini Apache restart is failed and Apache did not work. I use: Server version: Apache/2.4.39 (Win64) Apache Lounge VS16 Server ...
ScienceKitten's user avatar
0 votes
2 answers
1k views

Max execution time of 7200 exceeded

I am using wamp to setup my local server. I am running a script which may take days to be completed. Although I have set php.ini settings to high numbers but after 7200 seconds still get the ...
MeMo's user avatar
  • 1
0 votes
0 answers
33 views

Does session function is needed to run wordpress and how to configure it?

DO you think wordpress need php function enabled so that it will run properly and securely? I have setup the session like this : session.auto_start = Off session.save_path = /tmp/...
Abdul's user avatar
  • 15
1 vote
2 answers
455 views

Can't increase upload_max_filesize in a Wordpress LAMP stack

I've been trying to increase the maximum upload size of my Wordpress instance, and I've already tried all methods mentioned in the results I get when searching this issue. I've tried changing the php....
joao-m-santos's user avatar
3 votes
0 answers
4k views

How can I change values of the `.ini` files via command line? (linux or windows)

How can I change values of the .ini files via command line? (linux or windows) For example I have a php.ini file: display_errors = On error_reporting = E_ALL & ~E_NOTICE Now, I need be like ...
Nabi K.A.Z.'s user avatar
0 votes
1 answer
4k views

How can a PHP extension be installed if php.ini does not exist?

I'm using Uniform Server and MediaWiki for a project. It is for personal use, so it is restricted to my machine. Uniform Server came with Apache 2.4.25, PHP 7.1.1, phpMyAdmin 4.6.6, and MySQL 5.6.35-...
DroidMonkey's user avatar
0 votes
0 answers
42 views

php configuration is different with symlink

php configuration doesn't have the same timezone when i use symlink! xxxx:/usr/bin $ php -i | grep timezone ...
Harold's user avatar
  • 101
0 votes
1 answer
134 views

Difference between memory_limit and php_memory_limit

In my php.ini file I can see settings for both memory_limit and php_memory_limit What is the difference between these two settings? (Both settings are set to 512Mb)
Jimmery's user avatar
  • 580
1 vote
1 answer
798 views

Windows 10 update, Imagick php not working anymore

Since the last update of Windows 10 (KB4016240), my xampp server does not launch any more imagick, it was working fine before this update. Now when I start Apache from Xampp I get the error message: ...
London Smith's user avatar
3 votes
0 answers
715 views

Configuring PHP for MongoDB on Mac OS X Sierra

I'm having some difficulty configuring PHP to integrate with MongoDB on my Mac. I can confirm that PHP is running correctly, and the php.ini file I am tinkering with is the correct one (I can see ...
HomerPlata's user avatar
0 votes
2 answers
2k views

myPhpAdmin gives lots of deprecation notices

Just installed myphpadmin on a new pc. Now with every page I visit, I see lots of deprecation notices (related to mcrypt functions). I already tried setting error_reporting = E_ALL & ~...
YvonRozijn's user avatar
1 vote
2 answers
6k views

Virtual host installation not working

I am trying to instal my existing local server with xampp. I setup apache to point to mywebsite.dev document root to /code/www/public. I get an error saying The webpage is not accessible. This ...
NewPassionnate's user avatar
0 votes
1 answer
2k views

how to add mongodb.so to AMPPs

I want to use MongoDB in my laravel project, when I'm trying to add mongoDB driver to composer I get : Problem 1 - mongodb/mongodb 1.0.3 requires ext-mongodb ^1.1.0 -> the requested PHP ...
Mohammad_Hosseini's user avatar
0 votes
1 answer
16k views

Installing PHP extension mbstring in PHP 5.6 CentOS 6.8

I am using PHP 5.6 on my centos-release-6-8.el6.centos.12.3.x86_64 server. I got following error from one of my PHP function. Fatal error: Call to undefined function mb_detect_encoding() So, I ...
Sadee's user avatar
  • 101
3 votes
2 answers
3k views

php 5.6.20 - /etc/php5/conf.d directory missing

I can't find /etc/php5/conf.d directory in my system. Do they change catalog structure ? I already read /usr/share/doc/php5-common/README.Debian.gz There is information about linking /etc/php5/$SAPI/...
beginner's user avatar
1 vote
0 answers
3k views

Adminer - can't allow for larger file uploads than 2mb

I'm trying to upload my db dump file through adminer, but it is limited to 2MB uploads, even though I went to the php.ini file and chenged it to 35MB. I'm using a vagrant php environment generated by ...
zkwsk's user avatar
  • 195
12 votes
3 answers
51k views

how to change path of php ini windows

I've downloaded php, addeded it to my path and im trying to enabled openssl php --ini tells me that configuration file is c:\windows which there was nothing there, I dont want to copy php into c/...
Guest's user avatar
  • 121
1 vote
0 answers
37 views

Implications of Increasing Max File Size In php.ini

For example, is there a risk for data corruption that increases as you allow larger file sizes to be uploaded to the server?
Scandalist's user avatar
  • 3,091
1 vote
0 answers
2k views

php PDO sqlsrv "could not find driver"

My configuration: - Windows Server 2012 - SQL Server 2012 - Apache 2.4.9 - PHP 5.5.10 My php.ini includes the line - extension=php_pdo_sqlsrv_55_ts.dll My "ext" folder includes the file - ...
teach me's user avatar
  • 107
0 votes
0 answers
1k views

how to get php executable path file of a system remotely?

I want to debug php codes and I am using zend debugger in Eclipse environment and I have a remote server access(ftp). I used PHP_BINDIR to find out about the path file of the php executable file: ...
Nickool's user avatar
  • 293
0 votes
0 answers
194 views

Create two partial php.ini files

I want to two split php.ini into two files so that I can move important entries to a new file. I think it is a .ini file so, any rule for creating partial .ini files will also apply to it. Is it ...
user avatar
0 votes
3 answers
2k views

Turning on "E_ALL" (errors) in php.ini

I've turned on errors in php.ini by removing the ; in front of the comment on line 240 of php.ini (I'm using PHP 5.4.4). I'm using MAMP for my local server to set up a local environment, and I ...
sam's user avatar
  • 4,159
5 votes
1 answer
65k views

How do I disable ALL error messages via php.ini?

Despite the following settings below, I often see the path to the file producing the error. How do I turn off ALL errors no matter what? error_reporting = E_ALL display_errors = off log_errors = off
PeanutsMonkey's user avatar
4 votes
3 answers
15k views

PHP CLI not respecting memory limit in php.ini

I am using drush, which is a command-line php app to manage a drupal website. I am running a command to import a lot of data, which is causing me to hit php's memory limit. PHP Fatal error: Allowed ...
user13743's user avatar
  • 1,721
1 vote
1 answer
3k views

PHP files are downloaded instead of getting interpreted

I'm encountring some difficulties with my Apache2/PHP5. All was well-configured and working, but after reinstalling apache2, the PHP files are displayed without being interpreted. I tried many ...
Dupont's user avatar
  • 131
3 votes
1 answer
5k views

Change php.ini used by commandline

I try to run a script from the command line, a script made by zend framework. I used also the Zend Server who has her own php.ini. When I try to start my script on the command line I am not able to ...
user968898's user avatar
0 votes
0 answers
1k views

How do I add a php extension to php.ini file?

I need to add a php extension to a custom php.ini file. The extension is installed locally, not in usr/lib. How do I make php "look for" the extension there?
Yitzchak's user avatar
  • 4,444
1 vote
1 answer
2k views

Can't add PHP extension "mssql.so"

I want to add mssql.so extension to my PHP. I've already put it in the extension_dir and the line "extension=mssql.so" is in my php.ini. I restarted apache but I can't find the extension in phpinfo();...
blind's user avatar
  • 11
5 votes
2 answers
10k views

MediaWiki: increase session timeout

I have a small MediaWiki wiki in a hosted website. It works pretty well, except that I can't find where to configure the session timeout. Right now, my session expires while I'm editing pages. I've ...
ggambetta's user avatar
  • 367
0 votes
2 answers
3k views

(Ubuntu - Lamp) Why exist in Ubuntu lamp 2 PHP.ini files?

Why exist in Ubuntu lamp 2 PHP.ini files, and what function they doing? /etc/PHP5/cli/PHP.ini /etc/PHP5/apache2/PHP.ini
Ben's user avatar
  • 1,377
6 votes
2 answers
294 views

is there any way to find out how I was hacked? What was the weak point?

one of my site hacked few times :( first I lost all databases, some tables were cleared and some of table's data had changed! than at the second hack, all tables were cleared and some php files' codes ...
art.mania's user avatar
  • 213
4 votes
3 answers
512 views

Securing Apache server against slightly untrusted PHP code?

I have an unusual situation where I need multiple users to be able to upload and execute PHP code on my Apache server, but I cannot allow one user to access another user's PHP source (if concrete ...
Alex R's user avatar
  • 1,844
2 votes
2 answers
2k views

Mac OS X 10.5.8 issue with php.ini file (PHP 5.2.10)

I'm running Leopard 10.5.8 with the Apple-supplied versions of PHP (5.2.10) and Apache (2.2.11). Changes made to the /etc/php.ini file are not taking effect after stop/start of Apache. phpinfo() and ...
user17213's user avatar
2 votes
1 answer
16k views

How to enable safe mode for php.ini in Xampp?

I want to put my home server online for private use (using Xammp), so i need to put safe mode on (my OS is Windows XP) So i changed the congif of php.ini in the php folder located in xampp to this: ...
rzlines's user avatar
  • 7,538