Basic Rackspace cloud server configuration (Linux) WebServer & DNS PHP , mySQL , PHPMyAdmin

  • 2,507 views
Uploaded on

Basic Rackspace cloud server configuration (Linux) WebServer & DNS PHP , mySQL , PHPMyAdmin

Basic Rackspace cloud server configuration (Linux) WebServer & DNS PHP , mySQL , PHPMyAdmin

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,507
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
20
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Basic Rackspace cloud server Configuration WebServer & DNS PHP , mySQL , PHPMyAdmin by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 Friday, July 12, 13
  • 2. Login withTerminal via Rackspace Control panel by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 1 Friday, July 12, 13
  • 3. Add RSA Key by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 Friday, July 12, 13
  • 4. sudo passwd Change root password first ! by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 Friday, July 12, 13
  • 5. sudo apt-get install apache2 Install Apache2 for WebServer by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 Friday, July 12, 13
  • 6. Add Domain name to Cloud Server by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 Friday, July 12, 13
  • 7. Test Domain by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 Friday, July 12, 13
  • 8. sudo apt-get install mysql-server mysql-common mysql-client Install mySQLSever , PHP5 , phpMyAdmin sudo apt-get install php5-common php5-gd libapache2-mod-auth-mysql php5-mysql apache2- mpm-prefork libapache2-mod-php5 php5 php5-cli sudo apt-get install phpmyadmin mySQLSever PHP5 phpMyAdmin sudo service apache2 restart restart apache2 sudo nano /etc/apache2/apache2.conf Include /etc/phpmyadmin/apache.conf Add new Line into Last line of file ‘/etc/apache2/apache2.conf’ by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 $ mysql -u root -p Friday, July 12, 13
  • 9. Change mySQLSever root password Access mySQL console by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 mysql -u root -p mysql> CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; mysql> GRANT ALL PRIVILEGES ON newuser.* TO 'user'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION; Create new mysql user Create new mysql user mysqladmin -u root -p'oldpassword' password newpassword Change mySQL password Friday, July 12, 13
  • 10. Include phpMyAdmin to WebServer phpMyAdmin sudo service apache2 restart restart apache2 sudo nano /etc/apache2/apache2.conf 1 2 3 Add line Control + O Control + X by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 Friday, July 12, 13
  • 11. Test phpMyAdmin by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 Friday, July 12, 13
  • 12. http://www.rackspace.com/knowledge_center/article/ rackspace-cloud-essentials-5-ubuntu-installing-vsftpd Install vsFTPd for upload files sudo chmod -R 777 /var/www change folder permission Step by Step by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 Friday, July 12, 13
  • 13. Add new user for FTP useradd -> Low level command by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 sudo useradd -d /var/www -m evrdi sudo passwd evrdi adduser -> High level command sudo adduser evrdi Change Home Directory sudo nano /etc/passwd 1 Friday, July 12, 13
  • 14. Install cURL Module for Rackspace API Install cURL Module by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111 sudo apt-get install curl libcurl3 libcurl3-dev php5-curl sudo service apache2 restart php -m Friday, July 12, 13