Well in my room I have this PC which isnt connected to the internet. Now instead of me just using it to play games and to create random and rubbish web designs it would be better if I put it to some use.
How can I install PHP on it so that i can run PHP scripts?
Because i want to learn PHP and this would be a good place where i good try stuff out and practice my scripts.
Thnx
Comments
what operating system have you got on the computer?
The Royal Ram
The Royal Ram
you need that installed to be able to run php - this is where i dropped out of uni so i cant be much more help now i dont know how you set it up how you do anything with it but i know you should have a file called wwwroot on your computer somewhere and your php should be kept in that
The Royal Ram
Go download Apache2 and install. Then go download PHP (Zip archive). You can read the Install.txt file, but in a nutshell what you want to do (installing PHP as a SAPI module):
1. Extract the PHP archive
2. Copy php4apache2.dll and php4ts.dll and php.ini to your Apache2 directory.
3. Open up conf/httpd.conf and add these lines to the bottom:
[code:1:ece3d40b97]LoadModule php4_module php4apache2.dll
AddType application/x-httpd-php .php[/code:1:ece3d40b97]
You might want to stay away from PHP5 until at least the next release, there are a few annoying bugs that'll kill some stuff.
Webmaster-Talk.com
Chroder.com
The Royal Ram
this is really confusing!
The Royal Ram
Webmaster-Talk.com
Chroder.com
The Royal Ram
Webmaster-Talk.com
Chroder.com
thats about it
The Royal Ram
Webmaster-Talk.com
Chroder.com
so because it wont start running it i went to test configuration and i got that error.
oooo sweet. ok i took away those lines and apache is running fine and its running the service.
but how does php come in to this?
The Royal Ram
You have to tell Apache to load PHP as a module, which is what those lines are supposed to do. Not sure why it's giving you an error. Even if the were missing files somewhere, it'd complain about missing files, not syntax errors. Here, even read the install:
Webmaster-Talk.com
Chroder.com
maybe it just cant load the dll
The Royal Ram
Webmaster-Talk.com
Chroder.com
im gonna uninstall apache totally and start over. maybe i messed something up but i doubt it.
The Royal Ram
I hope that helps. :rolleyes:
http://www.RadcliffeRiverside.co.uk
http://www.Browser-X.com