Find the answer to your Linux question:
Results 1 to 3 of 3
hello, finally got my LAMP setup with slackware. getting apache to load php scripts instead of spitting out the source was a small challenge, but i got it done. What ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133

    making index.php autoload


    hello, finally got my LAMP setup with slackware. getting apache to load php scripts instead of spitting out the source was a small challenge, but i got it done.

    What I have noticed is that index.php wont autoload like index.html does, even if there isnt an index.html in the directory.

    how can i get index.php to load as soon as I type localhost? I'm assuming the option would be in my httpd.conf, but i looked through it with no luck. did i miss it?
    Living the digital dream....
    Disclaimer: I may be wrong since I was once before.
    Breathe out so I can breathe you in ~~Everlong

  2. #2
    Just Joined!
    Join Date
    Jul 2007
    Posts
    3
    Yes, you missed it.

    There's a directive on httpd.conf containing:

    DirectoryIndex index.html index.html.var index.php

    Just add index.php there.

    Alberto Ridolfi

  3. #3
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133
    Quote Originally Posted by albertomsr View Post
    Yes, you missed it.

    There's a directive on httpd.conf containing:

    DirectoryIndex index.html index.html.var index.php

    Just add index.php there.

    Alberto Ridolfi
    Perfect! Thanks
    Living the digital dream....
    Disclaimer: I may be wrong since I was once before.
    Breathe out so I can breathe you in ~~Everlong

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •