SURAT Posted November 21, 2011 Share Posted November 21, 2011 Hello. Here's my problem. When you have entered www..........com not what what I have done in index.php. When you have entered www........com / index.php then OK. Where is the mistake? http://imageshack.us/g/507/phpsn.jpg/ Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/ Share on other sites More sharing options...
gristoi Posted November 21, 2011 Share Posted November 21, 2011 im going to hazard a guess that you dont have php installed on your server Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/#findComment-1289973 Share on other sites More sharing options...
ManiacDan Posted November 21, 2011 Share Posted November 21, 2011 Your default document isn't set properly in your webserver, it's not looking for index.php. Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/#findComment-1290001 Share on other sites More sharing options...
gristoi Posted November 21, 2011 Share Posted November 21, 2011 ManiacDan is right, the default doc isnt set, but from the screenshot you php isnt being interpreted Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/#findComment-1290005 Share on other sites More sharing options...
SURAT Posted November 21, 2011 Author Share Posted November 21, 2011 I've put / var / www / html/index.php I think I'm in the right place Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/#findComment-1290021 Share on other sites More sharing options...
gristoi Posted November 21, 2011 Share Posted November 21, 2011 it dosent matter that you have put your file in the var/www file. if you do not have php installed on the server then you have nothing to compile the php. your image shows that you are seeing a raw text page with php tags in it. if it was compiled properly you would not see: <?php echo 'test'; ?> you would see: test Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/#findComment-1290027 Share on other sites More sharing options...
ManiacDan Posted November 21, 2011 Share Posted November 21, 2011 gristoi, he says it works when he visits index.php directly, so it's definitely a default document problem. Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/#findComment-1290037 Share on other sites More sharing options...
gristoi Posted November 21, 2011 Share Posted November 21, 2011 ManiacDan, have you actually looked at the images that he has posted ? . now tell me if i'm wrong, but does this look like a correctly compiled piece of php to you? (see attachment) [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/#findComment-1290040 Share on other sites More sharing options...
DarkKnight2011 Posted November 21, 2011 Share Posted November 21, 2011 I think there are 2 issues here, I think that SURAT has not removed the default index page in /var/www/ and has also not set the default document type for php Also, The screenshot when navigating to index.php suggests that the php code is not being parsed, so i would guess its either not installed or libapache2-mod-php5 (dependant on OS) is not installed. You could also check the Apache OPTS in the /etc/conf.d/apache2 file, ensure you have php5 listed APACHE2_OPTS="-D DEFAULT_VHOST -D SSL -D SSL_DEFAULT_VHOST -D PHP5" Just my thoughts anyway, Regards DK Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/#findComment-1290046 Share on other sites More sharing options...
ManiacDan Posted November 21, 2011 Share Posted November 21, 2011 Hah! You're right, I didn't even see that link, my brain filtered it out as a signature. SURAT, you do not have PHP installed or your apache is not configured for PHP. The best recommendation is to simply uninstall apache and install a PHP/Apache stack appropriate for your operating system. XAMPP for linux and WAMP for windows. Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/#findComment-1290078 Share on other sites More sharing options...
Pandemikk Posted December 3, 2011 Share Posted December 3, 2011 I think this topic should be moved out of PHP Math Help. Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/#findComment-1293738 Share on other sites More sharing options...
Pikachu2000 Posted December 3, 2011 Share Posted December 3, 2011 I would tend to agree . . . Quote Link to comment https://forums.phpfreaks.com/topic/251542-helpp-indexphp/#findComment-1293740 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.