|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
test.php don't work
Hello all i need some help getting start with mysql, apache and php
ive been following this tutorial http://www.staff.city.ac.uk/~ra531/Aplications%20Installation%20and%20Configuration.h tm installation on windows 2000 professional i did everything the tutorial told me to do. but when i test it with the test.php i.e <?php phpinfo(); ?> on the browser it actually displays <?php phpinfo(); ?> the php doesnt work can someone help me or give me a link to a better tutorial suitable for windows 2000 professional many thanx |
|
#2
|
|||
|
|||
|
RE: test.php don't work
Did you configure Apache to recognise PHP files? ie: with ScriptAlias, etc?
|
|
#3
|
|||
|
|||
|
RE: test.php don't work
yes i added the additional lines in the httpd.conf file but i still dunno wots wrong
|
|
#4
|
|||
|
|||
|
RE: test.php don't work
Did you put php4ts.dll in the right place? It's been a while since I installed my Apache/PHP/MySQL setup on Windows now, have a look at the readme file included with the PHP distribution.
|
|
#5
|
|||
|
|||
|
RE: test.php don't work
Oh, restart Apache by the way, to load in the new PHP module and types. And note any errors it spits out.
|
|
#6
|
|||
|
|||
|
RE: test.php don't work
apache runs ok. i placed the php4ts.dll and msvcrt.dll in the c:winntsystem
i been trying to search for solutions for 2 days and i got exams comin up and project due in |
|
#7
|
|||
|
|||
|
RE: test.php don't work
would i have to make any alterations to php.ini file for apache to recognise php?
|
|
#8
|
||||
|
||||
|
RE: test.php don't work
you shouldnt have too but if your really stuck remove php (do reverse of install) and download the exe installer to do it for you
|
|
#9
|
|||
|
|||
|
RE: test.php don't work
hi kendo thanx for helping
i used the installer 4.3.4 but it still doesnt work, it tells me that i have to configure the httpd.conf file manual i been search on the net for tutorials on installation for windows 2000 but the information varies and gets confusing. Ive tried manual changing the conf file many times to noo prevail. is it possible for you to guide me with the httpd.conf file or suggest where i can down one for windows 2000 |
|
#10
|
|||
|
|||
|
RE: test.php don't work
When I was starting out this tutorial was the best I could find. Perhaps it can help you?
http://www.webmasterstop.com/tutorials/apache-php-mysql-installation.shtml But the PHP installer telling you that you may need to configure httpd.conf yourself isn't PHP 'not working', you just have to go on extra step before the install is completed. There's another file you need to put in a specific directory aswell as php4ts.dll, but I've forgotten the name of it. <aside> And Microsoft say they're actually better than running a 'nix box. Tchah! I got my webserver with all components included at install. |
|
#11
|
|||
|
|||
|
RE: test.php don't work
Hi again i followed the tutorial downloaded everything installed it made the changes to the httpd conf file but it still gives me the same result shows <?PHP phpinfo(); ?> on the browser again.
Im pulling my hair out |
|
#12
|
|||
|
|||
|
RE: test.php don't work
Ok. Make sure you're doing this:
Run Apache and make sure it doesn't note any errors, warnings or notices etc. If it does, post them here. Edit your C:%apache_dir%confhttpd.conf to add this at the end. (Assuming you put PHP in the default place) [code] ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php .phtml Action application/x-httpd-php "/php/php.exe" [/highlight] Make sure you've done what the readme file that ships with PHP says for installing it with Apache on Win32 systems. Make newtest.php: [highlight=php] <?php echo "Hello World!"; ?> [highlight=php] And navigate to this in your browser: http://localhost/newtest.php DON'T go to C:%apache_dirhtdocsnewtest.php - that's not routing newtest.php through PHP, so yes in that case, you will just get the source open up in some program - possibly IE, more likely notepad or a Source Editor like Dreamweaver. |
|
#13
|
|||
|
|||
|
RE: test.php don't work
Hi there. I have followed through this thread and I found that I have the same problem. It prints out the code instead of the output that I was expecting. Am i missing anything? I just innstalled PHP 4.3.6 and Apache 1.3.29 on my fresh windows XP system.
Thanks. Vinh Vu |
|
#14
|
|||
|
|||
|
RE: test.php don't work
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > test.php don't work |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|