Page 1 of 2 12 LastLast
Results 1 to 10 of 17
Discuss How to change the Apache default location ? [EX-"127.0.0.1 how can I change..] at the General - Hackint0sh.org; I have installed arabic SMS (apachie and few other programs) and now address "http://127.0.0.1" is ...
  1. #1
    Senior Professional Array ag_oo7's Avatar

    Join Date
    Oct 2007
    Posts
    474
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default How to change the Apache default location ? [EX-"127.0.0.1 how can I change..]

    I have installed arabic SMS (apachie and few other programs) and now address "http://127.0.0.1" is pointing to "Library/WebServer/Documents" directory which is located in system partition (correct me if I am wrong). Now I want this address to point to a directory in user partition (the one which is 6G+ in size). How can I do this? I want to copy my large files to this directory since there is no space in system directory?



  2. #2
    Senior Professional Array

    Join Date
    Sep 2007
    Posts
    154
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    14

    Default

    The IP adddress should just be for your phone, not a particular folder on the phone. What are you using to copy?
    Various 'Books old and new
    8 Giggity, Giggity, Gigg-it-y.

  3. #3
    Advanced Array

    Join Date
    Dec 2007
    Location
    PARIS
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    i think that he's talking bout the root document folder used in apache...
    i didn't install apache, i'll try later today and i'll try to help

  4. #4
    Senior Professional Array ag_oo7's Avatar

    Join Date
    Oct 2007
    Posts
    474
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    @ bnefa

    yes that is it. I want to change root directory for apache into a directory in user partition. for coping I use iBrickr.

  5. #5
    Advanced Array

    Join Date
    Dec 2007
    Location
    PARIS
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    in fact, it's the same as an httpd.conf on a *nix comp :

    ssh on your iphone
    cd /etc/httpd
    vi httpd.conf

    then type /DocumentRoot hit enter

    go to that line :
    DocumentRoot "/Library/WebServer/Documents"


    type x to erase
    i to insert

    then :wq! (write and quit)
    and replace with what you want

    that's it


  6. #6
    Respected Professional Array hquest's Avatar

    Join Date
    Nov 2007
    Location
    Jersey City, NJ / Curitiba, BRA
    Posts
    615
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    50

    Default

    LOL

    This is not (only) to OP, but to vast majority of peeps around:

    Do you have ANY IDEA what are you doing with your iPhones? I mean, you have the phone, have the Installer and a bunch of apps. Do you know what are their purpose? Do you know what they are for? Do you know where did they come from? Or do you think you will press Install and apps will magically run for ya?

    For those who have NO IDEA, iPhone is an Unix. Just like MacOS X, like Linux, like *BSD, like Solaris, HP-UX, AIX and tons of other (brand)names.

    So if you still have NO IDEA about what are those names in previous sentence, please stop installing whatever app you see in Installer and use your phone as a phone. Go take pictures, listen to some music.

    Seriously, this is becaming boring.

  7. #7
    Advanced Array

    Join Date
    Dec 2007
    Location
    PARIS
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    in fact.... iphone is a darwin kernel... which is a part of the *bsd familly... for the short story

  8. #8
    Professional Array abtf2's Avatar

    Join Date
    Sep 2007
    Posts
    84
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    Befa gave you the right answer in post 5. Just make sure you have read permissions for all files and execute permissions for all directories in your new DocRoot path. These permissions must be for everyone, because the webserver does not run as root. This stumped me for a while because /var/media (I believe it was) did not have execute by default.

  9. #9
    Senior Professional Array ag_oo7's Avatar

    Join Date
    Oct 2007
    Posts
    474
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    After downloading httpd.conf using iBrickr and openning it using wordpad I found this paragraph:


    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "/Library/WebServer/Documents"


    This shows if I replace this line as befa said it will change to what I am lookinhg for. Also as in the above paragraph says I can use symbolic link and aliases to point to other location. Unfortunatly I am not familiar with unix at all. Could befa or someone else let me know what is the symbolic link and aliases command for doing this?

    I can change the adress in the above line but since I read arabic SMS from that directory I am not sure if I change this address will I be able to still read my arabic sms or not?
    Last edited by ag_oo7; 12-11-2007 at 07:06 PM.

  10. #10
    Former Bender
    Guest

    Default

    Quote Originally Posted by hquest View Post
    LOL

    This is not (only) to OP, but to vast majority of peeps around:

    Do you have ANY IDEA what are you doing with your iPhones? I mean, you have the phone, have the Installer and a bunch of apps. Do you know what are their purpose? Do you know what they are for? Do you know where did they come from? Or do you think you will press Install and apps will magically run for ya?

    For those who have NO IDEA, iPhone is an Unix. Just like MacOS X, like Linux, like *BSD, like Solaris, HP-UX, AIX and tons of other (brand)names.

    So if you still have NO IDEA about what are those names in previous sentence, please stop installing whatever app you see in Installer and use your phone as a phone. Go take pictures, listen to some music.

    Seriously, this is becaming boring.
    I absolutely agree with you.

    You are good at explaining this, but you don't want to know what i think about people waiting for everything served in a silver plater...


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Change default browser?
    By srafx in forum iPhone 3G
    Replies: 0
    Last Post: 05-27-2009, 11:49 PM
  2. [CoverArt] Change the default pic?
    By Anijake in forum Free Toolchain Software (Cydia App's)
    Replies: 9
    Last Post: 04-02-2008, 09:53 PM
  3. [international calls] Change the default "+" number
    By LeonCheong in forum Free Toolchain Software (Cydia App's)
    Replies: 4
    Last Post: 01-23-2008, 06:43 AM
  4. HELP! How to change sounds back to default!?
    By Greattimes07 in forum iPhone "2G" (Rev. 1)
    Replies: 0
    Last Post: 10-04-2007, 06:52 PM
  5. How to change default EDGE setting?
    By falcon in forum General
    Replies: 0
    Last Post: 09-10-2007, 09:19 AM

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
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 01:57 AM.
twitter, follow us!