Skip to main content

Virtual Host in Lampp (Ubuntu)

ကုိယ့္စက္ထဲမွာ Local နဲ့ www.lartest.lo ဆိုျပီးေခၚရင္ var/www/{folder name} ကုိေထာက္ထားခ်င္တယ္ဆိုရင္ ဒီနည္းက အသံုးဝင္မွာပါ။

ပထမဆံုး Terminal ထဲမွတဆင့္ ေအာက္ပါ command သံုးျပီး file အသစ္ေဆာက္ပါ။

sudo subl /etc/apache2/sites-available/{sitename}.conf

*subl က Sublime Text Editor ျဖစ္ပါတယ္။ sublime မရွိရင္ subl ေနရာမွာ gedit ျဖင့္အစားထိုးသံုးျပဳႏိုင္ပါတယ္။

sublime ပြင့္လာရင္ ေအာက္ပါကုတ္ေတြေရးထည့္ပါ။

NameVirtualHost *:80
<VirtualHost *:80>
    ServerAdmin {master@server.com}
    ServerName {www.lartest.lo}
    ServerAlias {lartest.lo}

    DocumentRoot {/var/www/Mydev/lartest/public}

    LogLevel warn
    ErrorLog {/var/www/Mydev/lartest/log/error.log}
    CustomLog {/var/www/Mydev/lartest/log/access.log combined }
</VirtualHost>


* {} ထဲမွာ ကိုယ့္စက္နဲ့ကိုက္ညီေအာင္ထည့္ပါ။

ထည့္ျပီးရင္ save လုပ္ျပီးပိတ္လုိက္ပါ။ ေနာက္ Terminal ထဲမွာ ေအာက္ပါ command သံုးျပဳျပီး domain ကုိ Enable ျပဳလုပ္ပါခင္ဗ်ာ။

sudo a2ensite { file name }  // tab ခုန္ရင္ေပၚလာပါလိမ့္မယ္
ျပီးရင္ apache restart ျပဳလုပ္ဖုိ့ sudo service apache2 reload ျဖင့္ restart ျပဳလုပ္ပါ။

အားလံုးျပီးရင္ sudo nano /etc/hosts ျဖင့္ hosts ဖုိင္ဖြင့္ပါ။

127.0.0.1 localhost ေအာက္မွာ ေအာက္ကအတုိင္းထည့္ပါ။

  127.0.0.1   {Domain Name }
ဒါဆုိရင္ browser ထဲကေန လုပ္ထားတဲ့ Domain နဲ့ေခၚရင္ ေထာက္ထားဖိုင္ ဖိုဒါတန္းေပၚလာပါလိမ့္မယ္။


Thanks : Balaji Perumal & devo  [ http://stackoverflow.com/questions/20591889/site-does-not-exist-error-for-a2ensite ]

Comments

Popular posts from this blog

Lenovo VeriFace Software

ဒီေဆာ့၀ဲကေတာ့ ကြန္ပ်ဴတာ login ၀င္တဲ့အခါမွာ password ရိုက္စရာမလိုပဲ မ်က္နွာေလးျပလိုက္ရံုနဲ့ ေအာ္တို login ၀င္ေပးပါတယ္ .လန္းပါတယ္.webcam တခုေတာ့လိုပါလိမ့္မယ္ laptop ေတြ အတြက္ဆိုရင္ေတာ့ရွယ္ပါပဲ . တျခား brand ေတြမွာလဲအလုပ္လုပ္ပါတယ္ . ေလာေလာဆယ္ကၽြန္ေတာ္က Acer ၾကီးနဲ့ကလိေနတာ :D size : 30.39 MB Click here to download @ mediafire.com Click here to download @ ifile.it Photo credit @ www.tkshare.com Thank u,ko zaw ye` tun :)

Learning English Through Laughter : 3

Mr.Green went to Germany, because he had some work there.He came back last Monday, and his young wife met him at the airport. They walked to their car and passed a tall, pretty air-hostess. Mr. Green said to her , ' Goodbye, Miss Harris, ' and the air-hostess smiled and said, 'Good bye' too. Mrs. Green stopped and looked at the air-hostess .Then she said to her husband, 'How did you know her name?' 'That was easy,'answered Mr.Green. 'The names of the captain and all the screw were on a piece of paper in front of our seates.' 'What was the name of the captain?' Mrs. Green asked with a smile. Mr.Green launged and answered ,'I don't remember any of the other names.' 4/\/\@

firefox add-on ကုိ backup လုပ္ပီး offline install လုပ္ျခင္း

အခုကၽြန္ေတာ္ add-ons  ေတြ ကုိ backup လုပ္နည္းေလးေျပာျပပါ့မယ္။backup လုပ္လို့ရလာတဲ့အက်ိဳးေက်းဇူးကေတာ့ ကုိယ္ကအင္တာနက္ဆိုင္မွာပဲသံုးတယ္ဆိုရင္ ဆိုင္က mozilla firfox broswer ထဲမွာကိုယ္သြင္းထားတဲ့့ add-on ေတြကို အိမ္က browser ထဲကုိ ကလင့္ႏွစ္ခ်က္နိုပ္ရံုေလးနဲ့သြင္းပီးသံုးလို့ရပါတယ္. (၁) ပထမဆံုးအေနနဲ့ ဒီ လင့္ကိုကလင့္ ပီးေတာ့ backup လုပ္ဖို့အတြက္ FEBE ဆိုတဲ့ add-on ကုိသြင္းလိုက္ပါ(ရလာတဲ့ဖိုင္ကုိ mozilla နဲ့ဖြင့္ရပါမယ္). (၂) FEBE ကုိ install လုပ္ပီးရင္ mozilla borwser ကုိ ပိတ္ပီးျပန္ဖြင့္(restart)လိုက္ပါ ဒါဆိုရင္ ေအာက္ကပံုအတိုင္း mozilla ရဲ့ Tools ေအာက္မွာ FEBE ဆိုတာေလးအခုေပၚလာပါလိမ့္မယ္