SitePoint Sponsor

User Tag List

View Poll Results: How Painful is it for a linux newbie to install apache, MySQL and PHP?

Voters
5. You may not vote on this poll
  • Piece of cake

    2 40.00%
  • It's ok, some work to be done...

    2 40.00%
  • It's hard, Please help

    0 0%
  • I wouldn't know, I'm in the wrong site

    1 20.00%
Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Starting php with MySQL/ apache on Linux

    Hi,
    I tried to follow the simple steps to setup apache 2.0.39/ MySQL 3.23.51, and php 4.2.2. MySQL works fine and so does apache. however, for some reason, source code shows for php document ( nothing gets parsed, hypertext and php code is displayed).

    I also can't set up virtual host or user host as in http://localhost/~user/index.php I get permission denied error 403 ( that applies to both html and php files. ( I have set up public_html under /home/user.

    i can't also map system file folders to a URI ( i.e /var/www/html/php to http://localhost/php

    Please help
    Thanks
    MG

  2. #2
    SitePoint Evangelist
    Join Date
    Oct 2001
    Posts
    439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    make sure that you have .php in the AddType in httpd.conf
    also make sure that the appropriate LoadModule is not commented....

    what are the permissions on your home/user folder?

  3. #3
    web daemon jorasmi's Avatar
    Join Date
    Nov 2001
    Location
    Philippines
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what linux distribution are you using? I'm using redhat 7.3 and installing it is a peace of cake. however i got headache when i tried to install it in other distribution like slackware.

  4. #4
    SitePoint Member
    Join Date
    Jul 2002
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The proper added types are there. httpd.conf is exactly as said in the book.

    I installed MySQL3.23.51 rpm binaries for Redhat 7.3 and I also found out that thr rpm extracted and installed MySQL all ofver the place. so I will try to install from source.

    As for the permission for the user folder is just the default of whatever regular user you add to the system, do I need to change permission of /public_html to public?

    I will let you know how it goes, thanks
    MG


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
  •