Register  FAQ   Search   Memberlist   Usergroups    fChat    Profile   Log in to check your private messages   Log in
Instalare GNUWorld

 
Post new topic   Reply to topic    deanservehttpcom Forum Index » Linux View previous topic :: View next topic  

Instalare GNUWorld
 PostPosted: Fri May 27, 2005 5:29 pm Reply with quote  
Message
  Admin
Site Admin

Joined: 02 May 2005
Posts: 14

Installing GNUWorld On RedHat, Mandrake, Suse, Debian, etc.. All By UnKnow


[root@FriendNet root]# /usr/bin/updatedb
[root@FriendNet root]# locate tclConfig.sh
[root@FriendNet root]# grep TCL_VERSION /usr/lib/tclConfig.sh

wget http://www.phlander.as.ro/tcl8.3.4.tar.gz


[root@FriendNet root]# tar -xzf tcl8.3.4.tar.gz
[root@FriendNet root]# cd tcl8.3.4/unix/
[root@FriendNet root]# ./configure
[root@FriendNet root]# make
[root@FriendNet root]# make install


wget http://cesnet.dl.sourceforge.net/sourceforge/pgsql/postgresql-7.2.4.tar.gz




[root@FriendNet root]# tar -xzf postgresql-7.2.4.tar.gz
[root@FriendNet root]# cd postgresql-7.2.4/
[root@FriendNet root]# ./configure --with-CXX --with-tcl --without-tk
[root@FriendNet root]# gmake
[root@FriendNet root]# gmake install


pico /etc/ld.so.conf


and add the following line : /usr/local/pgsql/lib
*** save the file, then run :

[root@FriendNet root]# ldconfig

*** To check that your PostreSQL installation includes TCL support, check that the following file exists onto your system :

[root@FriendNet root]# /usr/local/pgsql/bin/pgtclsh

*** Add a User & Creating GNUWorld:

[root@FriendNet root]# adduser gnuworld
[root@FriendNet root]# mkdir /usr/local/pgsql/data
[root@FriendNet root]# chown gnuworld /usr/local/pgsql/data
[root@FriendNet root]# su - gnuworld
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

*** Then run PostgreSQL :

