SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member oregonbum's Avatar
    Join Date
    Apr 2003
    Location
    Grants Pass, Oregon
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP error on new website

    I'm in the process of moving a client over to a new server. It's running free-BSD 4.7, and I've installed PHP 4.3.0 & MySQL 3.23.54.

    PHPMyAdmin comes up fine, and I've gotten all my database tables up & running. PHP info shows fine too.

    BUT

    When I go to a php page on the site, I get:

    Warning: Unknown(/usr/local/apache/htdocs/admin/index.php); failed to create stream: Permission denied in Unknown on line 0

    Warning: Unknown(): Failed opening '/usr/local/apache/htdocs/admin/index.php' for inclusion (include_path=".:/php/included') in Unknown on line 0

    I've got my includes in the directory specified.

    Help! I don't know what's up. To my knowledge, I've got everything set up the same as what's on the old server (working fine). The only difference I know of is the new site is running PHP 4.3.0, and the old has version 4.2.2. MySQL is the same on both.

  2. #2
    if($awake){code();} PHP John's Avatar
    Join Date
    Jul 2002
    Location
    Along the Wasatch Fault line.
    Posts
    1,771
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It appears to be a permissions problem. Does Apache have permission to access the includes directory? (just off the cuff)
    John

  3. #3
    SitePoint Member oregonbum's Avatar
    Join Date
    Apr 2003
    Location
    Grants Pass, Oregon
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure, where would I find that?

  4. #4
    if($awake){code();} PHP John's Avatar
    Join Date
    Jul 2002
    Location
    Along the Wasatch Fault line.
    Posts
    1,771
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Honestly, I'm not sure. I'm just getting to know Linux, myself.
    John

  5. #5
    SitePoint Guru
    Join Date
    Feb 2002
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Right, i'm really no expert neither if it comes to Linux, but here's what might help

    1.Fire up a console
    2. cd to your include dir
    3. do a l -al and have a look at the file permission set.

    I know this is not much of information, but if you do a search for file permissions, you'll find lots of info, and can move on from there.

    You just need to make sure Apache has the correct permissions, which can be set using chown and/or chmod.

    Hope this helps to get you started

  6. #6
    SitePoint Member oregonbum's Avatar
    Join Date
    Apr 2003
    Location
    Grants Pass, Oregon
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got it! Thanks much!


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
  •