sammySeltzer
asked on
php/apachy setup
Greetings mates,
This is probably a question I should have asked before I started learning PHP.
I have a few (about 3) php applications, each on its own folder with its own files.
I have successfully setup apache, php, mysql and phpadmin and as stated, they work fine.
My (silly) question if you will, is what, if any configuration do I need to so I can easily fire up the browser and test/run each of the apps I built?
In other words, assume that I have a folder with php files on C:\ drive called workersComp.
Inside this folder, there is a default page aptly called default.php.
Then I have another folder,a lso on C:\ drive called FIB with a set of other php files and its own default.php file.
What additional config do I need to do so that I can easily open the browser and type:
http://localhost/workersComp/ and it fires up that app.
Then I can then type http://localhost/FIB/ and it works as well?
Right now, I am not able to do that.
Sorry if this too simplistic - and thanks.
This is probably a question I should have asked before I started learning PHP.
I have a few (about 3) php applications, each on its own folder with its own files.
I have successfully setup apache, php, mysql and phpadmin and as stated, they work fine.
My (silly) question if you will, is what, if any configuration do I need to so I can easily fire up the browser and test/run each of the apps I built?
In other words, assume that I have a folder with php files on C:\ drive called workersComp.
Inside this folder, there is a default page aptly called default.php.
Then I have another folder,a lso on C:\ drive called FIB with a set of other php files and its own default.php file.
What additional config do I need to do so that I can easily open the browser and type:
http://localhost/workersComp/ and it fires up that app.
Then I can then type http://localhost/FIB/ and it works as well?
Right now, I am not able to do that.
Sorry if this too simplistic - and thanks.
That is the correct solution.
You add anything that you want accessible to on the web with apache to the htdocs folder.
You add anything that you want accessible to on the web with apache to the htdocs folder.
ASKER
Great!
Thanks a lot.
Just one tiny (hopefully), little question and I am done.
Right now, if I fire it up on the web like:
http://localhost/WorkersComp/
it shows the directory listing all the files.
To make it work, I have to explicitly add the default file like:
http://localhost/WorkersComp/default.php.
That's not our preferred method, not the best practice anyway.
What do I need to change, I suppose in httpd.conf ( I suppose) so users will not be required to explicitly type default.php or index.php?
Any ideas?
Thanks a lot.
Just one tiny (hopefully), little question and I am done.
Right now, if I fire it up on the web like:
http://localhost/WorkersComp/
it shows the directory listing all the files.
To make it work, I have to explicitly add the default file like:
http://localhost/WorkersComp/default.php.
That's not our preferred method, not the best practice anyway.
What do I need to change, I suppose in httpd.conf ( I suppose) so users will not be required to explicitly type default.php or index.php?
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thx
ASKER
Adding each folder in htdocs will expose it to the browser.
I will wait for confirmation though.
Thanks