[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -m smart stop
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/postmaster -SiD /usr/local/pgsql/data ( pentru conectarea pe ip )
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/postmaster -S -B 64 -N 32 -i -D /usr/local/pgsql/data -o -F -h 127.0.0.1

ps auxw | grep postmaster

Daca este nevoie de gcc :

wget http://www.phlander.as.ro/gcc-2.95.3.tar.gz

[root@FriendNet root]# tar -zxf gcc-2.95.3.tar.gz
[root@FriendNet root]# cd gcc-2.95.3
[root@FriendNet root]# ./configure
[root@FriendNet root]# make
[root@FriendNet root]# make install
[root@FriendNet root]# su - gnuworld

*** To Download The Gnuworld

[gnuworld@FriendNet gnuworld]$ cvs -d:pserver:anonymous@cvs.gnuworld.sourceforge.net:/cvsroot/gnuworld login

*** Type [enter] as password

[gnuworld@FriendNet gnuworld]$ cvs -z3 -d :pserver:anonymous@cvs.gnuworld.sourceforge.net:/cvsroot/gnuworld co gnuworld
[gnuworld@FriendNet gnuworld]$ cvs -z3 -d :pserver:anonymous@cvs.gnuworld.sourceforge.net:/cvsroot/gnuworld co website

[gnuworld@FriendNet gnuworld]$ cd gnuworld/
[gnuworld@FriendNet gnuworld]$./configure --enable-modules=cservice,ccontrol
or
[gnuworld@FriendNet gnuworld]$ ./configure --disable-static
[gnuworld@FriendNet gnuworld]$ gmake
[gnuworld@FriendNet gnuworld]$ gmake install
[gnuworld@FriendNet gnuworld]$ cd ..
[gnuworld@FriendNet gnuworld]$ cd gnuworld/doc/
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/createdb cservice
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/createlang plpgsql cservice -L /usr/local/pgsql/lib
or
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/createlang -L /usr/local/pgsql/lib plpgsql cservice

[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql cservice < cservice.sql
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql cservice < languages.sql
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql cservice < language_table.sql
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql cservice < greeting.sql
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql cservice < cservice.help.sql
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql cservice < cservice.web.sql
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/createdb local_db
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql local_db < local_db.sql
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql cservice < cservice.addme.sql
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/createdb ccontrol
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql ccontrol < ccontrol.sql
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql ccontrol < ccontrol.help.sql
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql ccontrol < ccontrol.addme.sql
[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql ccontrol < ccontrol.commands.sql
[gnuworld@FriendNet gnuworld]$ cd ../bin

*** Edit the config files then run

[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/psql cservice

cservice=# update pg_shadow set passwd='passwd' where usename='gnuworld';

pico /usr/local/pgsql/data/pg_hba.conf

host all 127.0.0.1 255.255.255.255 trust
host all 127.0.0.1 255.255.255.255 crypt

[gnuworld@FriendNet gnuworld]$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data restart
[gnuworld@FriendNet gnuworld]$ cd gnuworld/bin/
[gnuworld@FriendNet gnuworld]$ ./gnuworld -c -f GNUWorld.conf &

[gnuworld@FriendNet gnuworld]$ cd ../../website/php_includes/


pico /home/gnuworld/website/php_includes/config.inc


[gnuworld@FriendNet gnuworld]$ exit
[root@FriendNet root]# cd /home/gnuworld/gnuworld/doc/cmaster/
[root@FriendNet root]# cp -rp regproc/ /usr/local/pgsql/
[root@FriendNet root]# chown -R gnuworld /usr/local/pgsql/regproc/
[root@FriendNet root]# su - gnuworld


pico /usr/local/pgsql/regproc/appjudge-config


# Number of days an application has to pass the activity test
set MAX_DAYS 99

# Number of unique IP's that must visit a channel during the activity test
set UNIQUE_JOINS 99

# Number of supporters that must visit the channel during the activity test
set MIN_SUPPORTERS 99

# Duration of the notify period
set NOTIFY_DAYS 99

# Number of days supporters have to confirm their support
set SUPPORT_DAYS 99

[gnuworld@FriendNet gnuworld]$ chmod 755 /usr/local/pgsql/regproc/appjudge
[gnuworld@FriendNet gnuworld]$ crontab /usr/local/pgsql/regproc/cron-judge.in
[gnuworld@FriendNet gnuworld]$ exit

*** Setting up Apache and PHP


wget http://www.phlander.as.ro/apache_1.3.27.tar.gz
wget http://www.phlander.as.ro/php-4.2.3.tar.gz

tar -xzf apache_1.3.27.tar.gz
tar -xzf php-4.2.3.tar.gz
cd apache_1.3.27/
./configure --prefix=/usr/local/apache
cd ../php-4.2.3/
./configure --with-pgsql=/usr/local/pgsql --enable-track-vars --with-apache=../apache_1.3.27
make
make install
cd ../apache_1.3.27/
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
make
make install
cd ../php-4.2.3/
cp php.ini-dist /usr/local/lib/php.ini

pico /usr/local/lib/php.ini


[root@FriendNet root]# cd /usr/local/apache/htdocs/
[root@FriendNet root]# chmod 711 ~gnuworld
[root@FriendNet root]# chmod 711 ~gnuworld/website
[root@FriendNet root]# chmod 755 ~gnuworld/website/php_includes
[root@FriendNet root]# chmod 644 ~gnuworld/website/php_includes/config.inc
[root@FriendNet root]# chmod 755 ~gnuworld/website/docs/gnuworld/
[root@FriendNet root]# ln -s /home/gnuworld/website/docs/gnuworld live



pico /usr/local/apache/conf/httpd.conf


*** Find:
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>

*** and replace by : IfModule mod_dir.c

<IfModule mod_dir.c>
<DirectoryIndex index.php index.html>
</IfModule>

*** then find (look for example for 'AddType') :
# And for PHP 4.x, use:
#
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

*** and replace by : (if you haven't found the lines above, add them in the file then)
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

[root@FriendNet root]# ../bin/apachectl start

[root@FriendNet root]# /usr/local/apache/bin/apachectl restart


View user's profile Send private message Send e-mail

Post new topic   Reply to topic    deanservehttpcom Forum Index » Linux

Page 1 of 1
All times are GMT


Display posts from previous:

  

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum