/    Sign up×
Community /Pin to ProfileBookmark

Problem to install php in Linux?

Hello Everyone,
I am having problem installing php in RHEL 5. I am using apache 2.0.58 and php 5.2.6. Installation was successful but when starting apache it dispalys error as :” httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName “. The apache start anyway and displays welcome page whereas when I want to access phpinfo.php file the page cannot be displayed. I think I have configure both php.ini and httpd.conf .The parameter of both files are attached with this thread with extension changed to txt file.

Can anyone help me to solve this problem? any suggestion…

Thank You.

Ritesh

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@MindzaiJan 30.2009 — You probably need to set the domain/port used in httpd.conf (or apache2.conf):

<i>
</i>ServerName www.yourdomain.com:80


If this is just a local test server, open up a shell and type:

hostname

and set ServerName to whatever is displayed. Restart Apache and you should be sorted.
×

Success!

Help @ritesh163 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...