Installing Php In Apache 2.2 Programs

Active6 years, 8 months ago

I had my Apache 2.2 installed on windows. Now I just finished installing PHP on the Apache server. As the instruction says, I need to edit the httpd.conf of my Apache and add:

On the Web Server Setup panel, choose the version of the Apache server - in our example it is Apache 2.2.x Module. On the Apache Configuration Directory panel, specify the directory where the Apache configuration file httpd.conf is located. How can I install PHP5 manually on Ubuntu. Includes Apache 2.4 update. For Apache 2.2 + PHP 5.4 repository, see the bottom of the answer. By re-installing my.

Apache

I made sure the directory is correct. Then I restart my server again. I have a hello.php file in my htdocs. And I navigate to localhost:8080/hello.php and it says server not found, however when I do index.html. It display's the html correctly on the htdocs folder.

What am I doing wrong here? I tried to debug this by trying to execute hello.php from the command line by executing G:Program FilesPHPphp-cgi hello.php, but then it says:

Installing Php In Apache 2.2 Programs

'G:Program is not recognized as internal or external command.....

hakre
164k33 gold badges323 silver badges637 bronze badges
aherlambangaherlambang
7,25043 gold badges139 silver badges241 bronze badges

1 Answer

You can use some this like XAMPP its easy to configuration.

PhpSudantha Sudantha
6,83735 gold badges94 silver badges148 bronze badges

Installing Php In Apache 2.2 Programs For Parents

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Apache 2.4

Not the answer you're looking for? Browse other questions tagged phpwindows-7apache2 or ask your own question.