473,396 Members | 1,655 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.

apache doesnt get php code

1
i am using apache, but when i am testing php it display the code in the browser,
i saved the test code in htdocs file of apache
please help.
Thank
Aug 11 '06 #1
3 1617
iam_clint
1,208 Expert 1GB
you need the php plugin for apache or php library whatever its called.
Aug 11 '06 #2
ronverdonk
4,258 Expert 4TB
Since there could be more then one casue for this, question: did you setup Apache according to the instructions for PHP users? E.g. did you specify the following or something that looks like the following
Expand|Select|Wrap|Line Numbers
  1. LoadModule php5_module "c:/php/php5apache2.dll"
  2. AddType application/x-httpd-php .php
  3. AddType application/x-httpd-php-source .phps
did you assign your documentRoot:
Expand|Select|Wrap|Line Numbers
  1. DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
and many more questions.

Ronald :cool:
Aug 11 '06 #3
Look here: :)

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php

Action application/x-httpd-php "/php/php-cgi.exe"

Hope you will get Idea...... :(
Aug 21 '06 #4

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

Similar topics

2
by: TrashOverride | last post by:
Hello guys i have a question about apache... i have installed Apache 2.0.54 PHP 5 MySQL 4.01 and i was wondering if i could use a name to access my apache server -> not to use http://localhost but...
2
by: tool | last post by:
I'm having a problem that I'm not sure of the source for... so I'm asking here as the Apache group doesnt seem to know anything about the error message Apache generates. The error message is...
0
by: veliscorin | last post by:
hi guys i was trying to use the prototype.js in my web application i placed an example index.html which links the js file via a script tag <script src="prototype.js"...
3
by: brundlefly76 | last post by:
I am using the apache-perl webserver in Feisty (an Apache 1.3 with mod_perl enabled), which works fine, but I cannot figure out how to install php5 into this webserver as well. Here's some stuff...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.