473,405 Members | 2,373 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,405 software developers and data experts.

Why does Apache parse old PHP pages but not new ones?

just installed on my development box the WAMP EasyPHP 12.0 which includesPHP 5.4.4 VC9 | PHP 5.3.14 VC9 | PHP 5.2.17 Apache 2.4.2 VC9 + MySQL 5.5.25a + PhpMyAdmin 3.5.1 + Xdebug 2.2.0.

The problem: Old PHP pages are parsed by Apache and load correctly. However, any new pages created in the same directory as the old PHP pages are not parsed and only raw code is displayed. This is true even for a simple page like <?php echo 'Hello, World';?>

I could understand that if no .php files were parsed I would look for a problem with in the directory settings in the /httpd.conf. But I'm mystified why new pages are being ignored.

Any ideas? Thanks very much,
Rob
Jul 28 '12 #1
1 1600
computerfox
276 100+
This is one of the main reasons I would never use WAMP/MAMP. I use a Ubuntu Server box and I install the Debian versions of PHP and Apache2.

What I would suggest is first checking if there are any errors, If errors are off, try turning them on and checking if there are any errors.

Next make sure that WAMP is running correctly.

Normally, if it's not parsing, that means that PHP might not be running or there might be a bug in that version.

Oh it could also be the character set.

Try:

1)deleting the page that does work
2)create another
3)confirm that it works
4)create another FOLLOWING THE SAME PROCESS AS WITH THE ONE THAT WORKS.
Jul 30 '12 #2

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

Similar topics

7
by: Phong Ho | last post by:
I have this problem with PHP that someone might be able to help. With CLI, I am able to execute my .php files. For example, if I type "php phpinfo.php" , this works fine on my system. If I...
7
by: chotiwallah | last post by:
suppose i have the following code: switch ($inc): case 0: require 'inc0.php'; break; case 1: require 'inc1.php'; break; case 2:
2
by: Greg Kuperberg | last post by:
I plan to use pydoc for my Python project. After looking through the standard documentation, I am not sure how pydoc interprets its input. In its basic operation it evidently looks at the first...
3
by: Terry Jones | last post by:
I am trying to setup an Apache web server to accept XML document and use a CGI to process the content of the XML file. My questions are: * When a client performs a POST to the server; assume that...
6
by: linzhenhua1205 | last post by:
I occur a oddity C program,when I surfed the Internet. I have confussed by the style. Who can show detail information about it? <code> (original) int...
12
by: amfr | last post by:
I am writing a webserver, and I want it to be able to run python scripts. But when I set sys.stdin to self.rfile (using the BaseHTTPServer class, self.rfile is a input stream containing the...
18
by: Massa Batheli | last post by:
Can anyone tell me why .php code is not parsed #For PHP 5: short_open_tag = Off httpd.conf # Add to the end of the LoadModule section LoadModule php5_module "C:/PHP/php5apache2.dll" AddType...
4
by: =?Utf-8?B?VHJ1bWJh?= | last post by:
The debug version works ok, but the release version does not parse. (I suspect it's due to being in one long line.) Later versions of Safari correct this problem, but 1.3.2 is still fairly...
5
by: Guillermo Antonio Amaral Bastidas | last post by:
Hi everybody, I have a quick and probably dumb question, keep in mind I just dumped my old love FastCGI + Perl for it's younger hotter friend PHP5. If the user calls a time consuming script...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.