SitePoint Sponsor

User Tag List

Results 1 to 23 of 23
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Location
    Florence
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    configuration file Apache and php

    good morning
    I have installed Apache server and php
    I must change the file httpd.conf to the end of the script ....

  2. #2
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Location
    Florence
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but the file php5apache2.dll does not exist !

  3. #3
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,134
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    What versions of PHP and Apache did you use?

  4. #4
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    kbd,

    HOW did you install? If you used a canned app (XAMPP or WAMP), look in their conf directory for the httpd.conf and your php5apache2.dll should be in their PHP directory ... but it should be pre-configured for you.

    Sorry, too little information for a direct answer.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  5. #5
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Location
    Florence
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dklynn View Post
    kbd,

    HOW did you install? If you used a canned app (XAMPP or WAMP), look in their conf directory for the httpd.conf and your php5apache2.dll should be in their PHP directory ... but it should be pre-configured for you.

    Sorry, too little information for a direct answer.

    Regards,

    DK
    thanks, but I already installed php 5, Apache2.0 and mysql in c: \, but I can not find the file php5php2.dll, now I try to reinstall apache ....

    in between how can I interact with php mysql,

    mysql folder is C: \ mysqlfunzionante
    and php is in C:\PHP

  6. #6
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,134
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by keyboardistdenny View Post
    thanks, but I already installed php 5, Apache2.0 and mysql in c: \, but I can not find the file php5php2.dll, now I try to reinstall apache ....
    That file won't exist. You mean php5apache2.dll, again, what versions are you installing and can you post your httpd.conf file so we can see your alterations?

  7. #7
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Location
    Florence
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have windows 7.
    which "version" apache "should I download for php5?

  8. #8
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,134
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by keyboardistdenny View Post
    I have windows 7.
    which "version" apache "should I download for php5?
    The latest stable release. http://httpd.apache.org/download.cgi

    Chances are, your configuration of the httpd.conf is incorrect. If you could provide that, that'd be helpful

  9. #9
    SitePoint Wizard bronze trophy Jeff Mott's Avatar
    Join Date
    Jul 2009
    Posts
    1,270
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    The vast majority of the time, I would also send someone to the most official build there is (such as those at httpd.apache.org), but I think this is an exception. I'm told that PHP is compiled with VC11 and Apache (from httpd.apache.org) is compiled with VC6, and that those can cause compatibility problems.



    Also, in the PHP download, there are actually several Apache .dlls to choose from. There's a php5apache2_2.dll and a php5apache2_4.dll. You should choose the one appropriate for your version of Apache, which, if you downloaded the latest, will be 2_4.

    If that doesn't help solve your problem, keyboardistdenny, then -- as several others have requested -- you need to tell us exactly what versions of Apache and PHP you downloaded, and where you got them from. Then show us the Apache configuration you've tried.
    "First make it work. Then make it better."

  10. #10
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,134
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jeff Mott View Post
    The vast majority of the time, I would also send someone to the most official build there is (such as those at httpd.apache.org), but I think this is an exception. I'm told that PHP is compiled with VC11 and Apache (from httpd.apache.org) is compiled with VC6, and that those can cause compatibility problems.
    That's a very good point Good catch

  11. #11
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Location
    Florence
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks
    now 11/03/2014 i have installed
    -mysql 5.6
    -php 5.3

    and Apache 2, Now ,this Server is Ok , but I can't to edit the file httpd.conf, when I save this file with new instructions from "notepad", don't save it!!!!

  12. #12
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Location
    Florence
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    now
    - I have installed apache server 2.0 and php 5 for Windows 7
    -I have installed Php ON C:\
    (php.ini (I have changed the file php.development.ini)* on C:\WINDOWS and
    php5.dll on C:\WINDOWS\SYSTEM32),
    also I have installed the file php5apache2.dll on C:\php

    * i save this file php.ini whit "Notepad", but now I can't to change extension of this file from ".txt" on ".ini" !!!!!!

    ABOUT httpd.conf I have write , to the end of script this stringa :
    LoadModule php5 module C:\Php\php5apache2.dll

    After the installation IT'S OK ONLY HTML FILES but php files are not ready on the web serever
    why?

  13. #13
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    kbdd,

    WinDoze has a major problem in that it won't allow you to save files (easily - you MUST be in administrator mode) to its protected directories. START your text editor in admin mode and you should be able to save the file. Note: Notepad is notorious in not allowing you to save like you tried - use Notepad++ or EditPad.

    I'm rather surprised that you've gotten the html version to work but that's a good sign. Edit your httpd.conf file to add the PHP module handler.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  14. #14
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Location
    Florence
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    now I have

    PHP
    - "php5.dll" on \WINDOWS\system32 and on C:\PHP\
    - "php.ini" on \WINDOWS* (If I remeber correctly, this file was "php.ini-development" but i dont sure!)

    APACHE


    I have added from the site www.apachelounge.com PHP5APACHE2.dll ON C:\PHP, but I do not know if it works!

    what to write on the httpd.conf file?
    the php.ini file can be in text format?

  15. #15
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    kbdd,

    The PHP installer should write something like this at the end of your httpd.conf file (note: you have to use the correct version of the set the correct drive:/path information):
    #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
    PHPIniDir "W:/PHP/"
    LoadModule php5_module "W:/PHP/php5apache2_2.dll"
    AddType application/x-httpd-php .php
    #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
    The php.ini file IS a text file. You should edit the appropriate pho-whatever.ini file and SAVE AS php.ini (in the PHP directory noted in the httpd.conf).

    Do NOT store these files in WinDoze protected directories (like /Windows/system32) as you'll have to use admin mode to save there ... and that's always a PITA!

    You'll know whether it works or not by addressing the http://localhost/index.php file (which you should create and use an echo "It works!"; statement.

    I'd copied the text of Kevin Yank's free setup chapter many years ago (before he started with the canned apps) and edited it slightly for better continuity ... but I can't find it on my computer any more. If anyone has that (I'd shared my version years ago), please PM that file to me so I can share it again.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  16. #16
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Location
    Florence
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    good morning
    I copy everything written below
    # <VirtualHost *:80>
    ......
    .....
    # </ VirtualHost>

    # BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
    LoadModule php5_module c :/ php/php5Apache2.dll
    AddType application / x-httpd-php. Php
    AddType application / x-httpd-php-source. Phps

    # END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL


    1 I have problem / or \
    2 after type Start of APACHE Server, the output is "CANNOT LOAD C:/PHP/php5apache2.dll

  17. #17
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by keyboardistdenny View Post
    good morning
    I copy everything written below
    # <VirtualHost *:80>
    ......
    .....
    # </ VirtualHost>

    # BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
    LoadModule php5_module c_:/_php/php5Apache2.dll
    AddType application_/_x-httpd-php_.Php
    AddType application_/_x-httpd-php-source_.Phps

    # END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL


    1 I have problem / or \
    2 after type Start of APACHE Server, the output is "CANNOT LOAD C:/PHP/php5apache2.dll
    You have spaces where there should be no spaces. I've replaced the spaces with _'s in your code (and shifted the dot characters as necessary) above - remove the _'s and restart Apache ... AFTER you check your C:\PHP directory for the version of PHP (5) and Apache (2_4?) you're using and correcting the filename above.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  18. #18
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Location
    Florence
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    possible error

    1 c:\php is ok
    but c:/ isnt OK there isnt Php in this route!!!!
    so

    2 I do not remember very well . but I have installed
    apache2.0.63 or apache2.2 (where can I find the files similar to php5Apache2.dll ?)

    however failed attempts

  19. #19
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    kbd,

    If you have Apache "in this route," Apache understands forward slashes.

    It should be in your php directory, i.e., where I found the file I had to ZIP to upload.

    Regards,

    DK
    Attached Files Attached Files
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  20. #20
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Location
    Florence
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1 I replaced the file with php5.dll php5apache2.dll
    2 I wrote in php.ini

    extension_dir = "c: \php \ ext ,but I do not know if is it equal to PHPIniDir" C :/ php " !??

    3 I added at the end of the file
    LoadModule php5_module "c :/ php/php5apache2.dll"
    AddType application / x-httpd-php. Php

    but starting apache server I get output CAN NOT LOAD C :/ PHP5APACHE2 INTO SERVER !!!!!!!


    I do not know why and is but when I start from Windows:
    c :/ windows php/php5apache2.dll, the file does not appear
    while when I write
    c: \ php \ php5apache2 appears!! iNCREDIBLEEE
    helpme!!!

    Buon week-end!

  21. #21
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    kbd,

    You have spaces in the lines above where you're referencing files. Are those spaces in the files?

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  22. #22
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Location
    Florence
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no , there are not !

  23. #23
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    kbd,

    Quote Originally Posted by keyboardistdenny View Post
    1 I replaced the file with php5.dll php5apache2.dll

    [ndent]That should work IF this is similar to what you have in your httpd.conf file:

    Code:
    #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
    PHPIniDir "C:/PHP/"
    LoadModule php5_module "C:/PHP/php5apache2_2.dll"
    AddType application/x-httpd-php .php
    #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
    Please note that the spaces in your post are VERY different than in this code![/indent]

    2 I wrote in php.ini

    extension_dir = "c: \php \ ext ,but I do not know if is it equal to PHPIniDir" C :/ php " !??

    Same with this from my php.ini file:

    Code:
    extension_dir ="W:\PHP\ext"

    3 I added at the end of the file
    LoadModule php5_module "c :/ php/php5apache2.dll"
    AddType application / x-httpd-php. Php

    Please note the line above (first item) as the spacing is, again, very different from what you're posting.

    but starting apache server I get output CAN NOT LOAD C :/ PHP5APACHE2 INTO SERVER !!!!!!!

    If you are posting EXACTLY what you have in your httpd.conf and php.ini files, then I have no doubt.

    I do not know why and is but when I start from Windows:
    c :/ windows php/php5apache2.dll, the file does not appear
    while when I write
    c: \ php \ php5apache2 appears!! iNCREDIBLEEE
    helpme!!!
    [indent]OMG! If you have installed PHP in the Windows directory, that will cause massive problems! Remember, M$ now believes that you should not be allowed to edit files in your Windows directory OR your Program Files directory so they're both "off limits" as far as installing (and editing) files (unless you are specifically using the Administrator account).
    Buon week-end!

    To you, too!
    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


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
  •