LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Redhat 9.0 PostgreSQL, PHP and Apache (https://www.linuxquestions.org/questions/linux-software-2/redhat-9-0-postgresql-php-and-apache-671368/)

NuWeb 09-21-2008 09:00 AM

Redhat 9.0 PostgreSQL, PHP and Apache
 
I have never used Redhat and I just installed Redhat 9.0 (this was the easiest and fastest of any O/S I ever installed). I needed make a minor change to get Apache run PHP files with a .HTML extension. I see PostgreSQL was installed and I can get it to run from a command prompt using "psql", but I'm not sure if Postgres is setup correctly. If I remember correctly (I haven't installed Postgres in over a year) when Postgres is installed you need to create a "postgres" user then create databases as the postgres user. It also looks like Apache can't access Postgres from PHP programs.

Question: Doesn't anyone know how to get Redhat 9.0, PHP and PostgreSQL running in Apache.?

Do I need to reinstall Postgres.?

Do I need to reinstall Postgres and PHP.?

Is there just something to change in Apache as I did to get PHP to run on .HTML extensions.?

Please remeber I'm not a Linux expert and I'm VERY new to Redhat.

Thanks...

odcheck 09-21-2008 09:08 AM

Redhat 9 srike tell me why you installed this?
If you want to use Red Hat Enterprise but if you cannot affored it use CentOS.
But Redhat 9 is very old...

The php must have a config file as well like it own's one for an mysql db.
config.inc.php or whatever and ther you must setup the username and the password as well as
the DB in order that the PHP App can access the Database.

NuWeb 09-21-2008 09:20 AM

Yes, I wanted to try Redhat and can't afford it.

What is the difference between Redhat 9.0, Redhat Enterprise and Fedora (or any other Redhat versions).?

Doing a little more digging, it doesn't seem to really be an Apache problem, It seems to me Postgres and PHP. Seems when running PHP from the command prompt it stops (without error) at the first Postgres line.

knudfl 09-21-2008 12:02 PM

The last free version named Redhat was 9, year 2002.
All later free desktop versions are called Fedora.
The free enterprise version is CentOS.
Suggest : Install Fedora 9 or CentOS 5.2 (5.3?)

Regards

John VV 09-21-2008 12:23 PM

with fedora there is an option to install apache,mysql,and php during the install
fedora 9 is NOT a good choice for a new linux user , it is a fast development destro.That means things will break and are broke currently.

CentOS 5.2 is very stable and you should not have any , or only very little problems with it .
http://www.centos.org/

NuWeb 09-21-2008 01:17 PM

I'm confused...

Is CentOS Redhat.?

Is Fedora Redhat.?

I'm not a Linux expert. I have been running Slackware but it's a few years old. I am working with someone that wants to do a site on my servers but he wants Redhat. What can (or should) I use that is the same or similar to Redhat server OS and where do I get it.?

I need CD ISOs since none of the servers have a DVD drive.

Thanks...

chrism01 09-22-2008 01:04 AM

Centos is the free version of RedHat Enterprise Linux (RHEL). Normally you'd pay for RHEL, which gives you email/phone support & updates from RH.
Fedora is also from the RH company, but its more of a bleeding edge free distro. It is prob not appropriate for commercial production servers.
You can download Centos from here: http://www.centos.org/
Fedora : http://fedoraproject.org/

NuWeb 09-22-2008 08:42 AM

So I would be better off going with CentOS then right.?

I have a dual Xeon with 3 Gig I'm working with. I was going to try to load Fedora 9 on it but I received the following error whe running the install:

"This kernel requires an x86-64 CPU, but only detected an i1586 CPU"

What should I be looking for to install on a dual Xeon.?

If CentOS is the closest thing to Redhat Enterprise what do I need to install this on a dual Xeon with a CD drive (no DVD drive).

NuWeb 09-22-2008 08:53 AM

One more thing....

What is "CentOS-5.2-x86_64-netinstall.iso".?

Do I need it.? What does it do.?

Thanks...

John VV 09-22-2008 11:00 AM

a net install is for when there is no dvd drive on the machine . one can install it from a machine in the local lan

NuWeb 09-22-2008 11:04 AM

OK... I don't have a DVD drive, I have a CD drive. Should I use "CentOS-5.2-x86_64-netinstall.iso" to install on my dual Xeon of should I burn the 7 Cds a install off the CDs or does it make a difference.?

Thanks...

NuWeb 09-22-2008 11:30 AM

I just tried to install "CentOS-5.2-x86_64-netinstall.iso" and received this message:
"Your CPU does not support long mode. Use 32bit distribution".

Then I tried to install "CentOS-5.2-i386-netinstall.iso" and nothing happens. No boot. Just black screen.

HELP...

Thanks...

michaelk 09-22-2008 11:31 AM

Quote:

"This kernel requires an x86-64 CPU, but only detected an i1586 CPU"
Your Xeon processor is not a 64 bit CPU so you need to use an i386 ISO. If you do not want to burn all 7 you can install via the internet using the netinstall CD or you can install from the hard drive if the files are on a ext2, ext3, or FAT file system.

NuWeb 09-22-2008 11:55 AM

Quote:

Originally Posted by NuWeb (Post 3288350)
I just tried to install "CentOS-5.2-x86_64-netinstall.iso" and received this message:
"Your CPU does not support long mode. Use 32bit distribution".

Then I tried to install "CentOS-5.2-i386-netinstall.iso" and nothing happens. No boot. Just black screen.

HELP...

Thanks...

OK... Never mind... This problem with "CentOS-5.2-i386-netinstall.iso" is because the CPU fan on CPU1 died and caused a CPU over-heat condition. I replaced the fan and now "CentOS-5.2-i386-netinstall.iso" boots up.

NuWeb 09-22-2008 08:03 PM

Thanks for all the help on this. I loaded CentOS 5.2 and haven't completely tested everything but so far everything looks like it's working. I really installed easy and fast. The only thing I noticed is when I had Redhat 9.0 loaded and use top it showed CPU1 and CPU2. This shows:

top - 20:53:48 up 1:19, 4 users, load average: 1.17, 1.18, 0.73
Tasks: 155 total, 2 running, 153 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.6%us, 2.8%sy, 3.6%ni, 91.2%id, 1.7%wa, 0.0%hi, 0.0%si, 0.1%st
Mem: 2865152k total, 1411996k used, 1453156k free, 86316k buffers
Swap: 2031608k total, 0k used, 2031608k free, 1015664k cached

Does this mean it only sees one CPU or am I just not reading this right.?

Also, what do you use the x86_64 distribution on.? I thought Xeons where 64 bit...

Thanks...


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