Questions tagged [php.ini]
The php.ini tag has no usage guidance.
39
questions
0
votes
1
answer
355
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
...
0
votes
1
answer
3k
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 ...
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 ...
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 ...
0
votes
0
answers
45
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)...
0
votes
0
answers
153
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 ...
0
votes
2
answers
895
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 ...
0
votes
0
answers
32
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/...
1
vote
2
answers
404
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....
2
votes
0
answers
3k
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 ...
0
votes
1
answer
2k
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-...
0
votes
0
answers
37
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 ...
0
votes
1
answer
125
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)
1
vote
1
answer
594
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:
...
3
votes
0
answers
685
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 ...
0
votes
2
answers
1k
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 & ~...
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 ...
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 ...
0
votes
1
answer
15k
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 ...
3
votes
2
answers
2k
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/...
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 ...
12
votes
3
answers
49k
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/...
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?
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
- ...
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:
...
0
votes
0
answers
182
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 ...
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 ...
5
votes
1
answer
64k
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
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 ...
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 ...
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 ...
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?
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();...
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 ...
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
6
votes
2
answers
289
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 ...
4
votes
3
answers
485
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 ...
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 ...
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:
...