Easy setting of Joomla 3.0 Writable Directrory Permissions in Linux (CentOS) – safe method script

chgrp -R apache administrator/components administrator/language administrator/language/en-GB administrator/language/overrides administrator/manifests/libraries administrator/manifests/packages administrator/manifests/files administrator/modules administrator/templates components images images/ language language/en-GB language/overrides libraries media modules plugins plugins/ templates configuration.php cache administrator/cache logs tmp

chmod -R g+w,o-rwx administrator/components administrator/language administrator/language/en-GB administrator/language/overrides administrator/manifests/libraries administrator/manifests/packages administrator/manifests/files administrator/modules administrator/templates components images images/ language language/en-GB language/overrides libraries media modules plugins plugins/ templates configuration.php cache administrator/cache logs tmp

Installing BigDFT 1.5.2 with CUDA and OpenMPI support in Fedora 14 x64

BigDFT is DFT electronic structure calculation program that uses GPU acceleration. (http://inac.cea.fr/L_Sim/BigDFT/)

Latest version: 1.5.2

Installation tested in Fedoea 14 x64 with NVidia GT470 video card.

Installing prerequisites:

  • gcc
  • blas-devel
  • lapack-devel
  • openmpi (tested with 1.4.3)
  • NVidia Driver (tested with)
    • Need to disable Nueveu module, add xxxx to grub.conf
  • CUDA Toolbox (tested with 3.2)

Enviroment settings:


Configuring:

./configure –enable-mpi –enable-cuda-gpu –with-cuda-path=/usr/local/cuda FC=mpif90

Compiling:

make -j4

Testing:

cd tests

make check

Installing:

make install



CentOS5 Repositories Latest Versions (samba, apache, mysql, php)

Sernet Samba 3.5 repository

yum repo file: sernet-samba.repo

Jason’s Utter Ramblings Repo (httpd, php, mysql)

Import the GPG key:

rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Create /etc/yum.repos.d/utterramblings.repo:

[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Joomla 1.0.15

cd /var/www/html/

wget http://joomlacode.org/gf/download/frsrelease/6828/22537/Joomla_1.0.15-Stable-Full_Package.tar.gz

tar -zxvf Joomla_1.0.15-Stable-Full_Package.tar.gz

from su (assuming that you have ‘apache’ user for httpd):

chgrp -R apache administrator/backups/ administrator/components/ administrator/modules/ administrator/templates/ components/ images/ images/banners/ images/stories/ language/ mambots/ mambots/content/ mambots/editors/ mambots/editors-xtd/ mambots/search/ mambots/system/ media/ modules/ templates/ cache/

chmod -R g+w,o-rwx administrator/backups/ administrator/components/ administrator/modules/ administrator/templates/ components/ images/ images/banners/ images/stories/ language/ mambots/ mambots/content/ mambots/editors/ mambots/editors-xtd/ mambots/search/ mambots/system/ media/ modules/ templates/ cache/

chgrp -R apache components/com_expose/expose/xml/ components/com_expose/expose/img/ components/com_expose/expose/manager/amfphp/extra/passhash.inc.php components/com_expose/expose/config/config.xml components/com_expose/expose/manager/amfphp/extra/settings.xml

chmod -R g+w,o-rwx components/com_expose/expose/xml/ components/com_expose/expose/img/ components/com_expose/expose/manager/amfphp/extra/passhash.inc.php components/com_expose/expose/config/config.xml components/com_expose/expose/manager/amfphp/extra/settings.xml

Must have components:

http://www.joomfish.net/ joomfish

http://www.artio.cz/en/downloads/joomla-extensions/2 joomsef

PhpBB3

Set permissions:

chgrp -R apache cache files store images/avatars/upload images/avatars/gallery images/ranks images/smilies config.php

chmod -R g+w,o-rwx cache files store images/avatars/upload images/avatars/gallery images/ranks images/smilies config.php

eAccelerator

Latest version at http://www.eaccelerator.net/

Installing:

cd ~

wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2

tar jxvf eaccelerator-0.9.5.3.tar.bz2

cd eaccelerator-0.9.5.3.tar.bz2

phpize

./configure –enable-eaccelerator=shared –with-eaccelerator-content-caching –with-php-config=/usr/bin/php-config

make

make install

mkdir /tmp/eaccelerator

chgrp -R apache /tmp/eaccelerator

chmod -R g+w,o-rwx /tmp/eaccelerator

cp ~/eaccelerator-0.9.5.3/eaccelerator.ini /etc/php.d

#change ini file#

Upgrade:

Same until – mkdir

Check if installed properly:

php -v

Response:

PHP 5.2.6 (cli) (built: May  5 2008 10:32:59)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator