Solved

Install PHP on RHEL 4 AS or Fedora 5

Posted on 2006-11-16
5
304 Views
Last Modified: 2013-12-15
I am trying to setup PHP on either OS, i assume the setup is the same. During the install of the OS i select to install PHP, Apache, MYSQL, etc. After the install apache is working fine. If i run a rpm -q php it says its installed but no php pages load. I have seen that some changes need to be made to the httpd.conf file and the php.ini file but nothing is concrete about what to do. Can someone please tell me what changes need to be made to get PHP working?
0
Comment
Question by:akalbfell
  • 2
  • 2
5 Comments
 
LVL 24

Expert Comment

by:slyong
ID: 17961906
On Fedora Core 5, can you provide the output of:

# rpm -qa *php*
# ls /etc/httpd/conf.d/
0
 
LVL 14

Accepted Solution

by:
ygoutham earned 250 total points
ID: 17962802
http://www.experts-exchange.com/Operating_Systems/Linux/Q_22056789.html

FC6 and FC5 are very close.  take a look at the above post.
0
 
LVL 8

Author Comment

by:akalbfell
ID: 17970314
[user@localhost ~]$ rpm -qa php
php-5.1.6-3


[user@localhost ~]$ ls /etc/httpd/conf.d/
auth_kerb.conf   mailman.conf  proxy_ajp.conf  squirrelmail.conf
auth_mysql.conf  manual.conf   python.conf     ssl.conf
auth_pgsql.conf  perl.conf     README          webalizer.conf
authz_ldap.conf  php.conf      squid.conf      welcome.conf
0
 
LVL 24

Assisted Solution

by:slyong
slyong earned 250 total points
ID: 17970423
hi,
php is installed on your system.  if you put this a file (phpinfo.php) in /var/www/html directory with the content:

<?php
phpinfo();
?>

What is displayed? if you go to http://yourserver.com/phpinfo.php

0
 
LVL 14

Expert Comment

by:ygoutham
ID: 17970510
create a simple file called test.php and tye in the following

//****************************

<?php
echo "Hello World !!!\n";

?>
//****************************

when you run the command from  commandline

user@localhost$ php test.php
Hello World !!!

and once you see that it runs successfully from commandline, you know php is  installed.  copy paste the same into your

/var/www/html

and try accessing what slyong has said or http://yourserver.com/test.php

you should see a white page with "hello world !!!"

can you post your /etc/httpd/conf.d/php.conf file also to see if you have all the lines in that or not???

goutham
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reset Root Password on CentOS 6 4 69
How code a 301 redirect for folder files -> 1 file 2 58
windows 7 starter missing password 21 89
Migrating a Linux server to VMware 3 54
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question