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... |
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. |
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. |
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 |
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/ |
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... |
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/ |
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). |
One more thing....
What is "CentOS-5.2-x86_64-netinstall.iso".? Do I need it.? What does it do.? Thanks... |
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
|
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... |
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... |
Quote:
|
Quote:
|
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. |