Selasa, 16 Februari 2021

Mac OS X Start / Stop / Restart Apache Web Server

How do I start or stop Apache/Apache 2 web server using a shell prompt option under Apple OS X (macos) UNIX operating systems?

The apachectl command act as Apache HTTP Server control interface. When you edit the Apache config file /etc/apache2/httpd.conf, you need to reload or restart the web server. Open the terminal application and type the following commands: 

To stop Apache web server, enter:

sudo apachectl stop
OR
sudo apachectl -k stop

To start Apache web server again, enter:

sudo apachectl start
OR
sudo apachectl -k start

To restart apache web server, enter:

sudo apachectl restart
OR
sudo apachectl -k restart

To run a configuration file syntax test

sudo apachectl configtest

To reload apache web server after editing the config file

First edit the config file, run:
$ sudo vi /etc/apache2/httpd.conf
Make changes as per your needs. Close and save the file. To reload new changes, run:
sudo apachectl graceful
OR
sudo apachectl -k graceful

Sample session from above commands

Fig.01: apachectl in action on macOS


You can displays a brief status report by visiting the url http://localhost:80/server-status in the web browser of your choice.


sumber : cybercity.biz

Continue reading Mac OS X Start / Stop / Restart Apache Web Server

Cara Transfer File dari Android ke Macbook - MacOS Big Sur

File Transfer

Android File Transfer

Browse and transfer files between your Mac computer and your Android device.

DOWNLOAD NOW

Supports macOS 10.7 and higher.

By downloading, you agree to our Terms of Service and Privacy Policy.

How to use it

  1. Download the app.
  2. Open AndroidFileTransfer.dmg.
  3. Drag Android File Transfer to Applications.
  4. Use the USB cable that came with your Android device and connect it to your Mac.
  5. Double click Android File Transfer.
  6. Browse the files and folders on your Android device and copy files.

sumber : android.com
Continue reading Cara Transfer File dari Android ke Macbook - MacOS Big Sur

Senin, 11 Januari 2021

Kembali Benar

terkadang aku lupa untuk apa aku dilahirkan di dunia ini. ada kalanya sedih dan
ada kalanya bahagia yang semua itu berjalan begitu cepat. tanpa kita sadari kita
telah beranjak menjauhi umur kita, masa kanak kanak yang dulu ketika melihat
mereka dimanja, masa sekolah yang dulu mereka bersahaja, aku bersedih.. sedih
yang aku tak bisa melakukan itu, namun ketika aku melihat sebuah rasa syukur itu
aku berpikir, betapa beruntungnya aku terlahir ke dunia. itu adalah sebuah
kepercayaan Tuhan yang telah diberikan kepada kita, dan Dia percayakan ruhNya
berada di tubuh atau jasad kita. seiring berjalan waktu yang telah aku lalui, aku
lalai dan bahkan hampir melupakan tujuan hidup itu, berkali datang peringatan
kepadaku, namun aku hanya terbesit sejenak. dan entah kenapa mungkin aku terlalu
asik dengan dunia ini. begitu banyak hal yang membuatku lupa, lupa akan jati diri
ini. melupakan kewajibanku dan aku... aku hanya mengikuti keinginan hatiku..
salah.. iya itu adalah sebuah kesalahan besar.. lalu apa yang aku lakukan. aku
hanya disini duduk dan termenung meratapi apa yang terjadi. apa... apakah dosa
ini dapat diampuni... setelah berkali aku melakukan. setelah berkali aku
melupakan keimananku selama ini... semua telah berlalu dan aku hanya membisu..
meratapi dosa... dosaku yang begitu mudah aku lakukan.. mungkin jumlah kebaikanku
selama ini takkan mampu mengimbangi.. takkan.. dan takkan pernah mengimbangi
dosaku.. dosa terbesar ini... teringat aku dulu, seorang santri yang senantiasa
berzikir dan beribadah kepadaMu, melantunkan ayat ayat suci ditengah keheningan
malam. berdoa dan bersyukur disetiap hembusan nafasku ini. tapi aku terpuruk...
aku terhanyut dan terujung di dalam kesesatan yang akupun tak tahu. dimana aku
bisa menemukan jalan.. jalan yang mampu membawaku keluar dari kenistaan yang
menghinakanku ini. harapan,, cuma dan hanya harapan yang aku punya saat ini..
sebuah niat tulus dari hati ini.. kembalikan aku... kembalikan aku kejalan Mu Yaa
Allah... Tuhan yang Maha Pengampun atas segala dosa hambaNya.. aku ingin
kembali... aku.... aku tak sanggup hidup dalam kegelapan yang membutakan mata
ini... membutakan hati dan pikiranku... doa sebagai penutup dari segala keburukan
yang terjadi.. Robbana Atina Fiddun Ya Hasanah, Wafil Aakhiroti Hasanah, Wakina
'azabannar...
Aaamiinnnn.......
Continue reading Kembali Benar

Senin, 28 Desember 2020

, , , , , ,

How to Use Traceroute

Reading Time: 4 minutes

