Ginxodus Posted April 5, 2008 Share Posted April 5, 2008 i dont know if it posted before, cuz an error occured. but hopefully someone can help me. i extracted php and installed apache, and i have made a few tests to make sure my apache works. now when i tried to follow the instructions on this site: http://www.php-mysql-tutorial.com/install-apache-php-mysql.php#apache i restarted apache and somehow i think it didnt recognize php because when i tried to make the test.php with the source code <? phpinfo(); ?> it only showed this in the exploror window. can someone please tell me how to debug this so that it works? thanks. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 5, 2008 Share Posted April 5, 2008 Use full php opening tags - <?php Don't use short php opening tags - <? Short open tags are turned off by default in all current versions of php because writing code that uses them results in non-portable code between different server settings. Quote Link to comment Share on other sites More sharing options...
Ginxodus Posted April 5, 2008 Author Share Posted April 5, 2008 I tried that as well, and again, it just shows it in text.. in this case, <?php phpinfo(); ?> i am sure its the php part.. i am unsure if i set it up correctly. please help Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 6, 2008 Share Posted April 6, 2008 The instructions at that link are php4 specific and include some out of date advice. wildteen88 just posted this very concise list of instructions. Give them a try - http://www.phpfreaks.com/forums/index.php/topic,189883.0.html Quote Link to comment Share on other sites More sharing options...
Ginxodus Posted April 6, 2008 Author Share Posted April 6, 2008 i was trying to follow it, but in my httpd.conf, i cant seem to find the line # Secure (SSL/TLS) connections i used the find function but cant find it at all.. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 6, 2008 Share Posted April 6, 2008 It would be near the end of the file. I found it in mine right a way. I am starting to wonder if the httpd.conf you found and are changing is the one that Apache is using. If you accepted all the default Apache paths... the httpd.conf should be in - C:\Program Files\Apache Software Foundation\Apache2.2\conf\ Quote Link to comment Share on other sites More sharing options...
Ginxodus Posted April 6, 2008 Author Share Posted April 6, 2008 yup everything is default. except for where i installed it. i installed it in C:\aWEBSITE SETUP, so it would be found in \Apache2\conf. can i put it at the very end? my apache is version 2.0.63 Quote Link to comment Share on other sites More sharing options...
Ginxodus Posted April 6, 2008 Author Share Posted April 6, 2008 Ok i decided to install the new apache. and now i see that line. thanks.. now let me try to finish the rest without any errors *fingers crossed* Yes it works! say, do you know how to delete the other apache from the server list? also, i noticed your post, PFMaBiSmA: In addition to those steps, I recommend finding and setting the following common values in php.ini (stop and start your web server to get any changes made to php.ini to take effect) - error_reporting = E_ALL | E_STRICT display_errors = On extension_dir = c:\php\ext session.save_path = "/tmp" i used the find function and i found there are a bunch of "error_reporting" and i dont know which to replace.. i dont want to screw anything up Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 6, 2008 Share Posted April 6, 2008 To change the error_reporting/display_error setting in the php.ini go to line 353 Quote Link to comment 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.