LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem in executing php code in lamp server under open suse 11.3 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-executing-php-code-in-lamp-server-under-open-suse-11-3-a-902988/)

sisirkumar 09-14-2011 09:30 AM

problem in executing php code in lamp server under open suse 11.3
 
hi,
i have got open suse 11.3 and lamp server installed on my pc.
i have pelaced a file.php in /srv/www/htdocs.
while i open the url http://localhost/file.php,it asks me to open or save this file.php.
could u plz help me out?
i shall br grateful to u

TB0ne 09-14-2011 09:48 AM

Quote:

Originally Posted by sisirkumar (Post 4471486)
hi,
i have got open suse 11.3 and lamp server installed on my pc.
i have pelaced a file.php in /srv/www/htdocs.
while i open the url http://localhost/file.php,it asks me to open or save this file.php.
could u plz help me out?
i shall br grateful to u

Spell out your words, please, and write clearly.

From what you're describing, it sounds as if you don't have PHP installed/enabled. Has PHP worked on this server before, or is this a fresh installation? You can, at the command line, type in "yast2 -i apache2-mod_php5", and that should install the PHP module for Apache, and you'll have to restart Apache for the changes to kick in. Or, you can go into Yast->Software Management, and put in "PHP5" into the search box, and install what you need, and again, have to restart Apache.


All times are GMT -5. The time now is 09:52 AM.