[X] Choose Font Here

Default php File in Apache

ဒါကေတာ့ ကၽြန္ေတာ့္ Site ကို ဖတ္တဲ့ မသိေသးတဲ့ ေဘာ္ေဘာ္ေတြ အတြက္ပါ။ သိၿပီးသားသူမ်ားအေနနဲ ့ကေတာ့

အလြန္ကို လြယ္ၿပီး ရယ္စရာေကာင္းေသာ Post ေလးတစ္ခု ျဖစ္ခ်င္ျဖစ္ေနပါလိမ့္မယ္။ ဒါေပမယ့္ မသိေသးတဲ့

သူတစ္ေယာက္အတြက္ ရည္ရြယ္ၿပီး ေရးလိုက္ရပါတယ္။ ဒီလိုပါ တစ္ေန ့ကၽြန္ေတာ္ သူငယ္ခ်င္းတစ္ေယာက္က

သူ ့Localhost မွာ RUN လိုက္ရင္ index.php File က default အျဖစ္တက္မလာဘူးလို ့ေျပာတယ္။


http://localhost/ myproject/ ဆိုၿပီး Browser မွာ RUN လုိက္ရင္ myproject ထဲမွာ ရွိတဲ့ index.php ကို

စၿပီး RUN ခ်င္တာ ျဖစ္ပါတယ္။ အခုဟာက index.php ကို မ RUN ပဲ ရွိသမွ် directory, file ေတြကို ျပေနတာပဲ

ျဖစ္ပါတယ္။ ဒီေတာ့ ဒီ issue ကို ဘယ္လိုျပင္ရမလဲ ဆိုၿပီး ကၽြန္ေတာ့္ကို ေမးပါတယ္။ ဒါကေတာ့ Apache Setting

မွာ ျပင္ရမွာ ျဖစ္ပါတယ္။ Apache ထဲက conf ဆိုတဲ့ Folder ထဲကို သြားလိုက္ပါ။ ၿပီးရင္ httpd.conf ဆိုတဲ့ File ကို

Notepad, Notepad++, textpad စတဲ့ဟာ တစ္ခုခုနဲ ့ဖြင့္လိုက္ပါ။ ၿပီးရင္ေတာ့ Line 211 ကို သြားလိုက္ပါ။

ဒီ code ကို ေတြ ့ပါလိမ့္မယ္။

 

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

 

အဲ့ဒီမွာ ဒီလိုေလး ျပင္ေပးလိုက္ပါ။

<IfModule dir_module>
DirectoryIndex index.php
</IfModule>

 

ၿပီးရင္ေတာ့ Apache Service ကို restart ခ်ဖို ့မေမ့ပါနဲ ့။ ႏို ့မို ့ဆိုရင္ ျပင္ထားတာ

effect မျဖစ္ဘဲ ေနပါလိမ့္မယ္။ တစ္ခုေျပာခ်င္တာက ကၽြန္ေတာ့္ သူငယ္ခ်င္း Install လုပ္ထားတာကေတာ့ xampp,

wamp တို ့မဟုတ္ပါဘူး။ ဒါမ်ိဳး ေတြမွာေတာ့ ဒီလို case မ်ိဳးကို ေတြ ့ရခဲလွပါတယ္။ အထက္မွာ ေျပာခဲ့တဲ့အတိုင္း

ျပင္လိုက္ရင္ေတာ့ ဒီ issue ေလးက OK သြားပါၿပီ။

 

 

 

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.

Login Form

Categories Table View

JoomlaWatch Stats 1.2.9 by Matej Koval

Facebook Share

Share on facebook

Accordion FAQ

mod_joomtouch

Version Iphone

Version Iphone by JoomTouch