frenchpl Posted July 7, 2009 Share Posted July 7, 2009 Can someone please help before I go mad. I have tried installing this stuff quite a few times with no success. I am running Windows 2000 SP4 on a Dell Optiplex Gx400 1.5Ghz machine. I have 500Mb memory. So much for the hardware. I have downloaded the following files and installed them. mysql-essential-5.0.83-win32.msi php-5.2.10-Win32.zip apache_2.2.11-win32-x86-openssl-0.9.8i.msi I istalled to C:MYSQL C:PHP5 C:Apache Software Foundation I installed in that order restarting between each. They all seem to install and run correctly . If I check the 'localhost/test.php' I get the full page of specs. The mysql runs great, I have created my databases without hitch. I have created my HTML/PHP files to access the databases and this is where the problems start. Whenever I look at a page that has PHP code in it, the PHP part is not working. If I select view PageSource, I see the HTML code in normal type and the PHP code is there but almost as though it is greyed out. I guess that I have a configuration problem and that the PHP is not parsing. As I am a newbie to php I am not sure where I should put the PHP or HTML scripts in the directory structure. Any help much appreciated. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/165046-solved-installation-nightmare/ Share on other sites More sharing options...
rhodesa Posted July 7, 2009 Share Posted July 7, 2009 After you installed apache did you make any edits to the httpd.conf file? Here are the edits that need to be made: http://www.php.net/manual/en/install.windows.apache2.php Quote Link to comment https://forums.phpfreaks.com/topic/165046-solved-installation-nightmare/#findComment-870376 Share on other sites More sharing options...
frenchpl Posted July 7, 2009 Author Share Posted July 7, 2009 Hi there, Yes I have made the changes to the conf file as suggested. I can send the php.ini and the apache configuration file if it would help. Or tell me how to upload them to where you can see them. I need help here I am getting desperate. I started this a couple of weeks ago thinking that I would expand my knowledge of languages etc with the PHP thing. Here I am now very frustrated. I can write the SQL, the HTML and the PHP, it would be great if they would all play nicely together. Thanks for the answer Pete Quote Link to comment https://forums.phpfreaks.com/topic/165046-solved-installation-nightmare/#findComment-870485 Share on other sites More sharing options...
wildteen88 Posted July 7, 2009 Share Posted July 7, 2009 If I check the 'localhost/test.php' I get the full page of specs. By this do you mean you get a page similar to the following. If thats correct then you have Apache and PHP configured correctly. Make sure you save your code in .php files. In most setups by default PHP will not be parsed in .html files. However you can place HTML within .php files. You can configure Apache so PHP is parsed within .html files. You should also be going to http://localhost to run your .php files and make sure you're saving your files in Apaches htdocs folder. Quote Link to comment https://forums.phpfreaks.com/topic/165046-solved-installation-nightmare/#findComment-870492 Share on other sites More sharing options...
rhodesa Posted July 7, 2009 Share Posted July 7, 2009 If you are just setting this up to expand your knowledge of the languages, and not the actual webserver stack, you should just install something like WAMP. It's an easy to install, ready to go bundle: http://www.wampserver.com/en/download.php Quote Link to comment https://forums.phpfreaks.com/topic/165046-solved-installation-nightmare/#findComment-870496 Share on other sites More sharing options...
frenchpl Posted July 7, 2009 Author Share Posted July 7, 2009 Hi all Wildteen, thanks for the comment, I changed the extension to .php from .html and now it starts to work some. I get errors and I am sure that I will be able to work those out. What do I have to do to the conf file to be able to parse PHP in the html files? Is there another parameter that I can change so that I can store my files in another directory, other than the htdocs one? Rhodesa, thanks for your help, I tried the wamp bundled stuff before I got to the separate packages and had no better luck with that. As always one just carries on trying, sometimes it works out. Thanks again Pete Quote Link to comment https://forums.phpfreaks.com/topic/165046-solved-installation-nightmare/#findComment-870525 Share on other sites More sharing options...
frenchpl Posted July 17, 2009 Author Share Posted July 17, 2009 Thanks for the help guys. I managed to get this sorted on my own. I believe it was because of the order that I was installing the three components. Quote Link to comment https://forums.phpfreaks.com/topic/165046-solved-installation-nightmare/#findComment-877411 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.