I need to work on Perl, PHP, MySQL, and Ruby software on Ubuntu. Are these already installed on Ubuntu or do these packages need to be installed?
I am using Ubuntu 12.04.
I need to work on Perl, PHP, MySQL, and Ruby software on Ubuntu. Are these already installed on Ubuntu or do these packages need to be installed?
I am using Ubuntu 12.04.
To install PHP and MySQL on Ubuntu 12.04, follow my steps from this link:
Or use the following. Both are the same, and the above link was mine, and it will describe you everything.
Install Apache
# sudo apt-get update
# sudo apt-get install apache2
Install MySQL
# sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
Once you have installed MySQL, we should activate it with this command:
# sudo mysql_install_db
Finish up by running the MySQL set up script:
# sudo /usr/bin/mysql_secure_installation
Install PHP
# sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
# sudo service apache2 restart
To Install Perl
# sudo apt-get install perl
To find a Perl module that's provided as an Ubuntu package:
# apt-cache search perl <module-name>
Replace the module-name with which you wish to get install.
To install Ruby:
Ruby packages for Ubuntu
#sudo apt-get install python-software-properties
#sudo apt-add-repository ppa:brightbox/ruby-ng
Press the Enter key.
#sudo apt-get update
To install Ruby 1.9.3:
#sudo apt-get install ruby1.9.3