Is php.ini required when configuring php as module of Apache

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rajib_deysarkar
Forum Newbie
Posts: 2
Joined: Sat Jul 20, 2002 3:04 am

Is php.ini required when configuring php as module of Apache

Post by rajib_deysarkar »

Hi,

I've configured PHP 4.2.1 as a module in apache (ver 1.3.23). I've kept the php in the default C:\php> folder and made the necessary changes in httpd.conf file in the apache. When accessed from the localhost (127.0.0.1) phpinfo is showing proper result and even a few php pages are running properly.

Now I want to know whether I still need to copy the php.ini-dist file to my windows directory and rename it to php.ini ???.

Thanks in advance,

Regards,

Rajib
User avatar
James Pelow
Site Admin
Posts: 51
Joined: Sat Jun 01, 2002 5:28 am
Location: Killiney, Co. Dublin, Ireland
Contact:

Nope

Post by James Pelow »

The answer is no. But I suggest you do. It will make a good starting point for PHP settings changes you may wish to make.

But ultimately it's up to you!

-James
rajib_deysarkar
Forum Newbie
Posts: 2
Joined: Sat Jul 20, 2002 3:04 am

Post by rajib_deysarkar »

Thanks James,

What I understand is that to change PHP settings I need to keep php.ini file in my Windows folder whether I've installed php as a module of Apache or using the CGI binary (php.exe). Though for just simply running PHP installed as a module of Apache, the php.ini is not required.

Am I right on these two points ???

Thanks & Regards,

Rajib
User avatar
James Pelow
Site Admin
Posts: 51
Joined: Sat Jun 01, 2002 5:28 am
Location: Killiney, Co. Dublin, Ireland
Contact:

yeah

Post by James Pelow »

Yep, that's what it's like on unix anyway. I'm not sure about how to do it on windows but i'm sure the same things apply.

-James
Post Reply