Php Setup help
Moderator: General Moderators
Php Setup help
hello all, I`m having a problem i`m setin up php now after installing apache and mysql and after installing phphe instructions said to type < phpinfo() ?> ..I did this saved it as test.php and proceded to bring it up in http://localhost/test.php , now isntead of getting the page with all that stuff about php i get a page with the same php code in it < phpinfo() ?>..
Can anyone tell me what i did wrong?or what i didn`t do?...
Can anyone tell me what i did wrong?or what i didn`t do?...
setting up
What OS are you using to setup apache and php on.
phpScott
phpScott
httpd
Make sure you have edited your apache's httpd.conf file correctly and restart your apache server.
else let me know and I will send you the instructions that I did up for my company to set up apache, php and mysql on windows XP boxes
phpScott
else let me know and I will send you the instructions that I did up for my company to set up apache, php and mysql on windows XP boxes
phpScott
A shot in the dark here. Did you change this row in the httpd.conf?
The first two above is to be added after installing apache/php, and without those PHP might exist, but any php-files are treated as text files...
Code: Select all
DirectoryIndex index.php index.php3 index.html index.html.varSure.
Open up the dir where you installed Apache. In this directory you will find a /conf/ directory containing a file named httpd.conf.
Open it in Notepad or similiar. Around line 323 (if that helps) there is a line looking like:
If it does look like that, try changing it to.
Open up the dir where you installed Apache. In this directory you will find a /conf/ directory containing a file named httpd.conf.
Open it in Notepad or similiar. Around line 323 (if that helps) there is a line looking like:
Code: Select all
DirectoryIndex index.html index.html.varCode: Select all
DirectoryIndex index.php index.php3 index.html index.html.var- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
One thing to note (don't know if it was a typo in the original code, but
should be
otherwise the PHP engine won't recognise the code as being PHP.
Mac
Code: Select all
< phpinfo() ?>Code: Select all
<?php phpinfo() ?>Mac