Basic Command For LAMP

Basic Command For LAMP

  • Find largest files
    • find / -size +10M -ls                  

  • Server size (use/available)
    • df -h

  • Basic Command
  • Basic Git Command
  • Update Service
    • apt-get update

  • Install Apache
    • sudo apt-get install apache2

  • Install MySQL
    • sudo apt-get install mysql-server

  • Install PHP
    • sudo apt-get install php5 libapache2-mod-php5

  • Install PHPmyadmin
    • apt-get install phpmyadmin

  • Restart Server
    • sudo /etc/init.d/apache2 restart

  • Check Apache
    • localhost/

  • Check PHP
    • php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'

  • Run JS Foever
    • forever start app.js

  • Enables the specified module within the apache2 configuration.
    • a2enmod

  • Disables a module by removing those symlinks.
    • a2dismod

  • Enable or disable an apache2 site
    • a2ensite, a2dissite    

  • Enable or disable an apache2 configuration file
    • a2enconf, a2disconf

  • Enable  rewrite mode
    • a2enmod rewrite




    • Related Articles

    • PostgreSQL basic commnad

      How to connect AWS-RDS of PostgreSQL using terminal or CMD & basic of PostgreSQL - syntax format psql -h HOSTNAME --port=5432 -U USERNAME DATABASENAME -W -h = host or RDS Endpoint -p 5432 pre define port for postgresql -u user name for database ...
    • Jail User

      #reference :  https://askubuntu.com/questions/93411/simple-easy-way-to-jail-users Jailkit is a set of utilities that can limit user accounts to a specific directory tree and to specific commands. Setting up a jail is much easier using the Jailkit ...
    • SLA Agreement

      Please find the SLA for different tasks involved :  LAMP - 3 hours LAMP + Node + Angular - 4 hours LAMP with AWS Server Setup -  8 Hours Domain pointing - 24 hours Domain transfer from one domain provider to another - 1 Week SSL purchase - 1 day SSL ...
    • increase-ec2-storage

      >> Command to check the volume size and partition size  $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 60G 0 disk  └─nvme0n1p1 259:1 0 30G 0 part / >> Command to extend the first partition  $ sudo growpart /dev/nvme0n1 1  CHANGED: ...
    • JAVA : Spring Boot

      When running Java Spring JAR file. Limit it's usage by following command java -XX:+UseSerialGC -Xss512k -XX:MaxRAM=512m - jar JARFILENAME-0.0.1-SNAPSHOT.jar