Linuxathome.net - Linux news and help for home broadband internet users
 Home | Files | Case Mods | Reviews | Forum | Search | Links | RDF | Contact | Uptime | Server Info | Tracker
Sections

Installation Guide
Setting Up
Internet Sharing
Port Forwarding
Services Config
Installing Programs
Game Servers
Using IPTables
Useful Commands
Kernel Upgrading
System Recovery
Red Hat 7.2 Setup
OpenBSD Setup
BPA Login Setup
PPPoE Setup
Add New Hardware
Using PPTP VPN
VMware ESX Cmds
Our RC5 Team
Folding@Home
Help Support Us

 
Articles
Linux Security
NetStats FAQ
Linux KIS Trojan
CAT5/LAN Cables
Domain Names
Presario RH Install APC Debian DVD
 
Slashdot.org
  • Walt Mossberg's Last Column Calls For Privacy and Security Laws
  • Leaked 'Standing Rock' Documents Reveal Invasive Counterterrorism Measures
  • Seven Science Journals Have A Dog On Their Editorial Board
  • Malicious Apps Brought Ad-Clicking 'Judy' Malware To Millions Of Android Phones
  • New Privacy Vulnerability In IOT Devices: Traffic Rate Metadata
  • Silicon Valley Continues To Explore Universal Basic Incomes
  • Researchers Found Perfect Contraceptives In Traditional Chinese Medicine
  • Is Amazon's AWS Hiring 'Demolishing The Cult Of Youth'?
  • New Details On Sergey Brin's Plan For The World's Largest Aircraft
  • Even For Businesses, Chrome Is The Top Browser
  • Working Theory In Jet Crash: IPhone In Cockpit Is To Blame
  • Google Go-Playing A.I. Retires To Focus On Energy Conservation And Medicine
  • Creative Commons Staff Members Release New Free eBook
  • Security Analyst Concludes Windows 10 Enterprise 'Tracks Too Much'
  • Ask Slashdot: Is There A Screen-Less, Keyboard-Less, Battery-Powered Computer?
  •  
    Affiliates

    TweakTown.com
    ZGeek.com
    pebkac-consulting.com.au

     
    Webmail
      E-mail Address:

    Password:


     

      Third Party Programs

     

    For all of you out there that wish to enhance your server and play around with some pretty nifty program created by Linux Guru's and Enthusiasts, then this is the page for you. Here you will find instructions on how to setup many different "third party programs" that we have used and recommend.

    Some of these programs can be found in the 'Files' section of this site, others can be found by doing a simple search with your favourite search engine. (e.g. Google)

     

      Program List

     
     

      Program Instructions

     
    PHP 4.0

    For those of you who know anything about web-design, then chances are you will probably know or heard about the php hypertext pre-processor. Basically its the fastest server side language there is today, and the best thing is its totally free.

    This little how-to will explain to you how would go about installing the php 4.0 sp1 onto your apache 1.3.x server. This is useful if you want to run php to mysql database Websites or if you just want to play around with php in your spare time.

    "A popular choice is to build the Apache module version. In order to build PHP as a dynamic module for Apache-1.3.x you have to first have Apache installed. Assuming Apache is already installed, make sure the shared object module is enabled. To check this, type: httpd -l You should see something like: Compiled-in modules: http_core.c mod_so.c You will most likely have a lot more modules than what is shown here. As long as mod_so.c shows up in the list, PHP should be happy."

    The first things as always is to download the latest release from php.net, in this case the file used was php-4.0.4pl1.tar.gz. Once you have downloaded it to the appropriate directory you will need to uncompress it and this is done by the following command tar -xzvf php-4.0.4pl1.tar.gz, (which by now should be very familiar to you).

    Now that the files have been extracted you need to get into the new directory by typing cd php-4.0.4pl1 at the command prompt. The next thing to do is configure the script with the options that you require. In this case we compiled it for apache with the support of mySQL, if your serious about using php's advantages then you will probably want mySQL (if so see the next section below). Also note that this is considered a "dynamic" installation, if you wish to have a "static" installation then please read the supplied INSTALL file very carefully.

    To configure the script for mySQL you need to type ./configure --with-mysql --with-apxs. If you get an error telling you that the apxs script could not be found, look for it on your system and if you find it (you should use the locate command, e.g. locate apxs), provide the full path to it as: --with-apxs=/path/to/apxs. Once you have done this then all that is required is to do a make, and then make install (be sure to be logged in as 'root' for make install command to work).

    Now you need to activate the Apache module for php so that your web server knows what to do when given a php file (this requires you to have the source files for apache lying around still, if you don't then just re-download the same version as you have installed and then uncompressing it)). To automatically build Apache with PHP support, use:

    cd apache_1.3.x
    ./configure --prefix=/dir/to/apache --activate-module=src/modules/php4/libphp4.a
    make
    make install

    The next and final step is to check and make sure that its all working correctly, The make install command in the previous step should have done most of your work for you. It actually edits your httpd.conf file and tries to enable the dynamic PHP module. To verify this, look for a line that looks like this: LoadModule php4_module libexec/libphp4.so The actual path before the libphp4.so part might differ slightly. This is likely fine. And finally you need to tell Apache which file extension should trigger PHP. You do this by creating a special mime type and associating it with an extension. We suggest using: AddType application/x-httpd-php .php (this is probably already in the httpd.conf file witha # infront of it, just remove the # to enable it).

    Finally you need to copy php.ini-dist to the appropriate place (normally /usr/local/lib/php.ini) and edit if necessary. Once you have made these changes you should be ready to restart your server and try it out. Type: apachectl restart.

    If all has gone well then your ready to test your newly installed php. To test it you need to create a test file named test.php in your web tree somewhere and put some test PHP tags in it. <?phpinfo () ?> is a good first test. This tag tells PHP to do a braindump and tells you all sorts of things about itself. The html file should look someting like this:

    <html><head><title>PHP 4.0</title></head>
    <body bgcolor="#FFFFFF"><center>
    <?phpinfo () ?>
    </center></body>
    </html>

    If your install worked then the above should give a large colourful page full of statistics and informartion about php4 and the settings it has on your machine etc., if you don't see anything at all (i.e. just a white page) then you should follow the steps again carefully and read the INSTALL file provided. The install isn't the easiest, but once you have done it you will be able to do it again without a problem.

     

    mySQL Database

    Well a web server just isn't a web server these days without a database running on the back-end, if you want to do any fancy things with your site or make it fast and very dynamic then we recommend that you use php (above) and mSQL as part of your web solution. The following is a quick install on mySQL, if you want further information then you should visit the mySQL homepage here. (You should install this before php)

    The version used for this was mysql-3.23.33.tar.gz which was downloaded from the above mentioned website. To uncompress it just type:

    tar =xzvf mysql-3.23.33.tar.gz
    cd mysql-3.23.33

    It is recommended that read the README file before commencing any further as you may want to make specific changes to suite your needs. To install mySQL is rather simple, all you need to do is follow these commands:

    PLEASE NOTE: mySQL takes quite a while to configure and make, on my 600MHz machine it took just over an hour to install it alongside with php.

    ./configure
    make
    make install

    In order to get mySQL up and running there are still a few more things you need to do, the first is create a new user called 'mysql', this is done by typing adduser mysql, then you will want to give the new user a password, to do this type passwd mysql and then enter the desired password. Now you will need to create the mySQL databases that are needed for it to run, this is easy as they have provided us with a installation script, just run ./mysql_install_db in the mySQL directory. Now last but not least you will need to run mySQLd, make sure you are logged in as root and then type ./usr/local/bin/safe_mysqld & in your mySQL directory, now the server should be running and you should be able to starting using it straight away.

    A good idea would be to give the root user a password for mySQL (as the installation above suggestions, you can do this by running ./mysqladmin -p password and following the prompts from the program itself. To be able to run a session with the database (i.e. were you can just type in your SQL and do everything manually) you will need to run ./mysql.

     

    Webmin Administration

    This is a nifty little program that I was refered to, it allows you to modify just about anything on your system through a web-based interface. It also allows a telnet login via a java applet (very cool). I must warn you though, you may want to restrict access to specific IP addresses, or create another account that is more restricted as this can cause a security leak (I personally did this and also changed the port it runs on just to be sure).

    If you want to install this program on your system then you must firstly download it from the webmin homepage. The version used for this example was contained in the file webmin-0.84.rpm, this was used because an RPM is so damn easy to install and you should use them where ever possible.

    To install this program simply type in rpm -Uvh webmin-0.84.rpm, this will install the package or update it if you are already running an older version. Now all you need to do is log in with your root account to the web interface http://<your_ip>:10000/, and then you can customize any options you want.

     

    StarOffice 5.1

    For people who want to use Linux instead of Windows and other such operating systems then you will definitely need a Office package, and this is one of the most flexible/best. The first thing as usual is to get the files needed to install StarOffice, you can download 5.2 here (this requires a free sign-up), this install covers 5.1 which was given out on CD.

    Some but not all of the features of StarOffice are:

  • e-mail's
  • drawings
  • html pages
  • presentations
  • spreadsheets
  • text documents
  • tasks
  • events
  • and much more...

    The first thing you will need to do is put the CD in your drive and then start KDE (or whatever desktop environment you have installed) by typing ./startx. Once your desktop has been loaded you will need to start a terminal session (just quicker an easier), once you have done this you will need to mount the CD-ROM drive (KDE should do it automatically) by typing in the command mount -t iso9660 /mnt/cdrom /dev/cdrom.

    Now that the CD is all ready you can start the install, firstly you must go to the Linux install directory by typing cd /mnt/cdrom/linux/office51/, and once there you can start the installation GUI by typing ./startx. This will take a few seconds to start as its a GUI and as such must load a few things before it can proceed, when the program is ready you will be presented with the usual installation options of a Windows GUI setup program, when prompted to enter your details its not mandatory but advised.

    You will want to select a custom installation if you want to make any changes, this is what I did, you will be prompted to what directory you wish to install, the default is /home/<usr>/Office51 but this can be changed by entering the directory you wish to use, next you will be give the list of components you wish to install, select them carefully as you don't want to install useless thing's you wont use.

    Once you have selected what you want to install click on the 'Complete' button, if your install options have any errors (e.g. you wanted to install the Java compatible support, but you don't have Java installed on your system) then it will prompt you to skip them or cancel. When the install has finished you will need to restart KDE to complete the changes.

    To start KDE again then simple type ./startx again, once your desktop has loaded click on the KDE menu logo on the bottom left of your screen, in the 'Personal' menu you will see 3 new icons, click on the 'StarOffice'. Since this is your first time loading StarOffice it will prompt your for Internet connection for StarOffice, this doesn't have to be setup but if you wish to then click 'Next', you will be prompted to see if your connection is behind a proxy, if so then enter the appropriate details, then you will need to enter mail and news options if you want to use StarOffice to read these. Once your done click 'Create' and then 'Thanks'.

    Now StarOffice should be started and you can use it like any other Office package, its quite simple to use, nice and powerful and best of all FREE.

  • Proudly Hosted By:
    Hosted by PEBKAC Consulting

    Please read our Legal Notice for information concerning our site and its content.
    All logos and trademarks in this site are property of their respective owner. All the rest © 2000 - 2016 by Linuxathome.net

    Reviews

    D-Link DI-704P
    VIA EPIA-M 9000
    Tux Applique
    Ricoh MP5125A
    AMD XP 2600+
    3DProphet 9000Pro
    Radeon 9700 Pro
    XTNDAccess IrDA
    Netgear FS-524s
    DSR2161 KVM
    Game TheaterXP & XPS-510 Speakers
    3D Prophet 4000XT
    AutoView 400
    Back-UPS CS 350
    Dual Neon Kit
    SwitchView KVM
    20x4 LCD Kit
    Window Kit

     
    Kuro5hin.org
    XML error: Mismatched tag at line 26.
     
    Google (Linux)
    Enter Keywords:

     
    Bash Jokes

    % ar m God

    ar: God does not exist

     
    Virtualization, Virtual Machine & Virtual Server Consolidation - VMware

    The Community ENTerprise Operating System

    Get Slackware Linux

    Use OpenOffice.org

    Use Asterisk