LinuxQuestions.org
Review your favorite Linux distribution.
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 02-29-2008, 02:53 PM   #1
zeeshee
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Unhappy How run PHP sripts in opensuse10.2


actully in Rad hat & fedora there is a folder named www in /var but in suse10.2 there is no such kind of folder ..............
so tell me where i write my php programs to run in browser.
in college they said tht make folder in /var/www/html/
 
Old 02-29-2008, 03:26 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,919

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Check your apache configuration file. On opensuse, it's in /srv/www/htdocs.
 
Old 02-29-2008, 04:25 PM   #3
Th3_J3st3R
Member
 
Registered: Mar 2003
Location: Milwaukee
Distribution: Slackware 12.0
Posts: 84

Rep: Reputation: 16
run:

updatedb

then
slocate index.html

This will provide you with your location. Again why don't you just look at your corresponding documentation for your distribution. Your web server probably isn't configured to serve up PHP so you'll have to configure that too. I think standard installs will NOT have it setup for you to run but all it takes is either a few lines uncommented or added.
 
Old 02-29-2008, 05:30 PM   #4
vigol
Member
 
Registered: Feb 2008
Location: Uns Cigano from Vigol
Distribution: FreeBSD 8.0
Posts: 59

Rep: Reputation: 19
Wink How run PHP sripts in opensuse10.2

hi

*)Put your scripts here:
/srv/www/cgi-bin
*) before any attempt check following settings:

a1-open terminal.
a2-run yast2.
a3-Network Service --> Hostnames.
a4-you must have an entry like or similar to this :
127.0.0.1 (IP Address) localhost (Hostnames)

b1-open terminal.
b2-run yast2.
b3-Network Services --> HTTP Server
b4-Check these items :
**-HTTP Server : Enable
**-Listen on Ports : All Addresses : 80 (or your prefer)
**-Open Port in Firewall : Checked

Mehrshad Moslehi
vigol
 
Old 03-02-2008, 08:57 AM   #5
ronald-be
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: debian 5.02
Posts: 73

Rep: Reputation: 15
Angry php in suse.... hopeless!!!

Hello all,

have the same problem. I get empty pages.. I read the last reply, but I even donīt get the http-server in the yast services ... although itīs running... whatīs going on? get more than 20 different config-files.

How do I get out without kicking out suse?

Thanx,

Ronald
 
Old 03-07-2008, 09:54 AM   #6
Th3_J3st3R
Member
 
Registered: Mar 2003
Location: Milwaukee
Distribution: Slackware 12.0
Posts: 84

Rep: Reputation: 16
Dont listen to vigol he is completely wrong. cgi-bin is for CGI scripts and NOT PHP.

PHP will be parsed by the webserver as long as you tell it WHERE the php files are and add support for the extension. You can put your PHP files in your web directory root aka /var/www/htdocs or whatever it is.


ronald-be can you be more specific. What are you trying to do? Do you get empty pages when you point your browser to http://localhost or are they blank when you are trying to use PHP?
 
Old 03-08-2008, 06:06 PM   #7
ronald-be
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: debian 5.02
Posts: 73

Rep: Reputation: 15
Thumbs up problem solved !!!

Hi all,

Well, I was double-clicking on a PHP-file, forgetting PHP is processed by the server... It was in the textbook, but alas... Iīm still not sure the SUSE-package is OK, so I first recompiled apache and PHP from source. Documentation is in the source-package but you have to add options when doing ./configure. Thanx anyway... Now trying to use XML in it...

Greetings,

Ronald
 
  


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
Lynx won't run from php tatacalu Linux - Server 5 01-28-2008 10:32 PM
how can i run my php blazer Linux - Software 3 11-18-2007 07:47 PM
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 11:25 AM
Can't get PHP to run Ham1am Linux - Newbie 5 06-19-2004 06:16 PM
help getting pptp-php-gtk.php to run as root mrtwice Linux - Software 0 11-21-2003 01:49 PM


All times are GMT -5. The time now is 12:24 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration