LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Newbie on Apache and PHP rpm install on RH8 (https://www.linuxquestions.org/questions/linux-general-1/newbie-on-apache-and-php-rpm-install-on-rh8-39941/)

1beagle 12-31-2002 07:12 PM

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

wdingus 12-31-2002 10:43 PM

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!

1beagle 01-02-2003 11:18 AM

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

wdingus 01-02-2003 11:33 AM

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.

cyberpunk71 03-09-2003 06:22 PM

php rpm
 
Where did you find the PHP rpm for Red Hat 8.0

1beagle 03-11-2003 06:54 PM

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.


All times are GMT -5. The time now is 07:59 PM.