how to configure httpd to run php
Hello friends, I really apreciate your help! Please can you assist me how to configure http and mod_php to be able to run online application (mysql and php)? Thanks a lot
Nshimiyimana |
Quote:
please write more detailed questions. We even dont know what kind of operating system You using. http://www.server-world.info/en/note..._5&p=httpd&f=1 here You have nice page... try on google... how to create LAMP server... hundreds of tutorials... have fun |
Hi
After installing mod_php, there nothing to edit the configuration file. You can see all conf files are included from conf.d directory in httpd.conf. So, create index.php in /var/www/html/ (DocumentRoot)(if are using rpm). and in browser type
Code:
http://localhost/index.php You need to edit /etc/php.ini file for that if you are using mysql/msql datebase. What database r u using, is that mysql? |
Add these in httpd.conf file
Load the appropriate php module(check 5 or 4) Quote:
<IfModule mime_module> area Quote:
Add index.php to the list of valid Directory Index files so that your "default page" in a directory can be named index.php. Quote:
|
It's all very editing config files, but most distros provide the integration tools themselves, and it's better to use the distro tools than go editing confs yourself (unless you know what you're doing).
What distro are we talking about here? |
On
Quote:
Yes I am using mysql. can you show me which configuration I have to do in /etc/resolv.ini. Thanks Nshimiyimana |
All times are GMT -5. The time now is 06:00 PM. |