LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-03-2004, 10:49 AM   #1
mrosati
Member
 
Registered: Nov 2003
Location: Mestre - ITALY
Distribution: Debian sarge
Posts: 132

Rep: Reputation: 15
apache2ctl start <--- error


hi.
i have downloaded apache with gentoo emerge, when i start it i get this error:

bash-2.05b# apache2ctl start
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

what could be the problem?

thanks matteo
 
Old 06-03-2004, 10:57 AM   #2
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
What you need to do is find your apache.conf file and uncomment or add the line (use the command (as root) 'find / -name httpd.conf 2>/dev/null' )

ServerName 'insert your server name here'

so if your server is called bob, it would read

ServerName bob
 
Old 06-03-2004, 11:51 AM   #3
mrosati
Member
 
Registered: Nov 2003
Location: Mestre - ITALY
Distribution: Debian sarge
Posts: 132

Original Poster
Rep: Reputation: 15
ok i have done it and i have also set my hostname:

-------------------------------------------------------
in /etc/hosts:
27.0.0.1 mymachine.example.net hostname
-------------------------------------------------------
in /etc/hostname:
mymachine.example.net
-------------------------------------------------------
in /etc/apache2/conf/apache2.conf
ServerName mymachine.example.net
-------------------------------------------------------

is that correct?
now apache starts without problems (apache2ctl start) but when i attempt to connect to it (i type in a browser for example mozilla, "http://localhost:80") i still get an error (localhost could not be found)...

what can i do?
thanks
 
Old 06-03-2004, 11:55 AM   #4
mrosati
Member
 
Registered: Nov 2003
Location: Mestre - ITALY
Distribution: Debian sarge
Posts: 132

Original Poster
Rep: Reputation: 15
sorry, that was probably an error caused by my browser.
using opera enerything works fine.

thank for your help!!

Matteo
 
Old 06-03-2004, 12:02 PM   #5
mrosati
Member
 
Registered: Nov 2003
Location: Mestre - ITALY
Distribution: Debian sarge
Posts: 132

Original Poster
Rep: Reputation: 15
uhmmmmmmm.... there is still an error....
i can see normal pages... but when i try to open php pages i only see the text that is contained into the page, for example if i try to open this page:

<?php
phpinfo();
?>

the browser shows exactly

<?php
phpinfo();
?>

it seems that it does not recognize php code... is there a file or a config utility where i can enable it?
 
Old 06-03-2004, 12:18 PM   #6
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Rep: Reputation: 31
Maybe u need to load a module (for apache) for php
 
Old 06-03-2004, 12:49 PM   #7
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
mrosati

First off I'm using Redhat so not sure if it's the same

Check if you have a file '/etc/httpd/conf.d/php.conf'

Open '/etc/httpd/conf/httpd.conf'' with your chosen text editor, make sure this is uncommented

# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

If the answer to all the above is yes PHP should be good to go

Pete
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting MySQL OLD Error : imeout error occurred trying to start MySQL Daemon Fr33B5D Linux - Software 9 10-28-2006 06:23 AM
Linux Error on start BlazeME Linux - General 5 03-05-2005 12:28 PM
KDE Start Error Wolf-67 Linux - Newbie 3 10-02-2004 10:50 PM
How do I access apache2ctl? mfwit Linux - Software 2 05-01-2004 11:55 AM
Firebird doesn't start up - ERROR froedi Linux - Software 6 11-19-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration