473,472 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Why can't pages ending in .php be viewed?

Hello.

I am unable to view any web pages ending in .php. I think this happened shortly after a clean up of the computer when a 'never used' file folder called 'apache' was deleted!

I am not a programmer of any kind, just a user, so am not sure what to do.

I looked at downloading 'apache' but it seems complicated (so many possiblities) and for programmers only.

What can I install so that I can download and view web pages which are .php pages?

Thank you.
Oct 18 '10 #1
8 2957
You need to work on localhost.
WAMP Program is the easyest and the best localhost server
Oct 18 '10 #2
Atli
5,058 Recognized Expert Expert
I think this happened shortly after a clean up of the computer when a 'never used' file folder called 'apache' was deleted!
Apache is a web server, commonly used to display PHP websites. When it is working correctly, you shouldn't really be aware that it is there. (The same, by the way, can be said about most software that runs on your PC.)

You can download and install Apache fairly simply, but setting it up to work the way your old installation worked could be tricky. For one, I have no idea how it was set up, and seeing as you deleted the old files I'm guessing you don't either.

To set up Apache to work with PHP, you can simply download the Apache server and PHP separately and install them one after the other. There should be Windows installers available for both, and most Linux distros have them available in whichever package distribution system they use.

You can also use developer packages like XAMPP, which installs everything PHP websites may need at the same time. May be a bit much but it could be easier to set up.

Note that neither of these methods is likely to work as a drop-in replacement for the files you deleted. You will most likely have to configure them to get them working like your old installation. - If you can't figure out how to set it up as it was, there is little hope that I will be able to. Your best bet would be to find whoever set it up in the first place and ask them.
Oct 18 '10 #3
Atli
5,058 Recognized Expert Expert
WAMP Program is the easyest and the best localhost server
That's highly subjective. There are more than one developer packages like WAMP and XAMPP, and it would be very hard to argue that one is "easier" or "better" than the others.

Personally I've had great trouble with WAMP in the past, but XAMPP has never failed me. But then again, I've heard the exact opposite from others. - Like I say, very subjective.
Oct 18 '10 #4
Oralloy
988 Recognized Expert Contributor
Regardless of which package you install, if there is a back-end database to the whole thing, you'll have to make certain that you have the proper ODBC connection installed, or you'll have to install a local database, too.

Yea, I know I'm pouring fuel on the fire, but you really need to know what's involved before you just start opening boxes and turning on the pretty toys.

Do you just want to look at the pages, and have done with, or do you need to rebuild an application of some sort, which has more general use?
Oct 18 '10 #5
Thanks - but I am not programming / using any development tools! I just would like to view pages on firefox/ie which end in php!
if I look at a web page which ends .php, then the page I see is blank, although the browser says 'done'.
@Atli - thanks, I will try downloading the Apache server and PHP as you suggest.
Oct 18 '10 #6
@oralloy - yes, I just want to look at / view these .php pages on some sites which I visit. (No rebuilding/application stuff at all!) Thanks.
Oct 18 '10 #7
Atli
5,058 Recognized Expert Expert
These sites that you are visiting, is the URL either http://localhost/... or http://127.0.0.1/...?
If not then -- barring some weird hosts/router manipulation -- a local Apache server would have no effect. PHP pages hosted on other web servers would be parsed on those servers, not your computer.

Could you post a link to one of the pages that are not working, so we can test it? You can send it in a PM if you don't want to post it publicly.
Oct 18 '10 #8
@Atli
Brilliant - thank you so much - I downloaded the PHP installer php-5.2.14-win32-installer.msi and installed it (v easy), restarted the computer, and now the web sites work!!
Thanks again for your help, much appreciated :)
Oct 18 '10 #9

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

Similar topics

14
by: NotGiven | last post by:
I am guessing I would hold a variable of when it's opened, then in the script that runs when the page is offloaded, I coudl calcualte it. How do you store a time variable? How do you calculate...
6
by: Jim | last post by:
I've just bought a new Windows Server 2003 and I am trying to move an exiting FrontPage website to this new machine. I can't get ASP pages to run. IIS 6.0 has been installed. From the snap-in,...
1
by: VBSponge | last post by:
Hi all. In A2K i have a report with a control bound to to calculate the page count for the report. I need to retrieve this page count from the report, and build it into a TOC containing this an...
0
by: Tony Lewis | last post by:
I'm running IIS on a Windows 2k server and have just installed the .NET framework 1.1 so I can deploy ASP.NET applications on my server through .NET Studios. All my normal ASP applications run fine...
0
by: Rhys666 | last post by:
OK, an issue I've come across before, but never found a cause for or resolution of, has decided to become the bane of my life again with ASP.Net Custom Error Pages. Basically, my web application...
2
by: Troy Dot Net | last post by:
Hello All, We have an unusual problem that we've not seen before. We've developed a ..Net 2.0 site (via VS2005) that works great from within our network (we host the site and the SQL Server...
29
by: CAH | last post by:
Hi Can you avoid that googlebot indexes PHPSESSID pages? Googlebot is indexing pages with PHPSESSID, which makes it think my page has a infinite number of pages. How can one avoid this? ...
5
by: hanaa | last post by:
Hi I installed the Apache server 2.2.9 (HTTP server project). When I installed it the last time, I could host pages on the server, my friends could view the pages that i made. But recently, I...
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
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...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.