SlideShare une entreprise Scribd logo
1  sur  14
Télécharger pour lire hors ligne
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

Contenu connexe

Plus de 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
 

Plus de 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
 

Dernier

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
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
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
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
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
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

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