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
Click For Summary
SUMMARY

The discussion centers on troubleshooting a PHP script that only executes correctly from the document root, returning a 404 error when accessed from a subdirectory or virtual host. The user is operating on Apache2 with PHP version 4.3.10 and MySQL 4 on Windows 2000. Key suggestions include checking file permissions, which may be preventing the script from executing in the desired locations.

PREREQUISITES
  • Understanding of Apache2 configuration
  • Knowledge of PHP 4.3.10 syntax and functionality
  • Familiarity with file permissions in a Windows 2000 environment
  • Basic experience with HTML forms and their interaction with PHP scripts
NEXT STEPS
  • Investigate Apache2 virtual host configuration settings
  • Learn about setting file permissions on Windows 2000
  • Explore PHP error handling to diagnose script issues
  • Review PHP documentation for version 4.3.10 to understand limitations
USEFUL FOR

Web developers, system administrators, and anyone troubleshooting PHP scripts in Apache environments, particularly those using older versions of PHP and Windows operating systems.

*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?
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
14K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
6K
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
7K
Replies
6
Views
4K
  • · Replies 23 ·
Replies
23
Views
4K