SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A problem setting up my EEE for web dev

    I did a wipe of my EEE PC the other day and started afresh, downloading PHP4, MySQL5 and Apache 2. This was all downloaded in one go.

    Apache is running, can start/stop etc
    MySQL is running - was able to interrogate DB in command line
    PHP is not quite right though ...

    When I try serving a page with .php extension, it's prompting a download rather than parsing it. OK, I thought, best check the httpd.conf file.

    Now, I'm used to tinkering with the httpd.conf file on my Mac, and there is a lot of info on that - LoadModule, Virtual Hosts etc, but when I opened the /etc/apache2/httpd.conf file on my EEE PC I found ... nothing. Empty file!

    So I'm a bit confused about what to do next. It looks like the version of Apache I have on the Mac is 1.3.41, so Apache 2 must have changed a fair amount.

    What would be a good place to start looking to resolve this problem? I suspect that, as is usually the case with all things Unix/command line, I am just being 'a bit of a numpty'. You decide ;-)
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    ian,

    The advice I give is to download the free chapters of Kevin Yank's book and go through the installation there. I suspect it's the modification of the php driver to match the version of Apache and PHP.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dklynn View Post
    ian,

    The advice I give is to download the free chapters of Kevin Yank's book and go through the installation there.
    I didn't get very far with that :-(

    After picking what I *think* is the correct Linux release of MySQL (how many!?) I downloaded and tried to carry out the following:

    "to begin move /usr/local/ '' which appears to be "change directory in console to /usr/local/"

    But the next line had me stumped:

    tar xfz mysql-version-tar.gz

    I replaced the word 'version' with the correct MySQL version, but have no idea what xfz relates to. There wasn't an explanation for what that meant/did, and the command failed. Should xfz be replaced with the download location of the .gz file? Or is that actually a linux command?

    I think I will try downloading via Synaptic and try again!
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback

  4. #4
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    ian,

    I'm NOT a 'nix user (I get abused, instead) but I know that the tar command needs command switches and the file to operate on. My GUESS is that xfz tells 'nix to unzip in the current location (assuming that you're IN the /usr/local/ directory). That said, the one feature that is invaluable in 'nix is the man (help) function as the documentation is always GREAT! Try 'man tar' from your command line and see what each of the three switches are.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  5. #5
    SitePoint Guru LinhGB's Avatar
    Join Date
    Apr 2004
    Location
    Melbourne, Australia
    Posts
    902
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    xzf = extracting gzipped file.

    EEE PC runs Xandros Linux which is a Debian-based distro. /etc/apache2 is where all the configs are. If you navigate to that directory (command line preferred) you'll see them. httpd.conf is just a place-holder - hence it's empty. The real main config is apache2.conf. Modules are under mods-available and mods-enabled (the latter contains symlinks to enabled modules). Virtual host configs are under sites-available and sites-enabled.
    "I disapprove of what I say,
    but I will defend to the death my right to say it."

  6. #6
    Posts rarely lloydi's Avatar
    Join Date
    Jan 2002
    Location
    Swindon UK
    Posts
    620
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help folks :-)

    In the end I opted for a complete package install (XAMPP), mainly because I have very limited space left on the SSD drive - the measly 2gb EEE! - and that seemed to be the most economical way to do it :-)
    Build Your Own Web Site the Right Way!
    A beginners' HTML/CSS book with web standards at its heart
    The Ultimate HTML Reference
    A complete reference, in glorious hardback


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
  •