Do I need all these .ini files?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
intellivision
Forum Commoner
Posts: 83
Joined: Mon Aug 22, 2005 1:25 am
Location: Orbit

Do I need all these .ini files?

Post by intellivision »

/etc/php5/apache2/conf.d/imagick.ini,
/etc/php5/apache2/conf.d/mcrypt.ini,
/etc/php5/apache2/conf.d/mhash.ini,
/etc/php5/apache2/conf.d/mysql.ini,
/etc/php5/apache2/conf.d/mysqli.ini,
/etc/php5/apache2/conf.d/pdo.ini,
/etc/php5/apache2/conf.d/pdo_mysql.ini

Any of these strike you as unnecessary for a standard LAMP webserver? No ecommerce, no SSL, just a forum (MySQL) and WordPress (MySQL).

I'm trying to cut down Apache2's voracious memory appetite.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Do I need all these .ini files?

Post by Eran »

This is the PHP inclusion directory. All those configuration files are used for the different extensions they are named after - if you don't need it, simply disable the extensions. This won't help you with Apache memory consumption much though
intellivision
Forum Commoner
Posts: 83
Joined: Mon Aug 22, 2005 1:25 am
Location: Orbit

Re: Do I need all these .ini files?

Post by intellivision »

At this point I'm taking everything I can get. Memory (lack of) is causing unresponsiveness from the server.

Those modules are loaded AFAIK because they're listed in my php_info() page under 'additional .ini files parsed'.

I've disabled all unneeded Apache modules.

My WordPress pages are eating -- minimum -- 27MB per. Yea.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Do I need all these .ini files?

Post by Eran »

wordpress is known to be a memory hog. and 27mb per apache process is not that bad, just make sure you aren't spawning to many processes (you can control that). And if you have a dedicated machine I would assume you also have enough memory to run wordpress...
intellivision
Forum Commoner
Posts: 83
Joined: Mon Aug 22, 2005 1:25 am
Location: Orbit

Re: Do I need all these .ini files?

Post by intellivision »

PHP-Extensions: zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, imagick, imap, mcrypt, mhash, mysql, mysqli, PDO, pdo_mysql

Just found this list of extensions that are currently loaded. Anyone spot obvious unnecessary extensions before I type each one into Google to find out if my server needs it?


TIA
Post Reply