hi to all,
does any one know a site have a visual tutorial how to install PHP and apache in local PC ?
thanks for your time...
hi to all,
does any one know a site have a visual tutorial how to install PHP and apache in local PC ?
thanks for your time...
Both come with a step-by-step windows .msi installer. Just follow the steps in that.
I try that but no luck! First I install the MySQL then Apache and PHP I config the PHP file and I still can't access my .php files ( I do have Macromedia Dreamweaver for editing).
just to check... you're not just double-clicking them in explorer are you? You should be going to http://localhost/my_php_file.php in your browser.
If that doesn't work, you'll have to edit your httpd.conf file.
In the section where there's loads of bits saying "AddType", tack this on the end:
AddType application/x-httpd-php .php .inc .tpl
AddType application/x-httpd-php-source .phps
Then find and replace "DirectoryIndex index.html" with "DirectoryIndex index.html index.php"
Hope this helps
Ben.
I have Apache ( C:Program FilesApache Group) and PHP4 in (c:PHP) plus MySQL installed in my PC
here what I see when I brouse http://localhost/ I attached an Image of it.
and here what I have for httpd.conf
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
[COLOR=Red]ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"
ScriptAlias /php4/ "C:/php4/"[/COLOR]
and
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP3 module (not part of the Apache distribution)
# will typically use:
#
#AddType application/x-httpd-php3 .phtml
#AddType application/x-httpd-php3-source .phps
[COLOR=Red]AddType application/x-httpd-php .php .phtml .html
AddType application/x-httpd-php-source .phps[/COLOR]
one more thing!
in C:Program FilesApache Group I have two folder ( Apache and Apache2) which one do I need to config?
:slant:

for the folders: one or the other. Doesn't matter, just don't try to run both at once.
For the screenie: What is in your phpinfo.php file? it should be a single line reading
<?php phpinfo(); ?>
And my last idea before giving up (long time since I used apache on windows!) is to make sure in httpd.conf that the lines starting:
"LoadModule php4_module ..."
and
"AddModule php4_module....."
don't have a hash sign in front of them. ie Are uncommented.
OK. I'm afraid I can't do any more to help. Maybe someone with a windows box can point you in the right direction. Sorry.
Just go download XAMPP or phpdev. Google them for more info ![]()
thanks guys! I will see what I can do...
sorry, I didn't reply back! but xampp working just fine and I fix my problem with PHP format...
thanks a lot for every one help it out.