[help] with PHP site

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...

#259107

Both come with a step-by-step windows .msi installer. Just follow the steps in that.

#259146

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).

#259229

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.

#259235

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:

post-20298-1109518869_thumb.jpg

test1.JPG
test1.JPG

#259261

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.

#259278

<?php echo "Hello World

"; ?>

#259285

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.

#259323

Just go download XAMPP or phpdev. Google them for more info ;)

#259344

thanks guys! I will see what I can do...

#259366

as mentioned before xampp would be a very easy solution. you can find it here. I would recommend downloading xampplite as it will serve all your needs (at least I think ;) )

#264763

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.

#269137