Where do you put the code?????????????

Discussion in 'iOS Jailbreak & Cydia' started by PJGR, Mar 4, 2008.

  1. PJGR

    PJGR New Member

    Joined:
    Dec 27, 2007
    Messages:
    81
    Likes Received:
    2
    Help Please~~~

    I'm trying to install PHP, but this part is confusing.

    Where do you add this code:

    ScriptAlias /php /opt/iphone/bin
    AddType application/x-httpd-php .php
    Action application/x-httpd-php "/php/php-cgi"


    into this:


    <IfModule mod_alias.c>

    #
    # Note that if you include a trailing / on fakename then the server will
    # require it to be present in the URL. So "/icons" isn't aliased in this
    # example, only "/icons/". If the fakename is slash-terminated, then the
    # realname must also be slash terminated, and if the fakename omits the
    # trailing slash, the realname must also omit it.
    #
    Alias /icons/ "/usr/share/httpd/icons/"

    <Directory "/usr/share/httpd/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    ScriptAlias /php /opt/iphone/bin
    AddType application/x-httpd-php .php
    Action application/x-httpd-php "/php/php-cgi"
    # This Alias will project the on-line documentation tree under /manual/
    # even if you change the DocumentRoot. Comment it if you don't want to
    # provide access to the on-line documentation.
    #
    Alias /manual/ "/Library/WebServer/Documents/manual/"

    <Directory "/Library/WebServer/Documents/manual">
    Options Indexes FollowSymlinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>


    The directions in the link say:

    "Somewhere within this if add the following (I added it to the end right before the endif)"

    But wtf does that mean, lol? Not all of us are programmers.

    Here's The link to the thread on how to do this (no one answered so I made a new thread about a question that a lot of people have asked).

    Step #2 is the part that I (and many other people) don't understand.

    So could someone please explain where to put the code?
  2. krysus

    krysus New Member

    Joined:
    Dec 26, 2007
    Messages:
    101
    Likes Received:
    0

Share This Page