LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Gentoo Linux - how to map Apache server to look at php files in multiple locations (https://www.linuxquestions.org/questions/linux-newbie-8/gentoo-linux-how-to-map-apache-server-to-look-at-php-files-in-multiple-locations-618590/)

bg108 02-04-2008 10:00 AM

Gentoo Linux - how to map Apache server to look at php files in multiple locations
 
Hi guys:

It's a little difficult for me to explain the problem I'm having with Apache server/mysql/php 5 running on Linux Gentoo. I'll try my best to explain and hopefully some experts here can help me (I'm new to Linux generally)

- I'm currently working for company that hosts a system called bizware on Gentoo Linux running apache server with php5 installed. The system was written in .php.
- The guy who previously worked here somehow configured apache server to search through multiple locations (folders containing .php files)

For example:

In the browser, if I type
http://bizware/login/

The login page appears for the user to log in. But supprisingly when I look at the folder login under bizware I don't see any index.php or index.html. Then I know that apache server uses the index.php in another location (folder/directory) on the server eventhough the url is http://biztest/login/

- I also noticed that he uses a lot of these mapping. For example
In loginRedirect.php there is a line

include(securityCheck.php);

But obviously there isn't any file like that in the same directory with loginRedirect.php

- The reason I'm asking this question is because I would like to dublicate the bizware system and put it on another machine/server. Only copying the codes (php files), dublicate mysql database won't work. Because apache apparently looked at multiple localtions, so I need to do some configuration inside Apache.

- Could you guys give me some suggestions to start. Then I'll do more searching to see what is going on.

Thanks

Zmyrgel 02-05-2008 04:02 AM

Check the php.ini file.

Lemme check more about the issue, I read about similar thing yesterday from my PHP book...

Edit: Yep, Check Apache's lookback feature. It seems to be what your after.

bg108 02-06-2008 09:57 AM

any other suggestions ?

Zmyrgel 02-07-2008 04:51 AM

Nothing else pops in my mind.

I haven't configured Apache beyond the basic settings yet.


All times are GMT -5. The time now is 11:38 AM.