Forum Moderators: phranque

Message Too Old, No Replies

Apache Child Directory Issue

Problem with PHP script execution in ScriptAliased directory.

         

calmchess

9:16 pm on May 17, 2005 (gmt 0)

10+ Year Member



I created a child directory in the root of my webserver.....i configure an alias and a script alias which points to the child directory.....HTML works fine in the new child directory but PHP pages created using Macromedia Dreamweaver....won't run properly in the child directory, but if i copy the same page into the root directory it functions properly.
regards,
lost in apache land.

jdMorgan

12:53 am on May 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



calmchess,

Welcome to WebmasterWorld!

Please define/explain the following statement:

...but PHP pages created using Macromedia Dreamweaver....won't run properly in the child directory.

What fails?
How does the result differ from your expectations?
What is reported in your server error log?
What error do you see in your browser?

The answers to these questions will help you get an answer to your question.

Jim

calmchess

2:12 am on May 18, 2005 (gmt 0)

10+ Year Member



i don't recieve any error messages in internet explorer when i click on the PHP webpage in the child directory i see a blank screen but if i move the PHP webpage into the root if functions properly ....i have built all of the webpages using macromedia dreamweaver......as far as the apache logs are concearned i have pasted the information below........unfortuantely i'm not apache savvy enough to understand what went wrong.....will you shed some light on the problem?

[Tue May 17 21:08:59 2005] [notice] Child 3800: Acquired the start mutex.
[Tue May 17 21:08:59 2005] [notice] Child 3800: Starting 250 worker threads.
[Tue May 17 21:09:00 2005] [notice] Child 1920: Waiting for 250 worker threads to exit.
[Tue May 17 21:09:00 2005] [notice] Child 1920: All worker threads have exited.
[Tue May 17 21:09:00 2005] [notice] Child 1920: Child process is exiting
[client 127.0.0.1] PHP Warning: main(Connections/ledger.php): failed to open stream: No such file or directory in C:\\webserver\\development\\withdrawl.php on line 4, referer: [localhost...]
[client 127.0.0.1] PHP Fatal error: main(): Failed opening required 'Connections/ledger.php' (include_path='.;c:\\php4\\pear') in C:\\webserver\\development\\withdrawl.php on line 4, referer: [localhost...]
[client 127.0.0.1] PHP Warning: main(Connections/ledger.php): failed to open stream: No such file or directory in C:\\webserver\\development\\withdrawl.php on line 4, referer: [localhost...]
[client 127.0.0.1] PHP Fatal error: main(): Failed opening required 'Connections/ledger.php' (include_path='.;c:\\php4\\pear') in C:\\webserver\\development\\withdrawl.php on line 4, referer: [localhost...]
[client 127.0.0.1] PHP Warning: main(Connections/ledger.php): failed to open stream: No such file or directory in C:\\webserver\\development\\withdrawl.php on line 4, referer: [localhost...]
[client 127.0.0.1] PHP Fatal error: main(): Failed opening required 'Connections/ledger.php' (include_path='.;c:\\php4\\pear') in C:\\webserver\\development\\withdrawl.php on line 4, referer: [localhost...]

jdMorgan

3:08 am on May 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It looks like moving the script broke its path to "ledger" -- I don't know DW, so I don't know what that really means, except that you may need to adjust the paths in the script to work in its new 'home'.

I modified the 'description' of this thread to (hopefully) attract more competent advice.

Jim

calmchess

3:12 am on May 18, 2005 (gmt 0)

10+ Year Member



BTW i expect to see a dynamic form which allows me to access and manipulate data within mysql database.....As i said before if i put it in the root directory it functions properly...but in the child directroy its broken....I'm creating child directories so i can keep my pages organized....i don't like too many pages in a single directory...six pages is my goal for each directory....however i still want my pages and scripts to function in each child directory created.

calmchess

3:14 am on May 18, 2005 (gmt 0)

10+ Year Member



you replied while i was writing the above reply...
regards,
lost in apache land

calmchess

3:18 am on May 18, 2005 (gmt 0)

10+ Year Member



yes u are correct......i built a test script outside dreamweaver and it ran....so now i have narrowed down the problem to dreameweaver.....thnx for helping me keep my focus....distractions often lead me in the wrong direction....
regards,
lost in apache land.

calmchess

3:37 am on May 18, 2005 (gmt 0)

10+ Year Member



I fixed my problem completely after i changed the site location within dreamweaver to the child directory and rebuilt the script.