Jump to content

Php Not Working.


Go to solution Solved by PFMaBiSmAd,

Recommended Posts

Hello Everyone.

Till now I used to work on XAMPP and WAMP but today I tried installing Apache,PHP,and MySQL seperately(MAnually).

For that I downloaded Apache(httpd-2.0.64-win32-x86-openssl-0.9.8o.msi),

PHP(php-5.3.17-Win32-VC9-x86.msi)

MySQL(mysql-5.5.28-win32.msi).

 

First I installed Apache.Everything went right and on opening http://localhost it said that apache is correctly installed on your pc.

 

3bcb6de19de5a778fff8820d7eb67fbb.PNG

 

 

Then I installed PHP.While installing,it asked for httpd.conf file so I provided it and everything went fine.

Then I created a file named phpinfo.php in htdocs folder and wrote the following code in it

<?php
phpinfo();
?>

 

But when I opened the url http://localhost/phpinfo.php it is showing the following error.

0dd583e9326eafb46677ca15616c4450.PNG

 

 

Please hefp me out.Unable to solve it.

Link to comment
Share on other sites

The apache.org windows binary isn't compatible with the latest php.net windows binary. The following is from the side-bar on the php.net windows download page -

 

VC9 Versions are compiled with the Visual Studio 2008 compiler and have improvements in performance and stability. The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed

 

Do NOT use VC9 version with apache.org binaries

 

VC9 versions of Apache can be fetched at Apache Lounge. We use their binaries to build the Apache SAPIs.

Link to comment
Share on other sites

The latest VC6 version of php is 5.2.17. Why would you want to go back in time and use that version?

 

The latest xampp version already uses the proper VC9 builds of apache and php. Why not just stick to xampp?

As I said I used XAMPP till now but I want to learn how to install and configure Apache,PHP manually.So trying for it.

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.