Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [php.ini]

The tag has no usage guidance.

0
votes
0answers
38 views

Getting a lot of Warnings while installing Pear in Linux

I was trying to install Pear in Kali Linux 2018.3. I downloaded go-pear.phar and ran the command php go-pear.phar. But I am getting a lot of PHP Startup: Unable to load dynamic library errors and it ...
0
votes
0answers
80 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
1answer
182 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
0answers
23 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
1answer
55 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
1answer
271 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
0answers
503 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
2answers
835 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
2answers
2k 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
1answer
965 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
1answer
12k 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
2answers
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/...
0
votes
0answers
2k 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 ...
11
votes
3answers
31k 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
0answers
30 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
0answers
1k 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
0answers
902 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
0answers
141 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
3answers
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 ...
4
votes
1answer
53k 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
3answers
9k 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
1answer
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
1answer
3k 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
0answers
812 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
1answer
1k 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
2answers
9k 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
2answers
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
2answers
274 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
3answers
456 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
2answers
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
1answer
12k 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: ...