Traceroute is an application that traces the path data takes from one computer to another. Basically a traceroute is a map that shows what stops or locations that data must pass through in order to go from one computer to another. To be an effective troubleshooting tool, the traceroute needs to be run from a computer experiencing the problem while the problem is occurring.

How Do I Run A Traceroute?

To Run a Traceroute in Windows

The command application (cmd.exe) is used to run a traceroute on Windows. Launching it is slightly different depending on your version of Windows:
  • In Windows 7:
    • click on the Start menu
    • type “cmd” and press Enter to get a command prompt.
  • In Windows 8:
    • move your mouse to the bottom-left corner of the screen to bring up the Start icon.
    • Right-click on Start and select Run.
    • Then type “command” and press Enter to launch the application.
    • Alternatively, you can type “command” into the Search field in the Charms menu after moving your mouse to the lower right corner of your desktop.
  • In Windows 10, type “command” into the search menu and press Enter for a command prompt.
To run the traceroute, type:tracert domainname.cominto the command prompt, where “domainname.com” is the name of the server to which you are having difficulty connecting. The traceroute may take only a few seconds or a few minutes. Typically, the closer you are to the server, geographically, the more quickly the traceroute will complete.

To Run a Traceroute in Mac OS X

If you have a Mac, you can use the built-in network tools to run a traceroute.
  • Launch Spotlight (with ⌘ + SPACE or by clicking on the magnifying glass in your menu) to search for and launch Network Utility.
  • Select the Traceroute tab and enter the hostname or domain name.
  • You also can perform a traceroute from the Terminal app. Simply enter:traceroute domainname.com

To Run a Traceroute in Linux

At the command line, type:traceroute domainname.com

What Does the Traceroute Show You?

Let’s take a few sample traceroute outputs.traceroute msu.eduThe output from that command shows a successful trace:traceroute to msu.edu (35.8.10.134), 30 hops max, 40 byte packets 1 lw-dc2-hsrp-vlan132.rtr.liquidweb.com (67.43.8.129) 1.330 ms 1.420 ms 1.554 ms 2 lw-dc2-core4-po2.rtr.liquidweb.com (209.59.157.131) 1.092 ms 1.311 ms 1.451 ms 3 lw-dc1-core1-ge3-5.rtr.liquidweb.com (209.59.157.93) 1.596 ms 1.897 ms 2.209 ms 4 lw-dc1-border3-ge4.rtr.liquidweb.com (209.59.157.29) 1.657 ms 1.748 ms 1.894 ms 5 12.116.80.97 (12.116.80.97) 4.748 ms 5.382 ms 5.453 ms 6 cr81.dtrmi.ip.att.net (12.122.102.2) 12.893 ms 12.035 ms 11.043 ms 7 cr1.cgcil.ip.att.net (12.123.139.157) 11.509 ms 11.615 ms 11.769 ms 8 12.123.7.33 (12.123.7.33) 10.645 ms 10.711 ms 10.760 ms 9 12.90.96.6 (12.90.96.6) 9.473 ms 9.537 ms 9.605 ms 10 xe-0-0-0x14.msu6.mich.net (198.108.22.10) 15.047 ms 14.458 ms 14.487 ms 11 192.122.183.227 (192.122.183.227) 16.976 ms 20.066 ms 20.137 ms 12 cc-t1-ge1-23.net.msu.edu (35.9.101.209) 20.228 ms 20.432 ms 20.312 ms 13 www.msu.edu (35.8.10.134) 16.856 ms 17.071 ms 16.341 msIt looks like gibberish, right? But it’s actually fairly easy to understand. After the traceroute command, the program tells you what it’s doing:
  1. It has looked up the domain msu.edu
  2. It found msu.edu on the IP address of 35.8.10.134
  3. It now will attempt to find its way there using no more than 30 “hops” (stops along the way, or connections to routers), and it will send a packet of 40 bytes.
The numbers at the far left are the number of the hop, followed by the name and/or IP address of the router that hop is going through. You can see that this trace started within the Liquid Web network, progressed through AT&T and found its way to msu.edu. The set of three numbers on the right side of the lines indicate the amount of time, in milliseconds, it took for that hop to complete. Traceroute performs each hop three times.
Note: When troubleshooting network latency by analyzing the time of each hop, please be aware that distance from your geographic location to the server is a factor. Any single hop covering a large physical distance (such as when crossing an ocean) naturally will take longer to complete.
In this example, there are no asterisks (which indicate a failure to respond within 5 seconds) and no inordinately long delays. If your traceroute to your VPS server looks like this, you’re in good shape in terms of network connectivity. Now, let’s look at a simulated traceroute that ends without reaching its destination:traceroute liquidweb.comtraceroute to liquidweb.com (209.59.139.21), 30 hops max, 40 byte packets 1 lw-dc2-hsrp-vlan132.rtr.liquidweb.com (67.43.8.129) 0.947 ms 1.028 ms 1.101 ms 2 lw-dc2-core4-po2.rtr.liquidweb.com (209.59.157.131) 1.275 ms 1.308 ms 1.385 ms 3 lw-dc1-core1-ge3-5.rtr.liquidweb.com (209.59.157.93) 1.849 ms 1.921 ms 1.980 ms 4 lw-dc1-dist1-ge1.rtr.liquidweb.com (209.59.157.2) 92.082 ms 92.155 ms 92.347 ms 5 * * * 6 * * * 7 * * * 8 * * * [truncated]In this example, our trace failed because we deliberately ran it from our internal network (just to demonstrate what a failed trace would look like). You can see that, beginning on the fifth hop, we have nothing but packet loss. The traceroute continued for the full 30 hops, each reporting * * * as it went. If your traceroute to the server ends with asterisks like this one, and never displays an IP address or server name after the asterisks, that means that the connection was not able to be completed. This could be for a variety of reasons including:
  • A network outage
  • High amounts of traffic causing network congestion
  • A firewall dropping traffic from your IP address
