log/pass : osboxes/osboxes.org (1qayxsw2) installtion of magento (web-shop cms) on centos 7 (linux) in virtualBox-portable. Instructions at: http://mussoft.ch/tuts/ or below ------------------------------------------------------------------------------------------------------ install vbox: ------------- google portableappz & download installer only install from portable installer with correct vers. No -set virtualMachine folder -set bidirectional clipboard in vbox guest additions --------------- -start guestAddtions to get pkgName from error -google search, dld & install the devel rpm -terminal su : yum install gcc gcc-c++ make automake -reboot install mate (desktop environement, faster graphics with vbox) -------------------------------------------------------------- -terminal su: -yum install epel-release -yum groupinstall "X Window system" -yum groupinstall "MATE Desktop" -systemctl isolate graphical.target -systemctl set-default graphical.target -systemctl disable gdm.service -systemctl enable lightdm.service (keyboard may be us @ logon) -reboot -choose mate in top-right menu delete uneeded -------------- terminal su: -for i in `yum list installed|grep gnome|grep -v -E 'libgnome|gnome-icon-theme|gnome-keyring|gnome-themes-standard'|awk '{print $1}'`; do yum -y remove $i; done -yum install gnome-disk-utility -yum remove libreoffice* -package-cleanup --leaves | xargs -l1 yum -y remove shrink vdi (6.5gb to 4.7) ---------- google & download sysrescuecd mount & reboot mkdir /mnt/ss mount -n -o ro -t ext4 /dev/sda1 /mnt/ss zerofree /dev/sda1 (4-5mins) open adminPrompt in vbox folder: vboxmanage modifyhd E:\portable\vbox\centOS71.vdi --compact sys essential configs 1 ----------------------- -change keyboard in system>prefs>hardware -in lookNfeel screensaver & power options and appearance-solidColor -personal>fileManagement-listView+columnWidth-display shortDate-media disable autorun-listColumns>permissions -terminal:passwdsupasswd<1qayxsw2> -reboot -set timeZone in system>admin>date install caja-beesu (suWrapper-fileManager) ------------------------------------- -google search caja-beesu centos 7 & caja-beesu-manager centos 7, dld & install -terminal : caja-beesu-manager -choose what u like -open computer-rightClick fileSystem>script>caja -set prefs sys essential configs 2 ----------------------- -open /etc/lightdm/lightdm.conf with pluma (right-click) -modify: -user-session=mate-session -autologin-user=osboxes (in seatDefault section at the end) shared folder with samba ------------------------ -create shared in windows wit auth user terminal su: -yum install samba samba-common samba-client -mount -t cifs //10.0.2.2/downloads /mnt/win-d -o user= install openLiteSpeed --------------------- -terminal su: -gpasswd -a osboxes wheel -rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm -yum install openlitespeed mariadb-server -yum install lsphp56 lsphp56-mysql -yum search lsphp56 -yum install lsphp56-* --skip-broken -/usr/local/lsws/admin/misc/admpass.sh leave admin1qayxsw2 -ln -sf /usr/local/lsws/lsphp56/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp5 start MariaDB ------------- -systemctl start mariadb -systemctl enable mariadb (set to start mdb at startup) -mysql_secure_installation (1qayxsw2) (then enter to the end) -service lsws status (to check if liteSpeed is running) -firefox > http://localhost:8088 (to check if liteSpeed is running) Logon to liteSpeed admin ------------------------ -firefox > http://localhost:8088 (to check if liteSpeed is running) -newTab > http://localhost:7080 -log/pass:see 3rd step previous section -set firefox>prefs>general :openTabsFromLastTime -home is at: /usr/local/lsws/DEFAULT install valentina studio (db management tool) --------------------------------------------- google & download/install valentina studio register to get a free key start it under applications>programming click connect to... (bottom left of start tab) choose mySql with log/pass: root/1qayxsw2 (save as bookmark) in schemaEditor tab, under databases, right-click>createDb magento01 install magento --------------- -mount.vboxsf downloads /mnt/win-d copy magento files to /usr/local/lsws/DEFAULT/html/magento01 -chown -R nobody /usr/local/lsws/DEFAULT/html/magento01 create folders in conf vhosts/magento01 copy vhconf.xml (mkdir) right click vhosts & set permissions setup virtualHost ----------------- BASIC Virtual Host Name:magento01 Virtual Host Root:$SERVER_ROOT/DEFAULT/ Config File:$SERVER_ROOT/conf/vhosts/magento01/vhconf.xml Enable Scripts/ExtApps:Yes Restrained:Yes GENERAL Document Root:$VH_ROOT/html/magento01 Index Files:index.php REWRITE enable rewrite: yes add to rewrite rules: ############################################ RewriteBase /DEFAULT/html/magento01 ## Uncomment out the next line to enable light API calls processing # RewriteRule ^/api/([a-z][0-9a-z_]+)/?$ api.php?type=$1 [QSA,L] ## Rewrite API2 calls to api.php (by now it is REST only) RewriteRule ^/api/rest api.php?type=rest [QSA,L] ## Workaround for HTTP authorization in the CGI environment RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] ## TRACE and TRACK HTTP methods disabled to prevent XSS attacks RewriteCond %{REQUEST_METHOD} ^TRAC[EK] RewriteRule .* - [L,R=405] ## Redirect for mobile user agents #RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$ #RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302] ## Always send 404 for missing files in these folders RewriteCond %{REQUEST_URI} !^/magento01/(media|skin|js)/ ## Never rewrite for existing files, directories, and links RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l ## Rewrite everything else to index.php RewriteRule .* /magento01/index.php [L] ############################################ gracefull restart configure magento ----------------- copy js/prototype/validation.js search for validate-url in pluma delete whole block (between two commas) -firefox > http://localhost:8088/magento01/index.php -agree -locale:french-timeZone:wEurope-currency:francSuisse -db:magento01, log/pass:root/1qayxsw2 -skip survey go to adminPanel -delete js/prototype/validation.js & rename copy