LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-14-2011, 10:30 AM   #1
sisirkumar
LQ Newbie
 
Registered: Feb 2011
Posts: 8
Blog Entries: 1

Rep: Reputation: 0
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
 
Old 09-14-2011, 10:48 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,078

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Quote:
Originally Posted by sisirkumar View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C code question/Server security inquiry (debian/LAMP) curtisb Linux - Security 6 03-26-2011 09:15 PM
apache and/or php executing arbitrary code bombuzal Linux - Security 5 05-08-2010 03:22 PM
executing C++ code from within PHP code vineet7kumar Programming 1 06-03-2007 05:13 PM
connecting PHP to MySQL in a LAMP server rickyglucas_143 Linux - Newbie 2 02-06-2006 05:02 AM
Problem in executing code in gcc gcc_learner Programming 3 03-26-2005 04:28 AM


All times are GMT -5. The time now is 04:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration