Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 1049  / 1 Year ago, thu, january 5, 2023, 4:14:24

I have recently installed apache 2.2 from repos. Im trying to run php and jsp pages using that server.



What Im doing is ,Frist Im creating the pages using Gedit and then copy/pasting them to var/www



When Im trying to access the pages from localhost Im getting raw text. The scripts on those pages does not executing.



When I run "php -version" Im getting this:



PHP 5.3.6-13ubuntu3.6 with Suhosin-Patch (cli) (built: Feb 11 2012 02:17:16) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies


I have php,apache so what I need more to do to run PHP ?


More From » apache2

 Answers
2

Installing the CLI version of PHP does not install PHP for Apache. For that, you need to install the libapache2-mod-php5 package.


[#39089] Friday, January 6, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
armis

Total Points: 38
Total Questions: 106
Total Answers: 118

Location: Mali
Member since Sat, Feb 12, 2022
2 Years ago
;