LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-26-2002, 10:16 AM   #1
mrMahann
LQ Newbie
 
Registered: Feb 2002
Location: balto, md
Distribution: suse
Posts: 2

Rep: Reputation: 0
nooB ?, install: apache, PHP, postgreSQL and wine


coming from a mac and pc world...

am trying to get a web server up and running to teach self serving data input pages using PHP and postgreSQL for data storage. coming from a visual envronment to one where there are faceless processes is an adjustment.

what to install?
in yast2, have installed apache and PHP; any other useful stuff?

how to kick off servers? (apache, PHP, postreSQL)

how to see if processes are running adequately?

have installed wine, and done default configuration. how to kick off a windows app? doubleclicking on my windows partition (dbb) doesn't do anything.

is there a reference, a good book or URL that will help w/ these questions millions of others have asked?

thanks in advance!

my sys:
default SuSE8, running KDE3
esc k7s5a
athlon 1.47GHz
visiontek geforce3
512M DDR
60G hda
75G hdb

thanks,
todd
 
Old 08-26-2002, 01:08 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Re: nooB ?, install: apache, PHP, postgreSQL and wine

Quote:
Originally posted by mrMahann
coming from a mac and pc world...
welcome!
Quote:

coming from a visual envronment to one where there are faceless processes is an adjustment.
You can use graphical configuration tools in Linux, but most advanced users prefer text ones.
HINT: For a server administration I suggest Webmin. It allows to configure your server via a web browser.
Quote:
what to install?
in yast2, have installed apache and PHP; any other useful stuff?
A database (SQL), Webmin if you'd like to try it.
Quote:
how to kick off servers? (apache, PHP, postreSQL)
I'm sure your SuSE offers a graphical tool (SuSE users can write about it better that me).
A method that works in many distros is
Code:
/etc/rc.d/init.d/httpd start
The command above (given as root) starts Apache (httpd). To stop it, change 'start' with 'stop', ro restart use 'restart' etc.
It works only with other services.
NOTE: PHP is not a server. If your Apache is properly configured (and it is) you can use PHP without any special actions.
Quote:
how to see if processes are running adequately?
Look into logs. All errors are written to them. Usually logs are placed in /var/log. For example, Apache logs are in /var/log/httpd (but it may be changed in Apache configuration!). Just browse the directory, you'll learn much from this.
Quote:
have installed wine, and done default configuration. how to kick off a windows app? doubleclicking on my windows partition (dbb) doesn't do anything.
You run an application under wine using
wine pathtoanexecutable
where path is something like "/mnt/windows/Program Files/....".
There are also programs allowing you to run a Windows program from a graphical interface, but I don't remember any name now.
Quote:
is there a reference, a good book or URL that will help w/ these questions millions of others have asked?
Use "Search" feature of this site (very useful) and visit www.tldp.org
Quote:
visiontek geforce3
Have you already installed Nvidia accelerated drivers? It's not "a must", but it's useful sometimes.

Last edited by Mara; 08-26-2002 at 01:10 PM.
 
Old 08-26-2002, 04:40 PM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
welcome!
i don't know where suse installs apache and postgres and i recommend to download current versions of apache, php, mysql, postgresql and so on in the long run.
i have an installation of postgres that i can invoke like that using (user)bash:
/usr/local/pgsql/bin/postmaster -i //this invokes the server for your needs assumed pgsql is in /usr/local...
/usr/local/pgsql/bin/createdb yournewdb
/usr/local/pgsql/bin/psql yournewdb
this connects u to your new db.
get yourself the pg documentation from www.postgresql.org
u'll find a nice introduction to working with php & postgres at http://zope1.devshed.com/zope.devshe...ide/PostgreSQL

php should be working if u installed the suse version. u have to check where u have to place ur php files to be executed. this directory is determined by a variable called DocumentRoot. u can set that in the config file of apache, probably in /etc/httpd/httpd.conf or similar
good luck!
cheers, jens

Last edited by j-ray; 08-26-2002 at 04:43 PM.
 
Old 08-27-2002, 02:56 PM   #4
mrMahann
LQ Newbie
 
Registered: Feb 2002
Location: balto, md
Distribution: suse
Posts: 2

Original Poster
Rep: Reputation: 0
ha! way too easy...
note: SuSE8 its:
linux:/ # /etc/init.d/apache start
and
linux:/ # /usr/bin/postmaster -i
would have been soooo much harder w/o your guidance.

jens: i'm getting an error,
FATAL 1: File /var/lib/pgsql/data/PG_VERSION is missing. This is not a valid data directory.

am signed on as "postgres" and there is nothing in that directory. "postgres" owns that directory.

i'm downloading the current version, as we speak.

geforece3: have d/led the drivers, soooo much faster w/ 'em, as i recall.

be well, and thanks again for the direction and welcome!
 
Old 08-28-2002, 12:28 AM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
well, if u download the current version uīll probably have no difficulties installing and running postgres. follow the install and post if u need some more info.
u might run
'whereis PG_VERSION'
to find the missing file but i donīt know whether or not that will show a result.
good luck,
jens
 
  


Reply



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
Apache,PHP and PostgreSQL in a package Boby Linux - Software 1 03-29-2005 06:21 PM
Apache+Postgresql+PHP. reconfigure? vickr1z Linux - Newbie 2 08-23-2004 02:58 AM
Apache-php-postgresql-phppgadmin koswo Linux - Software 0 02-05-2004 06:05 AM
PHP + PostgreSQL + Apache - What slows down my browser? J_Szucs Programming 4 09-08-2003 05:33 PM
how to link apache+php+postgresql Sridhar Guntur Linux - General 3 01-09-2003 01:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:19 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
Open Source Consulting | Domain Registration