php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.

learn more… | top users | synonyms

1
vote
1answer
4k views

How do I get the latest FastCGI and PHP versions to peacefully coexist on IIS 6?

I have been going round and round trying to get any sort of PHP running on IIS 6. I somehow managed to successfully get version 5.1.4 running using the php5isapi.dll file. However, I want to upgrade ...
2
votes
3answers
3k views

php.ini not loading on Windows7 x64

I have manually configured PHP in the past without any problems. Now I'm trying to set up a dev environment with PHP 5.3.1 on Windows 7 x64, and it won't load the php.ini file! I'm new to both ...
1
vote
2answers
2k views

Cannot get PHP PAM authentication to work

This question is split between the realm of SO and SF. It's for a coding project but I believe the error I'm encountering has more to do with system administration than code, so I'll put it here. I'...
3
votes
2answers
2k views

sed php.ini memory_limit

The following works great: phpmemory_limit=256M #or what ever you want it set to sed -i 's/memory_limit = 16M/memory_limit = '${phpmemory_limit}'/' /etc/php5/apache2/php.ini If the memory_limit is ...
0
votes
2answers
595 views

CPU spikes on small site- possibly apache or php config related

I hope you can help me. I have a site that I'm moving to a new datacenter. The server is pretty much vanilla, no control panel, and also no optimizations. When I hit a page, the site takes an ...
1
vote
2answers
828 views

PHP 5.2.11: Unable to load dynamic library complaints

I installed PHP 5.2.11 and upon enabling the php_mssql.dll module (and the obligatory restart of the services) started receiving warnings about not being able to load the dynamic library. The ...
1
vote
1answer
6k views

Php.ini: Local Value vs Master Value (safe_mode, specifically)

I can change php.ini values on my Apache and restart to see them in effect via a script showing php_info(). However, one setting is causing problems: safe_mode. I set it to "off" in php.ini but ...
2
votes
2answers
5k views

php-gd installed but gd not showing up in phpinfo on CentOS 5.3 server running nginx

Logged in as root, I installed the php-gd libraries using $ yum install php-gd it said everything worked fine, so i did $ /etc/init.d/nginx restart But the code I had been working on still ...
0
votes
2answers
333 views

Where are the settings of xcache?

I'm on Dreamhost PS, using their preset xcache. I need to increase the size of the var memory but can't find the definitions for xcache. Its not in the php.ini file. I searched for xcache files and ...
0
votes
1answer
2k views

How to modify allow_url_fopen Local Value

This is a question about PHP configuration on a LAMP server. I want to turn off allow_url_fopen on one virtual host but not the other (i.e. can't turn it off globally in php.ini). The other day I had ...
1
vote
1answer
5k views

How do you change the “scan this dir for additional ini files” path?

I managed to get the custom INI to load, but its still loading other .ini files from the default location. I created an fcgi wrapper that passed the ini value as a parameter. That worked. Now just ...
2
votes
2answers
545 views

How do I get Apache to use a different local PHP.ini for different domains?

is there some sort of .htaccess directive. I dont have access to httpd.conf. I have php5 in a fastcgi/cgi module. Multiple domains. But for some reason all the domains are pointing to the first ...
0
votes
1answer
115 views

How do you setup your domains to use same php.cgi but different PHP.ini

I thought I had this figured out. I built a php.cgi, but rather than have a copy of php.cgi in the /cgi-bin/ dir for each domain I have. I create a sym link to a common directory so they could all ...
0
votes
3answers
717 views

How do I get linux server to use local PHP.ini in a shared environment?

I'm on shared server environment (Dreamhost.com uses Linux/Debian). I followed their instructions here on setting up a local PHP5 instance on my user account so that I could use APC (php5 accelerator)...
0
votes
1answer
2k views

How do you configure the mime_content_type() function to work correctly in php5?

I have a ubuntu 9.04 desktop that i'm using for my development machine with apache2 installed. What are the steps that I need to go through to ensure that the mime types for files are determined ...
8
votes
8answers
33k views

How to configure php.ini with remote SMTP?

How do I configure PHP to send mail using mail() via a remote SMTP server? I've tried to do this using php.ini but it seems that you can only do that under Windows32 and I want to do this on my Unix ...
1
vote
5answers
1k views

User Specific Php.ini When php is ran as a module?

I have a php setting that can only be changed in the ini file. I can't change this setting in the global php.ini due to conflicts, so I'll need to have this user specific. Can this be done if php is ...
10
votes
4answers
73k views

How do I enable SQLite on Linux/Apache/PHP?

To enable SQLite on my Windows/Apache/PHP setup, I uncomment the following lines in the php.ini file and restart Apache: extension=php_pdo.dll extension=php_pdo_sqlite.dll Now I have a VPS with ...
0
votes
2answers
2k views

How can I make the Apache/PHP setup on my VPS show PHP errors and warnings?

I've got a VPS using Suse Linux 10.3. Apache 2 / PHP 5.2.6 was set up automatically. When I look at this valid PHP file in a browser, it displays correctly: <?php echo 'this is test'; ?> ...