in reply to GD::Graph problem help much appreciated

/tmp/foo

worked just great.

I guess there are some followup questions.

1. what user does the browser use? is it the one I log into at terminal with?

2. what would be a good folder to put the images in?

it appears no where in the /var/www area may I do this in ....

  • Comment on Re: GD::Graph problem help much appreciated

Replies are listed 'Best First'.
Re^2: GD::Graph problem help much appreciated
by hipowls (Curate) on Jan 25, 2008 at 23:56 UTC

    1.I think you mean "What user does the server use?". Assuming that it is apache then ps -ef | grep http will show you the owner of the process.

    2. You will need to ask your system administrator but a directory somewhere under your home directory is probably a safe bet. You will need to ensure that the web server can write there by changing the group and giving group write permission.

      Well This is my set-up on my local machine, I guess I need to know how to change the group permissions then. Write now I can only get files in my www directory a subdirectories to work in the browser.

      What you are saying is there is a way to tell apache it can look in a directory back and pull from a folder there? if so what would be the step.

        Create an images directory under www, change the group to webgroup (or whatever it is) and grant group write.

        mkdir /path/to/www/images chgrp webgroup /path/to/www/images chmod g+w /path/to/www/images
        If you want to put the images directory somewhere else then you need to put an alias directive in http.conf.
        Alias /images/ /home/you/images/
        Then apache will look in /home/you/images for URLs like http://www.linuxnoobphilip.org/images/philip.jpg.

        It sounds like you need to do a bit of reading to get going. Linux distributions typically have documentation installed and that is a good place to start. All you need to know about apache is at Appache home page but I grant it is a bit daunting.