However, if the traceroute picks back up following a series of asterisks and ultimately ends with a server name and IP address, it means that the connection was successful — regardless of how many hops exceeded the 5-second response time. This can be an indication of network issues along the routes used in those hops, but it does not indicate a network problem on either your end or the server’s.
Note: If you see these asterisks once you are inside Liquid Web’s network, there may be no need to worry. VPS customers frequently are not able to trace to their instance on the parent server.
If you believe you are experiencing network issues, having the output of traceroute handy and providing it, along with your public IPV4 address (which you can obtain from http://ip.liquidweb.com) when contacting Heroic Support® is an excellent way to help us begin investigating the issue as quickly as possible.

Posted on  | Updated: 


Continue reading How to Use Traceroute

Senin, 09 November 2020

, , , , ,

Error 404 Not Found cwpsrv phpmyadmin - Centos Web Panel

 


solving problem Error 404 cwpsrv phpmyadmin - Centos Web Panel
1. login to root account via putty / terminal

2. update yum server

yum -y update
3. update phpmyadmin
sh /scripts/mysql_phpmyadmin_update

Continue reading Error 404 Not Found cwpsrv phpmyadmin - Centos Web Panel

Selasa, 29 September 2020

, ,

LIMIT PlayStore Mikrotik

/ip firewall layer7-protocol


add name=IPA regexp="\\.(ipa)"

add name=IPSW regexp="\\.(ipsw)"

add name=APK regexp="^.*get.+\\.apk.*\$"

add comment="PLAY STORE" name="Google Play Store" regexp=\

    "^.+.c.android.clients.google.com.*\$"


/ip firewall mangle

add action=mark-connection chain=forward comment=APK connection-mark=!Game \

    disabled=no layer7-protocol=APK new-connection-mark=APK packet-mark=\

    !Game_pkt passthrough=yes

add action=mark-packet chain=forward connection-mark=APK disabled=no \

    new-packet-mark=APK passthrough=no

add action=mark-connection chain=forward comment=IPA connection-mark=!Game \

    disabled=no layer7-protocol=IPA new-connection-mark=IPA packet-mark=\

    !Game_pkt passthrough=yes

add action=mark-packet chain=forward connection-mark=IPA disabled=no \

    new-packet-mark=IPA passthrough=no

add action=mark-connection chain=forward comment=IPSW connection-mark=!Game \

    disabled=no layer7-protocol=IPSW new-connection-mark=IPSW packet-mark=\

    !Game_pkt passthrough=yes

add action=mark-packet chain=forward connection-mark=IPSW disabled=no \

    new-packet-mark=IPSW passthrough=no

add action=mark-connection chain=forward connection-mark=!Game disabled=no \

    layer7-protocol="Google Play Store" new-connection-mark="PLAY STORE" \

    packet-mark=!Game_pkt passthrough=yes

add action=mark-packet chain=forward connection-mark="PLAY STORE" disabled=no \

    new-packet-mark="PLAY STORE" passthrough=no

  

/queue type  

add kind=pcq name=que-down pcq-burst-rate=1M pcq-burst-threshold=256k \

    pcq-burst-time=30s pcq-classifier=dst-address pcq-dst-address-mask=32 \

    pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=384k pcq-src-address-mask=\

    32 pcq-src-address6-mask=64 pcq-total-limit=2000  

  

/queue tree      

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

    max-limit=1M name=ANDROID packet-mark="" parent=V.DOWNLOAD priority=6

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=50k \

    max-limit=1M name=APEKA packet-mark=APK parent=ANDROID priority=6 queue=\

    que-down

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=186k \

    max-limit=1M name=IPESWE packet-mark=IPSW parent=ANDROID priority=8 queue=\

    que-down

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=50k \

    max-limit=756k name=IPS packet-mark=IPA parent=ANDROID priority=8 queue=\

    que-down

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=50k \

    max-limit=1M name="PLAY STORE" packet-mark="PLAY STORE" parent=ANDROID \

    priority=6 queue=que-down


sumber http://syakirahkomputer.blogspot.com

Continue reading LIMIT PlayStore Mikrotik