Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help installing and configuring apache please?

    Ok. Almost a total noob here.
    I want to learn php/mysql. So many tutorials out there with a wealth of information...cept for one itty bitty lil thing: getting a server set up so i can use php/mysql! Most help files etc i've found assume i know more than i do.

    I have several pc's on a home network behind a broadband router/firewall.
    I've read about different installation packages and settled for apache2triad on my xppro system [laptop duo core t2300, 2gb ram, 512 nvidia 7300, & 80gb hdd]

    My problem is that after installing apache2triad i still cant get the default page up on localhost.

    Is there anyone familiar with apache or similar package who may have some time to help me get this configured and working please?

  • #2
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    865
    Thanks
    7
    Thanked 29 Times in 28 Posts
    Is Apache up and running?

    if yes, it is likely that there is another application running on your computer that uses port 80. If you have Skype, by default, Skype uses port 80. If that is the case, log out and close Skype so it is not running. and than restart your Apache server.

    Further, you should check apache's log file to see why it was not running.

    Further, you should check and make sure that your Firewall is not blocking Apache from acting as a server. Some Firewalls such as ZoneAlarm, Comodo, among others...will not allow applications to act as servers unless you specifically allow them.

    Let's know how you get on.

    Cheers
    ~E

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I recommend getting in installer package. http://apachefriends.org/en/xampp.html

    It installs PHP, MySQL, Apache, among other useful tools like phpmyadmin to view your database structure.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ty Aerospace eng. i'll keep that in mind.

    Ess. I did have skype. i've just uninstalled it completely and restarted the system. I still have the same problem. When i try to access the apache2triadCP it attempts to open the page in //localhost/apache2triadcp/ and returns a HTTP 404 - file not found.

    I realised just now too that my ASUS laptop restore CD formats c: drive as Fat32 by default not NTFS. Would that make a difference?

  • #5
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    865
    Thanks
    7
    Thanked 29 Times in 28 Posts
    If it returns a 404 error...at the least we now know that port 80 is available for Apache.

    The error can be fixed quite easily, but it requires looking at few files in order to establish the root cause of the problem.

    therefore, you have two options.

    1) remove apache2triad and install something that works such as WAMP or Apache Friends
    2) read httpd.config to find the location and names of log files in order to establish the cause of the problem.

    As for FAT32 HARDDESK, that is fine...I have WAMP running on a FAT32 filesystem and it works fine.

    If you go for the second option, and you want to see if it is possible to fix this error, then please follow these steps.

    1) Locate your website root directory and do the following.
    a) if you see a ".htaccess" file, rename it to ".htaccess_backup.txt"
    b) open index.php and type the following at the top (if it does not exist, create it)
    <?php exit("It works"); ?>
    c) open browser and go to http://localhost and you should see something that says "It works". if not, go to the second option

    2) we need to read the log file and see what the cause of the problem is. By default, the log file can be located inside Apache's installation directory under logs directory...and is usually called "apache_error.log". We need to have a look at the file and see what might be causing the problem...so please print it the contents in your next thread if you want us to have a look.

    hope that helps.
    Cheers,
    ~E

  • #6
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    865
    Thanks
    7
    Thanked 29 Times in 28 Posts
    genesis....I just remembered that you said that you have a home network...

    If so, Are you using one machine as a server, and using another to access that server?

    if yes, then forget about my previous thread...as there are no problems with your configurations at all.

    What I am trying to say is that by default, Apache has a rule which prohibits access from other machines...but this behaviour can be changed quite easliy.

    Please open your httpd.config file and locate the following lines

    Code:
    <Directory "ROOT_DIRECTORY_HERE">
    #
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.2/mod/core.html#options
        # for more information.
        #
        Options Indexes FollowSymLinks
    
        #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        AllowOverride all
    
        #
        # Controls who can get stuff from this server.
        #
        Order Deny,Allow
        Deny from all
        Allow from 127.0.0.1
    </Directory>
    and change them to..well only the line before last really.

    Code:
    <Directory "ROOT_DIRECTORY_HERE">
    #
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.2/mod/core.html#options
        # for more information.
        #
        Options Indexes FollowSymLinks
    
        #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        AllowOverride all
    
        #
        # Controls who can get stuff from this server.
        #
        Order Deny,Allow
        Deny from all
        Allow from all
    </Directory>
    please let's know if that worked or not.

    Cheers,
    ~E


  •  

    Posting Permissions

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