Friday, October 07, 2011

EC2 OpenSuSE 11.4 install

zypper install yast2 yast2-ncurses yast2-ftp-server yast2-sshd yast2-online-update yast2-mail yast2-ldap yast2-ldap-server yast2-http-server
zypper install vsftpd
zypper install php5 php5-pear php5-mbstring php5-mysql php5-pear php5-bz2 php5-curl php5-ctype php5-gd php5-fastcgi php5-iconv php5-hash php5-json php5-mcrypt php5-sqlite php5-tokenizer php5-xmlreader php5-xmlwriter
zypper install apache2-mod_php5 apache2-mod_mono
zypper install subversion subversion-server
zypper install mysql-community-server
zypper install Imagemagick

curl -O http://www.magentocommerce.com/downloads/assets/1.5.1.0/magento-1.5.1.0.tar.gz
curl -O http://ftp.drupal.org/files/projects/drupal-7.8.tar.gz
curl -O http://wordpress.org/latest.tar.gz
curl -O http://websvn.tigris.org/files/documents/1380/49056/websvn-2.3.3.tar.gz
curl -O http://www.phpbb.com/files/release/phpBB-3.0.9.tar.bz2

mv *.gz /srv/www/htdocs
cd /srv/www/htdocs
tar -xvf magento-1.5.1.0.tar.gz
tar -xvf drupal-7.8.tar.gz
tar -xvf latest.tar.gz
tar -xvf websvn-2.3.3.tar.gz
tar -xvf phpBB-3.0.9.tar.bz2
rm *.gz
mv drupal-7.8 drupal
mv websvn-2.3.3 websvn

chmod a+w drupal/sites/default
cp drupal/sites/default/default.settings.php /drupal/sites/default/settings.php
chmod -R o+w magento/media magento/var
chmod o+w magento/app/etc
mv wordpress/wp-config-sample.php wordpress/wp-config.php
cp websvn/include/distconfig.php websvn/include/config.php
chmod 666 phpBB3/config.php
chmod 777 phpBB3/store/ phpBB3/files/ phpBB3/cache phpBB3/images/avatars/upload/

/etc/rc.d/mysql start
/etc/rc.d/apache2 start

mysql
CREATE USER 'magento'@'localhost' IDENTIFIED BY 'xxx';
CREATE USER 'drupal'@'localhost' IDENTIFIED BY 'xxx';
CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'xxx';
CREATE USER 'phpBB3'@'localhost' IDENTIFIED BY 'xxx';
CREATE DATABASE magento;
CREATE DATABASE wordpress;
CREATE DATABASE drupal;
CREATE DATABASE phpBB3;
GRANT ALL ON magento.* TO magento@localhost;
GRANT ALL ON drupal.* TO drupal@localhost;
GRANT ALL ON wordpress.* TO wordpress@localhost;
GRANT ALL ON phpBB3.* TO phpBB3@localhost;
exit

https://api.wordpress.org/secret-key/1.1/salt
edit content of wp_config file
vi wordpress/wp-config.php

http://dev.appcrowd.com/drupal/
http://dev.appcrowd.com/magento/install.php
http://dev.appcrowd.com/wordpress/wp-admin/install.php
http://dev.appcrowd.com/phpBB3/install

chmod a-w drupal/sites/default
rm -rf phpBB3/install/
rm -rf phpBB3/docs
chmod 644 phpBB3/config.php

1 comment:

best ed pills said...

This blog was... how do you say it? Relevant!! Finally I have found something which helped me. Thank you!