I have installed Apache server and php
I must change the file httpd.conf to the end of the script ....
but the file php5apache2.dll does not exist !
What versions of PHP and Apache did you use?
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.
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
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?
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
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.
That's a very good point Good catch
now 11/03/2014 i have installed
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!!!!
- 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
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.
now I have
- "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!)
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?
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):
[indent]#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
LoadModule php5_module "W:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL[/indent]
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.
I copy everything written below
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[/B]
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.
1 c:\php is ok
but c:/ isnt OK there isnt Php in this route!!!!
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
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.
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
next page →