monitoring
Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: How to install PHP on Apache?

  1. #1
    Join Date
    Jun 2009
    Posts
    10

    How to install PHP on Apache?

    Hi,
    You need to add the following lines to httpd.conf (If you're using Apache for Win*2)

    ScriptAlias /php/" c:/path-to-php-dir/"
    AddType application/x-httpd-php .php
    Action application/x-httpd-php "/php/php.exe"

    Then restart Apache and it should interpret php files correctly.

    For more information on installing Apache with php look at the following manual page:
    Thanks & regards
    Lokananth
    [url=http://www.mioot.com/]Live Chat Software[/url] By miOOt

  2. #2
    Join Date
    Sep 2009
    Posts
    2
    IR*7;ve had lots of people ask my in the past, how to install PHP, MySQL and Apache for Windows XP. I recently formated my computer, and since I was going to do it, I thought IR*7;d write out how to do this, for anyone who wants to know. My computer has SP2 installed.

    Apache Web Server

    Download Apache HTTP Server. I downloaded the current stable release, in this case: Apache 2.0.54. So download the Win*2 Binary (MSI Installer), double click it, let it install.
    ____________________________________
    Last edited by gordo; 09-03-2009 at 07:25 AM.

  3. #3
    Join Date
    Oct 2009
    Posts
    3
    Installation of Apache, PHP and MySQL is straightforward for Windows computers.

    Go to each of the Apache, PHP and MySQL sites to download the software. Select the appropriate ZIP file. Pick the versions that match your web server.

    You will have to modify your ini and configuration files as described in the install READMEs, but you do not have to worry about DSO modules, compiling, etc. as discussed for Linux below. I have omitted detailed discussion of changes to local files because different versions of PHP, MySQL and Apache have different requirements.
    Last edited by Moonbat; 10-09-2009 at 12:44 PM. Reason: MOD EDIT: Removed spam links

  4. #4
    Join Date
    Sep 2006
    Posts
    1,649
    Just use [url=http://www.wampserver.com/en/]WAMPserver[/url] or [url=http://sourceforge.net/projects/xampp/]XAMPP[/url] which has everything pre-installed and ready to work.
    "Workers of the world unite; you have nothing to lose but your chains." -Karl Marx

  5. #5
    Join Date
    Oct 2009
    Posts
    1
    Many web developers want to run Apache and PHP on their own computer since it allows them to easily test their scripts and programs before they put them "live" on the Internet. This article gives a step by step guide on how you can install and configure PHP5 to work together with the Apache HTTP Server on Windows. The procedure has been tested to work on both Windows XP and Vista.

    If you have not already installed Apache on your machine, check out one of the guides listed below. This "How To" guide assumes that you have already completed installing Apache.

    If you are using Apache *.*.x, see the guide How to Install the Apache Web Server *.x on Windows.

    If you plan to use one of the Apache 2 or 2.2 web servers on Windows XP, see the tutorial How to Install and Configure Apache 2 on Windows instead.

    If you are using Apache 2.2 on Windows Vista, please read How to Install Apache 2.2 on Windows Vista.
    _____________________________________
    [url=http://www.wickedcoolpromoting.com/Lead-Generation-Marketing.html]lead generation marketing[/url]
    [url=http://www.burgessfurniture.com/welcome.html]stacking tables and c****s[/url]

  6. #6
    Join Date
    Nov 2009
    Posts
    3
    Steps to Setting Up PHP 5

    *.
    Download PHP 5

    Before you begin, get a copy of PHP 5 from the PHP download page. In particular, download the zip package from the "Windows Binaries" section - that is, don't get the installer. For example, select the package labelled "PHP 5.2.5 zip package" if 5.2.5 is the current version.
    2.
    Install PHP 5

    Create a folder on your hard disk for PHP. I s***est "c:\php" although you can use other names if you wish. Personally though, I prefer to avoid names with spaces in it, like "c:\Program Files\php" to avoid potential problems with programs that cannot handle such things. I will assume that you used c:\php in this tutorial.

    Extract all the files from the zip package into that folder. To do that simply double-click the zip file to open it, and drag all the files and folders to c:\php.
    *.
    Upgraders: Remove the Old PHP.INI File from Your Windows Directory

    If you are upgrading to PHP 5 from an older version, go to your windows directory, typically c:\windows, and delete any php.ini file that you have previously placed there.
    4.
    Configuring PHP

    Go to the c:\php folder and make a copy of the file "php.ini-recommended". Name the new file "php.ini". That is, you should now have a file "c:\php\php.ini", identical in contents with "c:\php\php.ini-recommended".

    Note: if you are using Apache *, you should either move the php.ini file to your windows directory, "C:\Windows" on most systems, or configure your PATH environment variable to include "c:\php". If you don't know how to do the latter, just move the php.ini file to the "c:\windows" folder. You do not have to do this if you are using Apache 2, since we will include a directive later in the Apache 2 configuration file to specify the location of the php.ini file.
    ______________________________________
    [url=http://www.self-cert-mortgage-centre.co.uk/self-certification-mortgage-quote.html]Self Certification Mortgage Quote[/url]
    [url=http://www.nitromarketing.com/blog/]legitimate home based business[/url]

  7. #7
    trimy555 Guest
    Installation of Apache, PHP and MySQL is straightforward for Windows computers.

    Go to each of the Apache, PHP and MySQL sites to download the software. Select the appropriate ZIP file. Pick the versions that match your web server.

    You will have to modify your ini and configuration files as described in the install READMEs, but you do not have to worry about DSO modules, compiling, etc. as discussed for Linux below. I have omitted detailed discussion of changes to local files because different versions of PHP, MySQL and Apache have different requirements.

    Most web sites are hosted on a web server that hosts many sites. In most cases your site will be hosted with standard PHP, MySQL, Apache configurations. On your localhost (your own computer), you should not deviate too far from the configuration of your web hosting server. Otherwise, you will find yourself in the common programmer situation of saying ”well it works on my machine.” (More help about this subject is in my web hosting for developers article.)

    One of the great things about PHP and MySQL is many web hosting companies provide them at reasonable prices. So, install Apache, PHP and MySQL on your machine, write some code test it and upload it to a real web server for all the world to see.
    ____________________________________________________
    [url=http://www.ispcompared.com/high-speed.htm]dial up connection[/url]
    [url=http://www.dreamsight.co.uk]Site Design[/url]

  8. #8
    Join Date
    Nov 2009
    Posts
    3
    This time i want to share with you how to install Curl in PHP5 in Linux Environtment (IR*7;m using Ubuntu 8.*0) and using apache web server, but if you have any question to install php-curl in other environment, feel free to contact me of leave any comment, i will glad to help you.

    Okay, now letR*7;s start with check if php-curl is already installed in your server or not. To check it please follow this step:
    *. Create a file in your web server (in Ubuntu it would be in /var/www folder), name it info.php
    2. Open that file and type this command:
    <?php phpinfo(); ?>

    *. Save that file
    4. Open your favorite browser and open that file (ex: [url]http://localhost/info.php[/url])
    5. Now you will see the Information about your PHP installation
    6. Search for Curl, and if you cannot find it, it mean your php doesnR*7;t have curl installed.
    ==============================
    [url=http://www.y*.com/search-results/**44*/whack-my-boss]whack my boss[/url]
    [url=http://www.gameathlon.com/playstation-portable.html]buy psp[/url]

  9. #9
    Join Date
    Nov 2009
    Posts
    3
    when running the ./configure command, redirect the error output to a file so you can figure out what's wrong. To do this, append "2> error.file" to the configure command, specifying the file to save the error log in.
    =========================================
    [url=http://www.frippaccessories.co.uk/shop/earrings]costume earrings[/url]
    [url=http://www.thewatchprofessionals.com/replica-watch/breitling/*.html]Breitling replica watches[/url]

  10. #10
    Join Date
    Nov 2009
    Posts
    3
    Installing apache is easy if you download the Microsoft Installer ( .msi ) package. Just double click on the icon to run the installation wizard. Click next until you see the Server Information window. You can enter localhost for both the Network Domain and Server Name. As for the administrator's email address you can enter anything you want.

    I'm using Windows XP and installed Apache as Service so everytime I start Windows Apache is automatically started.

    Install Apache PHP MySQL - Enter Apache server information

    Click the Next button and choose Typical installation. Click Next one more time and choose where you want to install Apache ( I installed it in the default location C:\Program Files\Apache Group ). Click the Next button and then the Install button to complete the installation process.

    To see if you Apache installation was successful open up you browser and type [url]http://localhost[/url] in the address bar. You should see something like this :

    Install Apache PHP MySQL - Testing Apache Installation ( thumbnail created using PHP graphics library )



    By default Apache's document root is set to htdocs directory. The document root is where you must put all your PHP or HTML files so it will be process by Apache ( and can be seen through a web browser ). Of course you can change it to point to any directory you want. The configuration file for Apache is stored in C:\Program Files\Apache Group\Apache2\conf\httpd.conf ( assuming you installed Apache in C:\Program Files\Apache Group ) . It's just a plain text file so you can use Notepad to edit it.
    ____________________________________________________
    [url=http://betonline.com/sportsbook]sports betting lines[/url]
    [url=http://www.steroidsrx.com/Articles/Cytomel.cfm]cytomel[/url]

  11. #11
    Join Date
    Oct 2009
    Posts
    6

    How to install PHP on Apache

    Im having trouble with re-designing my .php page for automatic creation. Anyone have a nice guide on strings to use to make it look prettier?

  12. #12
    Join Date
    Dec 2009
    Posts
    6

    How to install PHP on Apache

    Ok, Im not sure if this belongs in Operating Systems or programming so if this is in the wrong forums move it please, I am trying ot install PHP 5.0.2 and APACHE 2 on Yoper Linux, I downloaded them, and everything else, edited the httpd.conf file, but when I try to put htis in: /usr/local/apache2/bin/apachectl start

    I get this error: httpd: Could not determine the servers fully qualified domain name, using *27.0.0.* for ServerName
    What can I do to get rid of that error?
    [url=http://bulletproof-web.com/]BulletProof Hosting[/url] for Black SEO

  13. #13
    murthis Guest
    Installing Apache

    Installing apache is easy if you download the Microsoft Installer ( .msi ) package. Just double click on the icon to run the installation wizard. Click next until you see the Server Information window. You can enter localhost for both the Network Domain and Server Name. As for the administrator's email address you can enter anything you want.

    I'm using Windows XP and installed Apache as Service so everytime I start Windows Apache is automatically started.

    Install Apache PHP MySQL - Enter Apache server information

    Click the Next button and choose Typical installation. Click Next one more time and choose where you want to install Apache ( I installed it in the default location C:\Program Files\Apache Group ). Click the Next button and then the Install button to complete the installation process.

    To see if you Apache installation was successful open up you browser and type [url]http://localhost[/url] in the address bar. You should see something like this :

    Install Apache PHP MySQL - Testing Apache Installation ( thumbnail created using PHP graphics library )



    By default Apache's document root is set to htdocs directory. The document root is where you must put all your PHP or HTML files so it will be process by Apache ( and can be seen through a web browser ). Of course you can change it to point to any directory you want. The configuration file for Apache is stored in C:\Program Files\Apache Group\Apache2\conf\httpd.conf ( assuming you installed Apache in C:\Program Files\Apache Group ) . It's just a plain text file so you can use Notepad to edit it.

    For example, if you want to put all your PHP or HTML files in C:\www just find this line in the httpd.conf :

    DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"

    and change it to :

    DocumentRoot "C:/www"

    After making changes to the configuration file you have to restart Apache ( Start > Programs > Apache HTTP Server 2.0.50 > Control Apache Server > Restart ) to see the effect.

    Another configuration you may want to change is the directory index. This is the file that Apache will show when you request a directory. As an example if you type [url]http://www.php-mysql-tutorial.com/[/url] without specifying any file the index.php file will be automatically shown.

    Suppose you want apache to use index.html, index.php or main.php as the directory index you can modify the DirectoryIndex value like this :

    DirectoryIndex index.html index.php main.php

    Now whenever you request a directory such as [url]http://localhost/[/url] Apache will try to find the index.html file or if it's not found Apache will use index.php. In case index.php is also not found then main.php will be used.
    ==============
    [url=http://legalsteroids.com/anodrol.html]anadrol 50[/url]
    [url=http://www.bestathoneymoons.co.uk/]beach wedding[/url]

  14. #14
    Join Date
    Dec 2009
    Posts
    3
    You need to add the following lines to httpd.conf (If you're using Apache for Win*2)

    ScriptAlias /php/" c:/path-to-php-dir/"
    AddType application/x-httpd-php .php
    Action application/x-httpd-php "/php/php.exe"

    Then restart Apache and it should interpret php files correctly.

    For more information on installing Apache with php look at the following manual page:
    [url]http://www.php.net/manual/en/install.apache.php[/url]

    ____________________________________________
    [url=http://www.turbochargerpros.com/dodge_turbocharger.html]Ford Turbocharger[/url]
    [url=http://www.tyrepitstop.com.au/alloy-wheels.asp]Alloy Wheels, Chrome Wheels & Performance Tyres[/url]

  15. #15
    Join Date
    Jan 2010
    Posts
    3
    I've tried multiple different solutions for running an apache, SQL, PHP server on an iMac, including ApacheFriends,MAMP and Tenon's iTools. Although they are probably a little easier to install they don't afford the flexibility that using ports provides, and the install went like a breeze anyway.I'll have to test drive it to make sure that it has all of the options that I currently need, but I believe so.If I do need to build PHP with other options is that relatively easy to do?Also,if I want a GUI front end to manage the server what would you recommend. I have used Webmin in the past without too many problems.
    [url=http://www.zoombits.co.uk/batteries/camera-batteries/canon-nb5h-compatible-battery-(b*207)/44**]canon camera battery[/url]

Closed Thread

Similar Threads

  1. Best *Remote Install* Spy Softwares?
    By dr. acula in forum Internet Privacy
    Replies: 6
    Last Post: 08-03-2012, 03:52 AM
  2. How do I install Curl?
    By gilbertsavier in forum Programming
    Replies: 9
    Last Post: 11-28-2009, 03:00 AM
  3. Program with install shield
    By MaxHeadRoom in forum Security & Encryption
    Replies: 3
    Last Post: 01-01-2008, 03:46 PM
  4. What firewall is better to install?
    By willmiller in forum Internet Privacy
    Replies: 4
    Last Post: 01-25-2007, 10:56 AM
  5. RE-Install Shareware Soft
    By wxyz in forum Internet Privacy
    Replies: 1
    Last Post: 03-08-2006, 02:48 PM

Posting Permissions

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