CARI Infonet

 Forgot password?
 Register

ADVERTISEMENT

View: 1745|Reply: 11

EasyPHP configuration question

[Copy link]
Post time 27-1-2007 12:13 AM | Show all posts |Read mode
Pada otai2 PHP jika ada jenguk sini, nak tanya lah after install easy PHP, camana kita nak set certain pages to sebagai main page? Katakan kita install kat PC sendiri, then kita letak http://127.0.0.1/ sebagai tempat mula, dan kita ada satu page nama dia index.htm, so camana nak configure supaya bila kita taip address 127.0.0.1 ni keluar page index.htm nih tanpa perlu letak 127.0.0.1/index.htm?

Saya budak baru belajar web hosting . Harap dapat beri tunjuk ajar

[ Last edited by  kroeGand at 27-1-2007 12:14 AM ]
Reply

Use magic Report


ADVERTISEMENT


Post time 27-1-2007 01:05 AM | Show all posts
setahu aku xbuleh...

IP 127.0.0.1 = localhost
kalo ko nk load index.htm mmg wajib gna http://127.0.0.1/index.htm
ataupun http://localhost/index.htm

tak tahu le pulak kalo buleh...beyond my knowledge la..
Reply

Use magic Report

Post time 27-1-2007 01:12 AM | Show all posts
chk Apache's configuration file httpd.conf dan pastikan line yang ada DirectoryIndex seperti berikut:


DirectoryIndex  index.htm index.html index.php
Reply

Use magic Report

 Author| Post time 27-1-2007 01:14 AM | Show all posts
really?? aiyo.. kalau cam tu yg diorang buat kat web hosting tu yg set (katakan) www.akuterer.com ke certain page (index.htm ke home.htm ke) dlm directory www tu camana yek??

konpius banyak dah nih :gila:
Reply

Use magic Report

Post time 27-1-2007 01:15 AM | Show all posts
Originally posted by <i>orang_letrik</i> at 27-1-2007 01:05 AM<br />
setahu aku xbuleh...<br />
<br />
IP 127.0.0.1 = localhost<br />
kalo ko nk load index.htm mmg wajib gna <a href="http://127.0.0.1/index.htm" target="_blank">http://127.0.0.1/index.htm</a><br />
ataupun <a href="http://localhost/index.htm" target="_blank">http://localhost/index.htm</a><br />
<br />
tak tahu le pulak kalo buleh...beyond m ...
<br />

Boleh ... cuma perlu edit line DirectoryIndex tu ajer.  Kalau yg tersenarai kat line tu hanya 'index.html index.php'  maka file itu ajer la yang dibuka secara automatik file 'index.htm' takkan dibuka.
Reply

Use magic Report

 Author| Post time 27-1-2007 01:30 AM | Show all posts
Errr... yg line DirectoryIndex ni ada kat mana? httpd.conf ke?
Reply

Use magic Report

Follow Us
Post time 27-1-2007 01:34 AM | Show all posts
Yup httpd.conf.  Ko kena edit fail tuh dan restart apache.  Jgn lupa backup dulu sebelum edit kut2 ko silap nanti boleh ambik backup tu balik.
Reply

Use magic Report

 Author| Post time 27-1-2007 01:34 AM | Show all posts
Yatta!!! Arigatou san Mr Drasmadi. Thank you very much. dah boleh dah. tp just curious ada byk filename kat situ. dia ikut turutan ke kalau ada 2 file name yg ada dlm directory www ada dlm line ni, dia pilih yg mana satu? cthnya index.htm ada, index.html pun ada...

just curious
Reply

Use magic Report


ADVERTISEMENT


Post time 27-1-2007 01:38 AM | Show all posts
Bergantung kepada file yg ko letak kat directory tu nanti.  Kalau ko letak index.htm maka dia ambik index.htm ler.  Biasanya dalam satu directory org tak taruk ketiga2 index tu sekali, org pilih salah satu jer.  Kalau ko bangunkan website menggunakan Php maka ko akan gunakan index.php.
Reply

Use magic Report

Post time 27-1-2007 01:40 AM | Show all posts
Tapi kalau mmg tiga2 ada dia akan ikut turutan
Reply

Use magic Report

Post time 27-1-2007 01:40 AM | Show all posts
Ok la.. aku nak tido dah... bye..
Reply

Use magic Report

 Author| Post time 27-1-2007 07:18 PM | Show all posts
Thank u for the *free* tips. :tq: :tq: :tq:

Ingat nak buat static page je so .htm pun dah ok dah kot
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

9-6-2024 08:47 AM GMT+8 , Processed in 0.065569 second(s), 39 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list