LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-04-2008, 10:00 AM   #1
bg108
LQ Newbie
 
Registered: Nov 2007
Posts: 17

Rep: Reputation: 0
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

Last edited by bg108; 02-04-2008 at 01:56 PM.
 
Old 02-05-2008, 04:02 AM   #2
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 36
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.

Last edited by Zmyrgel; 02-05-2008 at 04:04 AM.
 
Old 02-06-2008, 09:57 AM   #3
bg108
LQ Newbie
 
Registered: Nov 2007
Posts: 17

Original Poster
Rep: Reputation: 0
any other suggestions ?
 
Old 02-07-2008, 04:51 AM   #4
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 36
Nothing else pops in my mind.

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP & Apache - php files not processing aolong Linux - General 1 12-17-2006 03:09 AM
Creating new Linux distro- need locations of certain files. timothyb89 Linux - Distributions 2 08-14-2006 02:53 AM
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
problems with the apache & Php server of mandrake linux 9.1 krotaz Linux - Networking 6 11-21-2003 08:24 PM
How to map apache to tomcat server? gogo Linux - Software 10 07-15-2002 09:08 AM


All times are GMT -5. The time now is 04:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration