GNUWorld Website Setup on Debian 7

Post Reply
User avatar
TheDavid
Site Admin
Posts: 2
Joined: Fri Jun 19, 2020 10:26 pm

GNUWorld Website Setup on Debian 7

Post by TheDavid »

Hello,
Bellow you can find all the steps needed to be done in order to build thr CService (X) WebPage using Debian 7 linux server and PHP5.3.10-2 versions.

1. * Change the current "sources.list" to be able to download PHP5.3.10-2 versions.
  • cd /etc/apt
  • mv sources.list sources.list.old
## This is the setting required to be able to use Debian Snapshot
  • apt-get -o Acquire::Check-Valid-Until=false update
## Ignore the KEYEXPIRED notice and choose yes after each packet installation
  • cd
  • apt-get update
  • apt-get install php5=5.3.10-2
  • apt-get install php5-cli=5.3.10-2
  • apt-get install php5-fpm=5.3.10-2
  • apt-get install php5-pgsql=5.3.10-2
  • apt-get install php5-dev=5.3.10-2
  • apt-get install php5-recode=5.3.10-2
  • apt-get install php5-sybase=5.3.10-2
  • service php5-fpm restart
  • apt-get install apache2 libapache2-mod-php5 libapache2-mod-ruby libapache2-mod-perl2 libapache2-mod-python
  • a2enmod rewrite
  • apache2ctl -t
  • service php5-fpm restart
  • /etc/init.d/apache2 restart
  • apt-get install mysql-server
  • apt-get install phpmyadmin
  • ln -s /usr/share/phpmyadmin /var/www/phpmyadmin
  • a2enmod userdir
  • /etc/init.d/apache2 restart
2. Install Postgresql 9.3.4: - Skip this step if you already have PGSQL SETUP and RUNNING.
  • tar zxvf postgresql-9.3.4.tar.gz
  • cd postgresql-9.3.4/
  • ./configure --without-readline --without-zlib
  • make && sudo make install
  • cd
  • nano /etc/ld.so.conf
## add the following line:
  • /usr/local/pgsql/lib
## save and exit
  • sudo mkdir /usr/local/pgsql/data
  • chown gnuworld /usr/local/pgsql/data
  • chgrp gnuworld /usr/local/pgsql/data
  • su - gnuworld
  • /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
  • /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data &
## This line is useful to put in crontab, so on server reboot you get postgres running
  • crontab -e
## At the end insert:
  • @reboot /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data
## save and exit

3. We get the webpage source code from Seven Official GitHub under user gnuworld:
  • mv website-gnuworld-No-Support-from-Seven website-gnuworld
## Edit file php_includes/config.inc to setup your website
  • su -
  • cd /var/www/html
  • chmod 711 ~gnuworld
  • chmod 711 ~gnuworld/website-gnuworld
  • chmod 755 ~gnuworld/website-gnuworld/php_includes
  • chmod 644 ~gnuworld/website-gnuworld/php_includes/config.inc
  • chmod 755 ~gnuworld/website-gnuworld/docs/gnuworld/
  • ln -s /home/gnuworld/website-gnuworld/docs/gnuworld live

3. Now you can try see the webpage in the following addresses:
## edit php.ini file !
  • nano /etc/php5/apache2/php.ini
  • search register_globals = Off and change to register_globals = On
  • service apache2 restart
## save and exit

## login with username : Admin - password : temPass

This HOWTO was last updated by TheDavid
30 Dec 2020
Post Reply