Hi,
I setup a LAMP enviroment on my laptop, and did related config on my apache
and linux as well.
But each time I visit my http://localhost, I was only been brought to
index.html instead of index.php.
Only when I tpye http://localhost/index.php, I can open the index.php page.
Any one know how to config this?
Thanks!
Dan 3 1608
"Daniel Huang" <da*********@hotmail.com> : But each time I visit my http://localhost, I was only been brought to index.html instead of index.php.
Only when I tpye http://localhost/index.php, I can open the index.php
page.
Hi.
In the httpd.conf, search for the line :
DirectoryIndex index.html index.html.var
(the file might be differents). If you didn't do it yet, add the index.php
in first position, as Apache will read from left to right in case both file
exist:
DirectoryIndex index.php index.html index.html.var index.htm
If i'm not wrong, in the httpd.conf you can set the "open" page on the
DirectoryIndex:
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
João Proença
"Daniel Huang" <da*********@hotmail.com> wrote in message
news:c2***********@netnews.upenn.edu... Hi,
I setup a LAMP enviroment on my laptop, and did related config on my
apache and linux as well.
But each time I visit my http://localhost, I was only been brought to index.html instead of index.php.
Only when I tpye http://localhost/index.php, I can open the index.php
page. Any one know how to config this?
Thanks!
Dan
JScoobyCed wrote: page.
Hi.
In the httpd.conf, search for the line : DirectoryIndex index.html index.html.var (the file might be differents). If you didn't do it yet, add the index.php in first position, as Apache will read from left to right in case both file exist: DirectoryIndex index.php index.html index.html.var index.htm
And of course, don't forget to restart apache with 'apachectl restart'.
Just in case :)
--
Guillaume Brocker This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kang Sun |
last post by:
Greetings!
I am testing Apache/PHP/MySQL. The connection seems to be right but
when I try to http://my_machine/mypage.php3?id=1", I won't be able to
get value the variable $id. Did I miss anything...
|
by: Jeff |
last post by:
Could someone walk me step by step on how to install and get JpGraph
running on a Windows 2000+Apache+PHP+MySql server?
-Thanks
Jeff
|
by: David Costa |
last post by:
Hello!
if you are interested in Linux easy install of Apache,PHP,MySQL,
SQLite it might be worth to have a look at Collegelinux:
"CollegeLinux 2.5 (http://linux.college.ch ) codenamed "Obi Wan",...
|
by: Jason Reljac |
last post by:
Howdy,
I'm looking for a little help.
I had a W2K server with Apache/PHP/mySQL installed and working. I had
a specific page that ran a mySQL SELECT INTO OUTFILE and dumped the
outfile into a...
|
by: weissborn |
last post by:
I have an application I have written in MS Access 2002. It is a very
basic inventory system for keeping track of information about our
Unix(solaris to be specific) servers. Other admins may want...
|
by: Strahimir Antoljak |
last post by:
I recently ventured into mamboserver.com
apache/php/mysql based webserver/hosting.
They absolutely claim that this thing is by far
superior as compared with MS IIS/ASP.NET.
Any thoughts? Is that...
|
by: TonyB |
last post by:
I'm running the zip'd version of PHP (PHP 5.1.2 zip package) downloaded
from here: http://www.php.net/downloads.php. PHP won't connect with
MySQL.
>From docs and threads, it seems enabling...
|
by: brock797 |
last post by:
hey im just starting to learn php and mysql, i am using CentOS 5 and have all the neccisary programs compiled correctly (apache, php, mysql, etc) i can use mysql from the command line with no flaws,...
|
by: YoLed |
last post by:
Hello.
I would like to add PHP and MySQL yo me local Apache server.
So, I've seen it exist simple packages like EasyPHP, WAMP and MOV'AMP,
but the three seems to install Apache too and I'm...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |