Why Isn't My PHP Script Running on a Virtual Host or Subdirectory?

  • Thread starter Thread starter *Kia*
  • Start date Start date
  • Tags Tags
    Php Virtual
AI Thread Summary
The PHP script currently functions only from the document root and returns a 404 error when executed from subdirectories or virtual hosts. To resolve this issue, it's essential to check the script's permissions and ensure that it is accessible from the desired locations. Additionally, configuring the Apache server settings may be necessary to allow the script to run correctly in different directories. The environment includes Apache2, PHP 4.3.10, and MySQL 4 on Windows 2000, and there are no issues running a phpBB forum in a subdirectory, indicating that the server setup is generally functional.
*Kia*
Gold Member
Messages
18
Reaction score
0
I have anice php script which works well, however it only works from document root and will only return a 404 error if I try to run it in either a subdirectory or on a virtual host.....

Any ideas how to get this script to run from anywhere?

btw it is called from a html form
I am running Apache2, php4.3.10,mysql4 on w2k
I run a phpBB forum in a subdir of root without any problems
 
Computer science news on Phys.org
Did you check your permissions?
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top