Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: Apache server hell - help!

  1. #11
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    [Mon Nov 16 15:34:05 2009] [error] [client 192.168.1.11] (13)Permission denied: file permissions deny server access: /mysite/test.html
    This is what leads me to believe it's a simple file permissions issue. Can you run a ls -l on /mysite and paste the output?

    My guess is that a simple chmod -R a+r /mysite should do the trick.

    EDIT:
    Ooops, i guess i was a few seconds too late :P
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  2. #12
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    Ah! I've also found out that vsftpd, my ftp service, automagically mangles the file permissions on upload. You have to change umask settings in the vstpd.conf file to fix this.

    Kind of sucks!
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  3. #13
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    Ah! I've also found out that vsftpd, my ftp service, automagically mangles the file permissions on upload. You have to change umask settings in the vstpd.conf file to fix this.
    Stop using ftp! SCP [or sftp - uses the same transport] is much more secure, easier to use, more reliable, easier to get through firewalls, more secure, easier to control permissions with, more secure...

    On windows, winscp is your friend.

    Perhaps it's outside the particular scope of this exercise, but the cool kids put their websites into version control and then on the web server to pull updates [rather than trying to push them using ftp]

    Gary (-;
    OBDGPSLogger, for logging OBDII and/or GPS data
    OBDSim, an OBDII/ELM327 software simulator
    mp3car forums: obdgpslogger, obdsim

  4. #14
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    The particular problem I'm trying to solve is for a piece of software that sends weather data gathered from a weather station via ftp to a location that is used when the server builds the page. The weather data software is programmed to use ftp.

    If I install winscp and the software tries to use ftp, is it using winscp or does it still use ftp?
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  5. #15
    SuperMod - OBDII GPS Logger forum
    Auto Apps:loading...

    Join Date
    Mar 2009
    Location
    Los Angeles
    Posts
    924
    ewww. No, that's definitely ftp.

    Does the weather software run on a different machine? Perhaps you could set up a little localhost-only ftp server, and scp the data up? If you want it automated, you can set up public keys and use command-line scp instead of winscp. That way you never expose the ftp server outside of localhost.

    Overall... what's the actual weather software, and whree are you running it?

    Gary (-;
    OBDGPSLogger, for logging OBDII and/or GPS data
    OBDSim, an OBDII/ELM327 software simulator
    mp3car forums: obdgpslogger, obdsim

  6. #16
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    It's Davis weatherlink and yes, you can load the data onto a local folder.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  7. #17
    FLAC
    Join Date
    May 2006
    Location
    Calgary, Alberta
    Posts
    1,718
    Quote Originally Posted by Bugbyte View Post
    Thanks for your help pulsarsimon and Maheriano!
    No problem, helping someone else with Linux issues gives me a tingling sensation of satisfaction!
    Ampie Case
    2.5" Hard Drive 80GB Samsung 5400RPM
    256 MB DDR2 PC5400
    Xenarc 700TSV - VGA Monitor
    Intel D945GCLF Motherboard
    M2-ATX-HV

    2005 Honda Civic

  8. #18
    Low Bitrate pulsarsimon's Avatar
    Join Date
    Nov 2009
    Location
    Melbourne Australia
    Posts
    63
    could always use RCP - works well for me

    on the apache/vsftp - if you copy the files, it probably changes the ownership.
    if you have a script to load the files, why not include an automatic chmod and chown to fix them all...

    tftp or rcp leaves everything as-is.

    is the Davis Win or Linux based? if Win, then that's the problem - the ownership and permissions are botched to work with Win/Samba/etc. - probably how the UI was designed for Win users.
    MacMini in an Alfa? - Why not!

  9. #19
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    You know, this has just turned into a living hell for me. I think I've finally got the issue figure out but I can't fix it.

    1. I log into the linux machine as root. I know that is 'bad' but that's what I've been doing.
    2. I installed apache2 as user root.
    3. If I put files in /mysite then it serves them up okay
    4. If I put them in /home/bugbyte/var/www and point the server at this location, I get 'forbidden' 403 error.

    I'm pretty sure that the problem is that since apache isn't installed an run from the /home/bugbyte login that it doesn't own the files there and even though I've tried to change the permissions on them it doesn't always work.

    SOOOOOOOO...I decided I'd do things right and unistall apache from root, then log into /home/bugbyte and install it from there.

    I can't stay logged in to /bugbyte! Here's the transcript of what happens:

    ~ local_machine$ ssh [email protected]
    [email protected]'s password:
    Linux iPlug 2.6.30.6 #1 PREEMPT Wed Sep 9 19:43:23 MDT 2009 armv5tel

    The programs included with the Ubuntu system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
    applicable law.

    To access official Ubuntu documentation, please visit:
    http://help.ubuntu.com/
    Last login: Thu Nov 19 20:33:04 2009 from 192.168.1.13
    Connection to 192.168.1.4 closed.
    ~ local_machine$
    I've now dicked around with the server files so much I feel like I have an actual handle on what's going on but I get logged out immediately from user /bugbyte and can't fix it!

    Any suggestions? I hate climbing the learning curve.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  10. #20
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    After *more* reading, is this a permissions problem on the /bugbyte folder?
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. GPSTracker on home server
    By lambosprit in forum GPS
    Replies: 319
    Last Post: 07-12-2012, 06:35 PM
  2. Lilliput screen on Ubuntu
    By yam125 in forum Linux
    Replies: 13
    Last Post: 06-13-2011, 11:19 AM
  3. XBOX + Apache v2.6 + M1-ATX = problems?
    By arionl in forum Power Supplies
    Replies: 10
    Last Post: 07-18-2006, 12:46 PM
  4. Windows Server
    By Quattro in forum Off Topic
    Replies: 11
    Last Post: 04-18-2006, 12:22 AM
  5. File/web/print Server
    By Quattro in forum Off Topic
    Replies: 7
    Last Post: 04-15-2005, 10:26 PM

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
  •