Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

PHP installation

hi!
i have installed php 4.3.1 using installer on windows 98...i have pws running...
i still cant view my php file in browser
i get the error
404 file not found!
plz guide me wat has gone wrong..
i really want my php code running...
plz answer me at ur earliest
regards
0
aleezah
Asked:
aleezah
  • 5
  • 3
  • 3
  • +4
1 Solution
 
dorwardCommented:
The file isn't at the URL you are typing in to your browser.
0
 
joelstobartCommented:
if you haven't installed PHP correctly an error, or an obvious result would occur.

As you are recieveing a 404 error I presume you have not got the correct file path; or location of the file. Are you sure you are browsing to the correct file?(you may find it may help temporarily to turn directory browsing on and browse to the file through that).

Can you see HTML pages you have created on the server ior is it a new installation?

Good Luck
Joel

 
0
 
TranQuocVietCommented:
* Check if you have set Apache to support PHP.
* Check if you have set virtual host properly.
Error 404: wrong URL or file not found. Create a index.html in your root and point the URL to that file and check if this file can be loaded
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
aleezahAuthor Commented:
hi!
well pws is working fine..i can view all my html and asp pages...
and i am giving the right path...
still its not working
need help!!!
0
 
prady_21Commented:
Well, even if you are giving the right path in the browser, the file has to be placed in the right directory.

Are you getting the default page of Apache?????

First of all, check you default DocumentRoot in the httpd.conf file. Place the php file in that directory, and then in the URL your address should contain only the path from the DocumentRoot.
If you have done all this right, then i dont see why you should get this error.
0
 
joelstobartCommented:
confirm that you hahve doen everything for http://www.zend.com/manual/install.iis.php 

I guess particularly the line

"In the PWS Manager, right click on a given directory you want to add PHP support to, and select Properties. Check the 'Execute' checkbox, and confirm. "

0
 
aleezahAuthor Commented:
thanx for the help...but now i get another error...
Warning CGI !
cgi_redirect_status....asked me to disable it..
i did now i get
500 internal web server error
plz guide me wat to do now!
waiting
aleezah
0
 
joelstobartCommented:
1) could you tell me the name of the installer you used (with version and type (ISAPI or CGI). If you don't know this; just the name of the file is fine.  

2)Could you turn logging on "check the Save Website Activity Log" in the advanced tab of the PWS manager. If possible could you browse to a page and then post the results of the error here?

Then we can try some diagnosis.

Thanks
Joel.
0
 
aleezahAuthor Commented:
hi!
well i used php 4.3.1 installer
when i try to execute php code ..it gives this error
error 500
internal web server error
 need some help..
i have so work to do and my php is not even running

regards
0
 
dorwardCommented:
What error does it put in the web servers error log?

What happens if you try the simplist PHP script:

<?php  phpinfo();  ?> (and nothing else)
0
 
aleezahAuthor Commented:
hi!
when i try this code i still get the same error...
500 internal web server error..
i dont know how to check web server error log...coz i have installed pws for 95...there is no manager for it,,,,
but when i execute the simplest code i get this error
always same..
need help...
0
 
prady_21Commented:
Can u just tell the directory where u have placed the program
And the path to it. What is the program name???
anything at all??
0
 
aleezahAuthor Commented:

hi!
well i have stored my php file in the root directory...webshare/wwwroot/h.php
then i acess it by this path in my web browser
http://localhost/h.php
but i get that error...500 web server internal error
i can acess asp page ..but not the php
wat have i done wrong!!!
0
 
prady_21Commented:
Check the DocumentRoot in httpd.conf file and see what is the correct path.
0
 
COBOLdinosaurCommented:
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

<note>
Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
</note>

If the user does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp


Cd&

0
 
Programming_GalCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between joelstobart and prady_21

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Programming_Gal
EE Cleanup Volunteer
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 5
  • 3
  • 3
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now