- Change the boot order in BIOS so the CD, DVD, or BD drive is listed first. Some computers are already configured this way but many are not.
If the optical drive is not first in the boot order, your PC will start "normally" (i.e. boot from your hard drive) without even looking at what might be in your disc drive.
Note: After setting your optical drive as the first boot device in BIOS, your computer will check that drive for a bootable disc each time your computer starts. Leaving your PC configured this way shouldn't cause problems unless you plan on leaving a disc in the drive all the time.
- Insert your bootable CD, DVD, or BD in your disc drive.
How do you know if a disc is bootable? The easiest way to find out if a disc is bootable is to insert it in your drive and follow the remainder of these instructions. Most operating system setup CDs and DVDs are bootable, as are many advanced diagnostic tools like the ones I discussed above.
Note: Programs downloadable from the Internet that are intended to be bootable discs are usually made available in ISO format. See How To Burn an ISO File for more information.
- Restart your computer.
- Watch for a Press any key to boot from CD or DVD... message.
When booting to a Windows setup disc, and some other bootable discs as well, you may be prompted with a message to press a key to boot to the disc. To boot from the disc, you'll need to press any key on your keyboard (like the space bar) within the few seconds that the message is on the screen.
If you do nothing, your computer will check for boot information on the next boot device in the list in BIOS (see Step 1) which will probably be your hard drive.
Some bootable discs do not prompt for a key press and will start immediately.
- Your computer should now boot from the CD, DVD, or BD disc.
How to install windows OS
Install Zend Server and MySQL
Firstly, you need to create a new Cloud Server instance in the Rackspace control panel. For this tutorial, I'm using a 1024MB server with CentOS 5.6 as the operating system. This is a 64bit install.
Any lines in this tutorial starting with # should be typed at the command prompt.
Once your server is active, log on via SSH as root.
Firstly, we need to create a directory to store our downloaded files in:
Once you have uploaded the package, we can grab a couple of repositories. We can use wget for these which makes our lives much easier.
I have attached a shell script called iptables.sh that can be used to configure a simple but secure setup that will allow access to only SSH, Apache and Zend. The script is based on the documentation in the Centos Wiki I linked to above, so it should be easy to understand.
Create the script by pasting the code below to /usr/sbin using vi. vi /usr/sbin/iptables.sh
http://yourip:10081
You should see the Zend control panel here and be able to proceed to configuring your Zend installation.
The order of the names is actually really important here if you want to install sendmail later. Sendmail wants to see the fully qualified names first, otherwise you will experience massive latency every time you restart the server or need to send emails.
Next, set the hostname:
Save and exit. Then restart the network service.
Any lines in this tutorial starting with # should be typed at the command prompt.
Once your server is active, log on via SSH as root.
Firstly, we need to create a directory to store our downloaded files in:
- mkdir Downloads
- cd Downloads
Once you have uploaded the package, we can grab a couple of repositories. We can use wget for these which makes our lives much easier.
- wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
- wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm or wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/5/i386/epel-release-5-4.noarch.rpm
- tar -xzf ZendServer-5.1.0-RepositoryInstaller-linux.tar.gz
- cd ZendServer-RepositoryInstaller-linux/
- ./install_zs.sh 5.3 ce
- yum install -y php-5.3-extra-extensions-zend-server zend-server-framework-extras
- yum install mysql-server
- service mysqld start
- mysql_install_db
- /usr/bin/mysql_secure_installation
- chkconfig --levels 235 mysqld on
- cd ~/Downloads
- rpm -Uh remi-release-5.rpm epel-release-5-4.noarch.rpm
- vi /etc/yum.repos.d/remi.repo
- yum install phpmyadmin-zend-server-php-5.3
- cp /usr/local/zend/gui/lighttpd/htdocs/phpmyadmin/config.sample.inc.php /usr/local/zend/gui/lighttpd/htdocs/phpmyadmin/config.inc.php
- vi /usr/local/zend/gui/lighttpd/htdocs/phpmyadmin/config.inc.php
- vi /usr/local/zend/gui/lighttpd/etc/lighttpd.conf
$HTTP["remoteip"] !~ "127.0.0.1" {
$HTTP["url"] =~ "^/phpmyadmin/" {
url.access-deny = ( "" )
server.errorfile-prefix = "//usr/local/zend/gui/lighttpd/share/lighttpd-custom-errors/errorcode-"
}
}
To disable the security completely, you can simply comment out this block. Alternatively, just replace the IP Address with your own. Finally, we need to add Zend's bin and lib directories to the system path and restart Zend.- vi /etc/profile
PATH=$PATH:/usr/local/zend/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib
Save and exit - then read the new profile in to memory and restart Zend:- source /etc/profile
- zendctl.sh restart
Configure the firewall using IPTables
To explain how IPTables works with all the possible options is beyond the scope of this document. However, there is an excellent introduction to the topic here: http://wiki.centos.org/HowTos/Network/IPTables.I have attached a shell script called iptables.sh that can be used to configure a simple but secure setup that will allow access to only SSH, Apache and Zend. The script is based on the documentation in the Centos Wiki I linked to above, so it should be easy to understand.
Create the script by pasting the code below to /usr/sbin using vi. vi /usr/sbin/iptables.sh
#!/bin/bash
#
# iptables example configuration script
#
# Flush all current rules from iptables
#
iptables -F
#
# Allow SSH connections on tcp port 22
# This is essential when working on remote servers via SSH to prevent locking yourself out of the system
#
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
#
# Allow access to Zend Server default ports (http and https)
#
iptables -A INPUT -p tcp --dport 10081:10082 -j ACCEPT
#
# Allow access to apache (http and https)
#
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
#
# Set default policies for INPUT, FORWARD and OUTPUT chains
#
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
#
# Set access for localhost
#
iptables -A INPUT -i lo -j ACCEPT
#
# Accept packets belonging to established and related connections
#
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
#
# Save settings
#
/sbin/service iptables save
#
# List rules
#
iptables -L -v
Give the root user execute permissions on the file:- chown root iptables.sh
- chmod u+x iptables.sh
- ./iptables.sh
http://yourip:10081
You should see the Zend control panel here and be able to proceed to configuring your Zend installation.
Configure localtime and ntpd
- yum install -y ntp
- cd /etc
- ln -sf /usr/share/zoneinfo/GB localtime
- chkconfig ntpd on
- ntpdate pool.ntp.org
- service ntpd start
Configure your hostname
Rather than just running your server under an IP address, you should also configure a hostname. For this example, we will assume that your server IP address is 46.10.11.12 and you have pointed host.my-server.net at that IP address.- vi /etc/hosts
The order of the names is actually really important here if you want to install sendmail later. Sendmail wants to see the fully qualified names first, otherwise you will experience massive latency every time you restart the server or need to send emails.
Next, set the hostname:
- vi /etc/sysconfig/network
Save and exit. Then restart the network service.
- service network restart
Creating user and changing owner of folder cent os
Creating user and changing owner of folder (here is example folder is recipease) cent os
1)First we should connect via sftp to the server
Then we should create a folder call logs in var/www/vhost and inside logs folder we should create two files called error_log and access_log
2)Ssh connection:# ssh root@31.222.136.20
3)then u enter password: #xyz
4)add user:#useradd recipease
5)Changing password for user recipease:#passwd recipease
6)New UNIX password:# xyz
7)(this is change of ownership)#chown -R recipease /var/www/vhosts/recipease
8) #ls -l /var/www/vhosts/recipease
9)To change ip address to host name:#sudo gedit /etc/hosts
10)To restart the server:-#zendctl.sh restart
GIVING PERMISSION TO THE FOLDER AND FILE:
1)This is used to give the permission to the folder:-
a)#chmod -R a+w /dir/
INSTALLING SEND MAIL IN THE SERVER :
- connect to the server via SSH.via terminal
- enter the send mail installation CMD as show :-
#yum install sendmail
Get file from one domain name to other:
wget http://thewowcompany.com/blocks.tar.bz2
To Unzip:
#tar jxf acia.tar.bz2 (this is for tar.bz2 file )
#tar zxvf filename.tar.gz (this is for tar.gz file )
To Rename:
#mv source destination
copy files from server to server :
#wget http://pompeycarecouncil.co.uk/pompeycarecouncil.tar.bz2
create tar file in server :
1)connect to the server of that URL via SSH
2)go to the pertucular dir (Eg. cd /home/downhamw/public_html)
3)and zip the file there:# tar -czvf p.tar.gz *
to see all the user name added in server:
1)#cat /etc/passwd
Xdebug installation :-
Steps to install XDebug
1) Download the latest version of ( XAMPP For Linux ) From site [1]2) Find the PHP version and copy the text of PHP version
3) Go to link [2] ,and paste content there...
4) And press the Button ( analyse my phpinfo() )
5) It will produce some output as below example follow the instruction from that output:-
Instructions
1. Download xdebug-2.1.2.tgz 2. Unpack the downloaded file with tar -xvzf xdebug-2.1.2.tgz 3. Run: cd xdebug-2.1.2 4. Run: phpize As part of its output it should show: Configuring for: Zend Module Api No: 20090626 Zend Extension Api No: 220090626 If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step. 5. Run: ./configure 6. Run: make 7. Run: cp modules/xdebug.so /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626 8. Edit /opt/lampp/etc/php.ini and add the line zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so 9. Restart the webserver
Subscribe to:
Posts (Atom)
Start and Stop ssh-agent
Below is the bash script used to start and stop ss-agent #!/bin/bash ## in .bash_profile SSHAGENT=`which ssh-agent` SSHAGENTARGS="...
-
Please try: sudo apt-get install linux-backports-modules-cw-3.8-precise-generic I believe cw-3.8 includes the modalias for your devi...
-
I had a problem with tomcat, it says that port 8080 is already in use so I can not use it … What I did ? 1- Find what application/pro...