Jump to content

Recommended Posts

Hi there,

 

I'm using PHP5/Apache2/Mysql4.1 in my web-based application. I'm using the following code to verify my PHP configuration (phpInfo.php).

<?php

phpinfo();

?>

 

I get a blank page when I have PHPIniDir entry in my httpd.conf file. e.g.

PHPIniDir "C:/PHP5/"

 

However, if I comment this entry out and restart Apache2, phpInfo.php shows the right PHP version and other info; but it also shows some weired lines such as,

Configuration File (php.ini) C:\WINDOWS

Loaded Configuration File (none)

As a result, MySQL section is not shown in the info page because the mysql library specified in php.ini fails to be loaded. Please note I don't have php.ini in C:\WINDOWS for now.

 

Then I copy C:/PHP5/php.ini to C:/WINDOWS, and restart Apache2, pageInfo.php shows a blank page again.

 

I'm thinking php.ini actually screws things up.

 

Can anybody kindly help me with this?

 

Thanks,

 

Paul

Looks like php is having a problem while reading the configuration in the php.ini. Go into the php.ini and enable a setting called display_startup_errors, by changing its default value Off to On.

 

Save the php.ini try to startup Apache again. This time you should see error prompts being displayed if PHP is having a problem when loading.

Hi,

 

Thanks a lot for your reply. I went through the steps as suggested. But

 

1. when I restarted Apache2 via Start > Control Apache Server > Start, I didn't see any error reported.

2. there's no PHP loading error reported in ...\Apache2\logs or PHP5 install directory.

 

Can you please tell me what I should watch for the debugging messages?

 

Thanks,

 

Paul

Hi there,

 

Just more info about my issue.

 

Initially I used PHP5 installer to install a copy of PHP5. Without getting it work successfully, I clean up the PHP5 installation, and used php-5.2.4-Win32.zip to set up PHP5.

 

I'm wondering if the issue is caused by the previous PHP5 installation leftover?

 

Thanks,

 

Paul

that settings shouldn't affect MySQL form loading. short_open_tag allows you to use <? ?> or <?= ?> instead of <?php or <?php echo ?>

 

Oh, forgot to mention your httpd.conf and php.ini configuration is fine. So I don't know what the problem is. I noticed you have a few extensions enabled. Try commenting out all extensions. Then enable each extension one by one until come about the problem you are having.

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.