when lamp is installed, ensure follow this method:
Ubuntu 7.04 (Feisty Fawn) LAMP Server Setup -- Ubuntu Geek
ensure vim /etc/network/interfaces is setup like this:
auto eth0
iface eth0 inet static
address 192.168.3.50 #my unix box
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255 #standard broadcast
gateway 192.168.3.1 #router
ensure vim /etc/resolv.conf to this:
search localdomain
nameserver 192.168.3.1
then run:
apt-get install lynx
apt-get install ssh openssh-server
apt-get install vim
set mysql password for 'root';
#mysql -u root
mysql>SET PASSWORD FOR 'root'@'localhost' = PASSWORD('XXXXXXX');
then download latest phpmyadmin and extract to web directory and run
http://rupert.selfip.net/protected/p...ipts/setup.php
use cookie/localhost/root etc blowfish anything
#haven't figured out mcrypt yet
#following
PHP: mcrypt - Manual we've got to get fully encripted
#wget
SourceForge.net: Downloading ...
#download latest webmin and usermin
apt-get install libnet-ssleay-perl openssl libauthen-pam-perl libio-pty-perl libmd5-perl
dpkg --install webmin_1.350_all.deb
dpkg --install usermin_1.280_all.deb
#ensure you have added virtual server ports to 10000 and 20000 for webmin and usermin
#install a media wiki per
#
Setup a MediaWiki - GLUG-BOM
#
https://help.ubuntu.com/7.04/server/C/mediawiki.html
sudo apt-get install php5-gd
wget
http://download.wikimedia.org/mediaw...-1.10.0.tar.gz
#in /var/www/
tar -zxvf /pathTo/mediawiki-1.10.0.tar.gz
mv mediawiki-1.10.0/ wikiname
chown -R root:root wikiname
chmod 777 wikiname/config
chown -R www-data:www-data wikiname/config/
#open site and run setup page. once finished,
mv config/LocalSettings.php ./LocalSettings.php
#any problems run like above web page.
apt-get install mediawiki php5-gd
lndir /opt/mediawiki /var/www/html/wiki
#etc...
#get image upload working
vim /etc/php5/apache2/php.ini -> file_uploads = on
chown -R www-data:www-data /var/www/public/wiki_name/images/
#ensure NO alias in apache2.conf or http.conf have:
Alias /images/ /usr/share/images/
vim LocalSettings.php -> $wgEnableUploads = true;
-> $wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'pdf','tar.gz','zip');
#ensure imagemagick working and do:
$wgUseImageMagick = true;
#change logo top left
$wgLogo = "/public/mediawiki/images/logo.jpg";
# This snippet prevents new registrations from anonymous users
# (Sysops can still create user accounts)
# see
Manual:Preventing access - MediaWiki
$wgGroupPermissions['*']['createaccount'] = false;
# This snippet prevents editing from anonymous users
$wgGroupPermissions['*']['edit'] = false;
# Disable reading by anonymous users
$wgGroupPermissions['*']['read'] = false;
# But allow them to read the Main Page, login page, and JS/CSS pages
$wgWhitelistRead = array( ":Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css" );
# install subversion
apt-get install subversion
#ensure vim is the main editor for all programs including subversion
update-alternatives –config editor
#then choose #4
#Get SVN access via apache web server http:// only
apt-get install libapache2-svn
vim /etc/apache2/mods-available/dav_svn.conf
#----------edit to something like this
<Location /svn>
DAV svn
SVNPath /var/lib/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
# The following three lines allow anonymous read, but make
# committers authenticate themselves.
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
#----------edit end ---------------
htpasswd -c /etc/apache2/dav_svn.passwd rupert
password
password
#use same again less the -c for subsequent users
chown -R www-data:www-data /var/lib/svn/
#----------------
apache2 -k restart
#and you should be able to access your svn repository via
http://hostname/svn
# current repository is at /var/lib/svn
#install samba smbfs swat
apt-get update
apt-get upgrade
sudo apt-get install samba smbfs swat xinetd
#Then I created a SAMBA user:
sudo smbpasswd -a username
#Then edited/created the xinet config file:
sudo vim /etc/xinetd.d/swat
#I put the following in it:
service swat
{
disable = no
socket_type = stream
protocol = tcp
user = root
wait = no
server = /usr/sbin/swat
}
#Then I needed to restart xinet to use these settings:
dpkg-reconfigure xinetd
# then browse to
cPanelŽ
#intall php eaccelerator - really effective!!
wget
http://bart.eaccelerator.net/source/....9.5.1.tar.bz2
cd eaccelerator-0.9.5.1
tar xjvf eaccelerator-0.9.5.1.tar.bz2
export PHP_PREFIX="/usr/bin/"
apt-get install php5-dev
phpize
apt-get install autoconf
./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config
apt-get install make
make
make install
vim /etc/php5/conf.d/eacclerator.ini
#--place the following--
zend_extension = "/usr/lib/php5/20060613+lfs/eaccelerator.so"
eaccelerator.shm_size = "0"
eaccelerator.cache_dir = "/var/cache/eaccelerator"
eaccelerator.enable = "1"
eaccelerator.optimizer = "1"
eaccelerator.check_mtime = "1"
eaccelerator.debug = "0"
eaccelerator.filter = ""
eaccelerator.shm_max = "0"
eaccelerator.shm_ttl = "0"
eaccelerator.shm_prune_period = "0"
eaccelerator.shm_only = "0"
eaccelerator.compress = "1"
eaccelerator.compress_level = "7"
eaccelerator.allowed_admin_path = "/var/www/eaccelerator"
#----------------------------
wget
http://security.ubuntu.com/ubuntu/po...ntu1.4_all.deb
dpkg -i php-pear_5.2.1-0ubuntu1.4_all.deb
pear install HTML_Template_IT
#basic calculator install
apt-get install bc
sudo pear install --alldeps channel://pear.php.net/DB_DataObject_FormBuilder-1.0.0RC7
sudo pear install MDB2
sudo pear install pear/MDB2#mysqli
#proper apache2 setup
vim /etc/apache2/sites-available/default
#comment/uncomment
RedirectMatch ^/$ /apache2-default/
#protect a directory from all except group members:
<Directory "/var/www/protected/">
AuthType Basic
AuthName "Protected Area"
AuthBasicProvider file
AuthUserFile /etc/apache2/passwords
AuthGroupFile /etc/apache2/groupfile
Require group users
</Directory>
#create password file (and symiltainiously create user/pwd
htpasswd -c /etc/apache2/passwords username
#create group file
vim /etc/apache2/groupfile
#enter following:
groupname: user1 user2 user3