LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-31-2002, 07:12 PM   #1
1beagle
LQ Newbie
 
Registered: Dec 2002
Posts: 3

Rep: Reputation: 0
Newbie on Apache and PHP rpm install on RH8


I have been running RH8 as desktop for over a month and like it.

I installed the PHP-MYSQL-4.2.RPM

The install went fine I think no errors.

However I was expecting to check first if Apache was running by doing an http://localhost/ and get a screen back. However It doesnt work I get "Connection was refused when attempting to contact localhost.

OK then i searched and found to try in a terminal httpd start or apachectl start.

This does not work.

Locate apachectl - returns nothing.

I hvae an etc/httpd/ dir but no bin directory.

I tried to install httpd-2.0.43 .rpm it says it was installed.

Any help I want to finish the year with another thing done in linux.

I was then going to work on checking php to run and then my sql.

So this is the first step I think.

Thanks,

1beagle
 
Old 12-31-2002, 10:43 PM   #2
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
Most things in RedHat should be started/stopped with the /etc/rc.d init scripts.

/etc/rc.d/init.d/httpd start

Should start up apache.. Before that though, the php package you installed is only the portions of PHP necessary to be able to access a MySQL database. There's quite a few more PHP packages in RH8. Here's what I have installed for instance:

# rpm -qa | grep -i php
php-pgsql-4.2.2-8.0.5
php-imap-4.2.2-8.0.5
php-mysql-4.2.2-8.0.5
asp2php-gtk-0.76.2-3
php-ldap-4.2.2-8.0.5
php-manual-4.2.2-8.0.5
php-snmp-4.2.2-8.0.5
php-devel-4.2.2-8.0.5
php-4.2.2-8.0.5
asp2php-0.76.2-3
php-odbc-4.2.2-8.0.5

The main php-4.2.2-8.0.5 package is php itself and at the very least should be there. After installing these, and using the rc.d script to start up apache I'd think you would be able to surf to http://localhost and if so test php with a simple phpinfo(); script...

Good luck!
 
Old 01-02-2003, 11:18 AM   #3
1beagle
LQ Newbie
 
Registered: Dec 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Up and running - 2nd Phase

Just wanted to let you know I am up and running. I didnot realize that in RH8 in the package manager SQL was install of MySQL which is what I was looking for.

Another strange thing is that if I type as a command /etc/rc.d/init.d/httpd start
it works if I cd to the directory and type httpd start it doesnot but its ok I have it as part of the start up now.

The next thing I am looking for is a good GUI editor with multi windows like ultraedit. I use VI but its not the same.

Thanks,

1beagle
 
Old 01-02-2003, 11:33 AM   #4
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
There are probably lots of good editors out there... Check www.freshmeat.net and if you find something on there that looks good check to see if it's not already installed or on the distro CD you have first...

As far as running commands by giving full path versus sitting in the directory... MS-DOS allows you to be *in* a directory and type a command and it runs. Unix/Linux do not by default. This is a result of the PATH. Type "set | grep PATH" to see what the PATH environment variable is. If a command exists in one of these directories you can just type the command and it will run. No matter what directory you're currently sitting in... By default the current directory is NOT a component of your path. You could make it so by modifying your path to include . as the first component of your path (or last component for a bit more security).

. = current directory
.. = 1 directory back
... = 2 directories back

Anyway, if your path were .:/sbin:/usr/bin:/bin or similar with the . coming first and someone dropped a shell script into a directory named "ls" which did an "rm -rf /" and you typed "ls" logged in as root expecting to get a directory listing.. Well hopefully you get the picture It's a security thing and I think a good thing.
 
Old 03-09-2003, 06:22 PM   #5
cyberpunk71
LQ Newbie
 
Registered: Mar 2003
Posts: 1

Rep: Reputation: 0
php rpm

Where did you find the PHP rpm for Red Hat 8.0
 
Old 03-11-2003, 06:54 PM   #6
1beagle
LQ Newbie
 
Registered: Dec 2002
Posts: 3

Original Poster
Rep: Reputation: 0
http://rpmfind.net/linux/RPM/

http://rpmfind.net/linux/RPM/

Do a search on php and you will find. php-4.2.2-8.0.5.i386.html

This is where i got the installs needed.

beagle.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apache or php doesn't work properly on RH8.0 abd_bela Linux - Networking 6 03-18-2003 05:20 AM
apache, mysql php Rh8.0 wldkos Linux - Software 11 03-02-2003 03:19 AM
RH8 Modifying Default Apache / PHP config p4ck37p1mp Linux - General 4 02-10-2003 10:09 PM
RH8.0 : Need to uninstall Apache 2 and install Apache 1 ericcarlson Linux - Software 1 02-10-2003 02:13 PM
RH8/Apache - PHP installed but not enabled(?) bkeating Linux - Software 3 12-05-2002 12:10 PM


All times are GMT -5. The time now is 05:30 AM.

Main Menu
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