$ sudo apt-get install software-properties-common $ sudo add-apt-repository -y ppa:ondrej/mysql-5.7 $ sudo apt-get update $ sudo apt-get install mysql-server
check.....
rahul@tecadmin:~$ mysql --version mysql
Ver 14.14 Distrib 5.6.19, for debian-linux-gnu (x86_64) using EditLine wrapper
start.....
mysql -u root -p
check status......
sudo /etc/init.d/mysql status
sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start
APACHE (Using apt-get)
sudo apt-get update
sudo apt-get install apache2
check with localhost
PHP(Using apt-get)
- To install PHP,
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
- It may also be useful to add php to the directory index, to serve the relevant php index files. This will ask to load .php files first
sudo nano /etc/apache2/mods-enabled/dir.conf
- Add index.php to the beginning of index files.
<IfModule mod_dir.c> DirectoryIndex index.php index.html index.cgi index.pl index.php index.xhtml index.htm </IfModule>
PHP Modules
- to see the libraries available
apt-cache search php5-
sudo apt-get install name of the module
- to see PHP on the server
sudo nano /var/www/html/info.php
- Add following lines
PhpMyAdmin (Using apt-get)
- to install
sudo apt-get install phpmyadmin apache2-utils
- add phpmyadmin to the apache configuration
sudo nano /etc/apache2/apache2.conf
Include /etc/phpmyadmin/apache.conf
- restart the server
sudo service apache2 restart
JAVA
java -version
if installed
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)
first completely remove any java.....
http://askubuntu.com/questions/84483/how-to-completely-uninstall-java
then manually install(below perfectly work :) )
https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps
TOMCAT
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-14-04
do not give any folder ownership
set catalina path in bashrc
configuring tomcat
https://examples.javacodegeeks.com/enterprise-java/tomcat/tomcat-users-xml-configuration-example/
http://blog.techstacks.com/2009/05/tomcat-management-setting-up-tomcat.html
MAVEn
http://basicgroundwork.blogspot.com/2014/07/installing-maven-322-on-ubuntu-1404.html
ON WINDOWS
1) Java
https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html
setting up java Environment variables
https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_HowTo.html#jdk-install-step3
2) Xampp
http://www.wikihow.com/Install-XAMPP-for-Windows
3) Maven
http://www.mkyong.com/maven/how-to-install-maven-in-windows/
No comments:
Post a Comment