Need help with setting up PHP and Apache on Red Hat FC3

Spydermag68

Platinum Member
Apr 5, 2002
2,616
99
91
I have setup a computer to run Red Hat Linux so I can learn more about the operating system and PHP. I installed a workstation with the install everything option.

I first looked for what version of PHP had been installed. It looks like PHP 4.

I looked under services and started Apache. Then remembered that I might have to change the httpd.conf file to include PHP. I found the file and tried to edit it but could not. I made a copy of the httpd.conf file in my Home directory and added the lines:

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php

(I got these lines out of a book I have on PHP.)

I try to move the file back to where I found it but I seen do not have the write privileges to the file.

Notes:
1. Installed Red Hat FC3 workstation with everything
2. I want to start programming in PHP
3. Need help with getting privieges to file, httpd.conf.
4. Is this the right way to set this up?
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
Are you running as root? If not go to the command line and type "su -", then enter the root password. Then from the command line move the file "mv httpd.conf path". Or just login as root and move it using the Folder Browser.

If you are running as root, maybe your file permissions have gotten messed up and you need to change the permissions on the file. To do so go to the command line and type "chmod 775 httpd.conf".
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Originally posted by: KB
Are you running as root? If not go to the command line and type "su -", then enter the root password. Then from the command line move the file "mv httpd.conf path". Or just login as root and move it using the Folder Browser.

If you are running as root, maybe your file permissions have gotten messed up and you need to change the permissions on the file. To do so go to the command line and type "chmod 775 httpd.conf".

Why in the world would you want to make httpd.conf executable??!

did you mean chmod 664?