Results 1 to 3 of 3

Thread: Php Scripts??

  1. #1
    Join Date
    Nov 2007
    Location
    Cairo, Egypt
    Beans
    121
    Distro
    Ubuntu Development Release

    Exclamation Php Scripts??

    I have just downloaded a program needed in some of my clinical assays; bioGraph (Click to download)
    But the program contains php script files that i have no idea how to deal with.
    When i open them in Firefox i got "Openwith or Save as dialog"
    One of the program requirements is "Apache webserver with PHP support"
    i think that's wat i missed. Synaptic search results contain many related packages i have no clue which is needed.

    Any help will be appreciated?
    (OS Ubuntu 8.04 Desktop)

  2. #2
    Join Date
    Feb 2007
    Location
    Kernow, England
    Beans
    382
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Php Scripts??

    ill give you some command line parameters, since its easier to give you them than explain the point and click method.

    Code:
    sudo apt-get install apache2 php5
    then once that is installed

    Code:
    sudo chown -R Username /var/www/
    ln -s /var/www/ ~/webdir
    that will sort you out with what you should need and enable you to easily place files in the required folder, along with a link to said folder named "webdir" which will appear in your home folder.

    if i havnt been clear, let me know and ill better try to exlain

    -rob
    Dell Vostro 1500: Intel T7250, 4GB RAM (800MHz), nVidia 8600M GT, Intel 3945AGB Pro Wireless.
    Ubuntu 10.04 + Windows 7 dual boot (damn games!)

  3. #3
    Join Date
    Nov 2007
    Location
    Cairo, Egypt
    Beans
    121
    Distro
    Ubuntu Development Release

    Re: Php Scripts??

    Thanks marshall =) Just before i noticed ur reply. A buddy helped me online.
    i'm not sure if i understand every step but here's wat i did:-
    1. Installed Apache, PHP5, Imagemagick, and Gnuplot.
    2. Checked Apache with http://localhost/ and i got "It works!".
    3.
    Code:
    cd /var/www
    4.
    Code:
    sudo chmod 777 .
    5. Copied bioGraph extracted folder to /var/www
    6. In an internet browser, probably Firefox, paste "http://localhost/bioGraph_1.0/"
    7. Using
    Code:
    whereis gnuplot
    and
    Code:
    whereis convert
    to localize gnuplot and convert to c if there's a need to modify config.php
    and in my case the defaults works fine; /usr/bin/gnuplot and /usr/bin/convert correct places.
    8. 1st run i got error log containing something like
    Code:
    Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /var/www/bioGraph_1.0/mmgraph.php on line 32
    Warning: fopen(/home/vimal/public_html/biograph/upload/tmp/file4646.dat) [function.fopen]: failed to open stream: No such file or directory in /var/www/bioGraph_1.0/mmgraph.php on line 34
    9. In Terminal window
    Code:
    sudo gedit /var/www/bioGraph_1.0/config.php
    Edited the temporary directories, last 3 lines, to
    Code:
    $TMP_DIR ="/var/www/bioGraph_1.0/tmp";
    
    $CACHE_DIR ="/var/www/bioGraph_1.0/cache";
    
    $URL_PATH = "http://localhost/bioGraph_1.0/cache";
    10. WORKED PERFECTLY

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •