473,396 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

php installation not working

Hi,

I have installed MySQL, Apache and PHP on my PC. I think Apache works because when I "http://localhost" I get the "It Works" reply.

I then want to test PHP. I created a simple test file "phpinfo.php" with the text
Expand|Select|Wrap|Line Numbers
  1. <?php phpinfo(); ?>
. When I "http://localhost/phpinfo.php" the browser displays the php code rather than the expected php information.

Can someone tell me where to look for the problem???

details:
the test file "phpinfo.php" is in the same folder as "htdocs/index.html"

I have modified the Apache "httpd.conf" file as follows:

LoadModule php5_module "c:/program files (x86)/PHP/php5apache2_2.dll"

AddType application/x-httpd-php .php

PHPIniDir "C:/program files (x86)/PHP"



Apache not recognising .php extension? Can anyone help ????

I am using Windows 7 (64).

thanks
Aug 15 '10 #1
4 2240
johny10151981
1,059 1GB
Expand|Select|Wrap|Line Numbers
  1. #the proper path of php5apache2_2.dll 
  2. LoadModule php5_module "C:/Program Files(x86)/PHP/php5apache2_2.dll"
  3. #copy php.ini file to apache directory and 
  4. PHPIniDir "C:/Program Files(x86)/apache"
  5. SetEnv TMP "C:/Program Files/(x86)/PHP/tmp"
first take a backup of your httpd.conf file and then look for PHPIniDir and other directives in the above code. And try to fix them according to your proper path. after that restart you apache server and then try again.
Aug 15 '10 #2
i have it working now, thanks very much
Aug 17 '10 #3
johny10151981
1,059 1GB
Hey,
can you please tell me how you make it work?
did you follow my instruction or you followed something else, if you followed something else, would you please post it here :)
Aug 17 '10 #4
No, I didn't try your suggestion.

I think my problem was I didn't have the server running. I didn't reboot my PC.

I still don't know how to start the PHP server mannually.

Anyway, the next day the system worked.

Thanks for your help all the same.

PS, I followed this link to stall MySQL, Apache and PHP

http://www.webdevelopersnotes.com/ho...-windows-7.php
Aug 18 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: Blair Adamache | last post by:
IBM is hosting a user focus session to get feedback on a new design concept for installing software products and maintenance. The information below gives a brief summary of the information about...
2
by: Philippe PERON | last post by:
Hello, An ACCESS application (mde) is installed on a computer looking at an mdb file on the same machine. As far as I know the application is installed thru a Wise Installer script. The...
27
by: Julien Fiore | last post by:
Do you wand to install Pyrex on Windows ? Here is a step-by-step guide explaining: A) how to install Pyrex on Windows XP. B) how to compile a Pyrex module. Julien Fiore, U. of Geneva
0
by: bparkis | last post by:
I have an installation of scapy on OS X (via macports) and I am trying to determine if it was successful or not. Nothing I do on the network seems to work completely, but on the other hand the...
1
by: joey.powell | last post by:
Hey guys, I am trying to get PHP working on a Windows Vista Ultimate box running IIS 7. First I made sure IIS was working properly....it is because it serves up aspx (asp.net) pages (please...
2
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have no idea where to post this question, or even if its appropriate for me to post it here. I don't know if installing a VB.Net program has caused the problem I'm having or not. All I know is I...
1
by: sureshbup | last post by:
Hi to all, I am trying to install CPAN modules using the command perl -MCPAN -e 'install qw (Text::CSV_XS)' but i get the problem like this even i changed the working proxies but none is...
0
by: Michael Matthews | last post by:
Hello, I'm fairly new to Python, and have run into dead ends in trying to figure out what is going on. The basic thing I am trying to do is get pylibpcap working on a Python installation. More...
0
by: Now You Know | last post by:
Best Christmas Lights Decoration Sale Installation in Los Angeles 818-386-1022 (These types of Innovative lights will definetly add to your Christmas decor) Here are the tips to use: The most...
0
by: Now You Know | last post by:
Best Christmas Lights Decoration Sale Installation in Los Angeles 818-386-1022 (These types of Innovative lights will definetly add to your Christmas decor) Here are the tips to use: The most...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.