SlideShare a Scribd company logo
1 of 14
Download to read offline
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
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
Add RSA Key
by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111
Friday, July 12, 13
sudo passwd
Change root password first !
by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111
Friday, July 12, 13
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
Add Domain name to Cloud Server
by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111
Friday, July 12, 13
Test Domain
by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111
Friday, July 12, 13
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
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
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
Test phpMyAdmin
by Eakapong Kattiya www.ibluecode.com eak.k@ibluecode.com +66 086-673-2111
Friday, July 12, 13
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
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
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

More Related Content

More from Eakapong Kattiya

(31 July 2013) iOS Basic Development Day 2 Human interface design
(31 July 2013) iOS Basic Development Day 2 Human interface design (31 July 2013) iOS Basic Development Day 2 Human interface design
(31 July 2013) iOS Basic Development Day 2 Human interface design
Eakapong Kattiya
 
Iphone developer advance location based
Iphone developer advance location basedIphone developer advance location based
Iphone developer advance location based
Eakapong Kattiya
 

More from Eakapong Kattiya (11)

(31 July 2013) iOS Basic Development Day 2 Human interface design
(31 July 2013) iOS Basic Development Day 2 Human interface design (31 July 2013) iOS Basic Development Day 2 Human interface design
(31 July 2013) iOS Basic Development Day 2 Human interface design
 
Android basic 4 Navigation Drawer
Android basic 4 Navigation DrawerAndroid basic 4 Navigation Drawer
Android basic 4 Navigation Drawer
 
Android basic 2 UI Design
Android basic 2 UI DesignAndroid basic 2 UI Design
Android basic 2 UI Design
 
Android basic 3 Dialogs
Android basic 3 DialogsAndroid basic 3 Dialogs
Android basic 3 Dialogs
 
Evrdi : Social Diary ( iOS and Android )
Evrdi : Social Diary ( iOS and Android )Evrdi : Social Diary ( iOS and Android )
Evrdi : Social Diary ( iOS and Android )
 
Android Basic Development Day 1 Introduction & ADT
Android Basic Development Day 1 Introduction & ADTAndroid Basic Development Day 1 Introduction & ADT
Android Basic Development Day 1 Introduction & ADT
 
iOS Basic Development Day 2 - Objective-C 2.0 & iOS Framework
iOS Basic Development Day 2 - Objective-C 2.0 & iOS Framework iOS Basic Development Day 2 - Objective-C 2.0 & iOS Framework
iOS Basic Development Day 2 - Objective-C 2.0 & iOS Framework
 
(1 July 2013) iOS Basic Development Day 5 - Submit to App Store
(1 July 2013) iOS Basic Development Day 5 - Submit to App Store(1 July 2013) iOS Basic Development Day 5 - Submit to App Store
(1 July 2013) iOS Basic Development Day 5 - Submit to App Store
 
Iphone developer advance twitter
Iphone developer advance   twitterIphone developer advance   twitter
Iphone developer advance twitter
 
iOS Advance Development - Social Media
iOS Advance Development - Social MediaiOS Advance Development - Social Media
iOS Advance Development - Social Media
 
Iphone developer advance location based
Iphone developer advance location basedIphone developer advance location based
Iphone developer advance location based
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

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

  • 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