Jump to content

PHP.ini is empty!


Recommended Posts

but when I install PHP it is not putting php.ini in the start bar

 

Never heard of that happening anyway, what installation method are you using?

 

and under the PHP folder the php.ini file doesn't have any settings like it used to

 

You normally would need to copy this from the php.ini.example, php.ini.dist or php.ini.devlopment file (can't recall what name they actually use but its a simple example file).

Link to comment
Share on other sites

This is a 5.2.11 windows install. I have done this many times before so I do not understand what I am doing wrong. I run Apache 2.2.1. Here is what was in my php.ini file after fresh install:

 

log_errors=On

error_log="C:\WINDOWS\temp\php-errors.log"

extension_dir="C:\Program Files\PHP\ext"

[php_GD2]

extension=php_gd2.dll

 

 

Strange thing is I used to see tons of options to change like memory and stuff.

Link to comment
Share on other sites

Ok I did the zip version. I added this to my apache 2.2.1 httpd.conf

 

LoadModule php5_module "c:/program files/php/php5apache2_2.dll"

AddType application/x-httpd-php .php

PHPIniDir "C:/program files/php"

 

Is that all I have to do?

 

It seems to be working but I remed out the last 2 lines just to see if it still worked and it seems to work with just the LoadModule line added. I unremed them back to normal just in case.

 

Any thoughts on this?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.