-
How to start apache2
Hi everybody.
I've been trying to start apache2 in Knoppix 5.0.1 and keep getting the same error:
Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
After this, when trying to access http://localhost/ firefox gives a blank page and konqueror prints "Connection to host localhost is broken"
Is there some configuration file y need to modify to get it to work? Im using /var/www for server root
I have also noticed that there are several configuration files so i dont know which one to use
Thanks in advance
-
Senior Member
registered user
Pls try http://127.0.0.1 and see if that works
-
Junior Member
registered user
Problem starting apache
Are you using the command: /etc/init.d/apache2 start
to start the web server ?
I believe the configuration file is: apache2.conf
-
Thanks for the response.
- http://127.0.0.1 does exactly the same thing as http://localhost .
- apache2.conf seems configured ok
- To start the server i've tried both "/etc/init.d/apache2 start" and "/etc/init.d/apache2ctl start" , both give the same error message and neither work.
am i putting my php scripts in the wrong place (/var/www)?
is there some script i need to run before atempting to start apache2?
Where is php.ini by the way? Do i need to chagne something there?
It's kind of frustrating, in knoppix 3.6 everything worked just fine without the need for any modifications. The only reason im trying 5.01 is because my site uses a newer version of mysql.
Thanks for your help.
-
Re: Problem starting apache

Originally Posted by
brass
I believe the configuration file is: apache2.conf
Do you mean "/etc/apache2/apache2.conf" ?
-
Junior Member
registered user
apache problem
I do believe /var/www is the Document Root. What about File Permissions ? Have you made
the Scripts in the /var/www accessible ?
-
Junior Member
registered user
apache problem
I believe the php.ini file is in the /etc/php4/apache2 directory.
You might check its settings for: Display Errors, log errors, log error file.
-
The error messages clears if you add the following line to apache2.conf :
ServerName localhost
Now apache2 starts nice and silently. The thing is (and i know how crazy this sounds) the server only answers to https requests so https://localhost works fine (you have to accept all those certificates before it does) but http://localhost doesn't. And even more: in php.ini the line that loads mysql module is commented and with a typo it sez msql.so where it should be mysql.so
I hope this is helpfull to people with the same problem (the https issue makes me wonder though)
Similar Threads
-
By seballa in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 06-08-2009, 04:47 PM
-
By alek6cu in forum General Support
Replies: 4
Last Post: 05-08-2007, 08:20 PM
-
By babelbrennt in forum Customising & Remastering
Replies: 7
Last Post: 12-08-2006, 03:35 AM
-
By fordfasterr in forum General Support
Replies: 0
Last Post: 11-28-2006, 03:09 PM
-
By dkennedy in forum General Support
Replies: 0
Last Post: 11-04-2004, 03:02 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Ubuntu Server 26.04.1 LTS Bootable USB Flash Drive – Latest September 2026
$12.99

Sun Enterprise e450 400mhz cpu(x4), 4gb ram, 9gb HD w/spud most complete on ebay
$500.00

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$115.00

OPNsense Firewall VPN QAT 8-Core Atom C3758 2.20GHz 16GB DDR4 128GB SSD 8xNIC
$175.00

1U Rackmount PC Intel Core i5-2520M 8GB RAM 500GB HDD Ubuntu Linux Server
$109.99

Microsoft SQL Server 2019 Enterprise 40 Core Unlimited CAL Retail License FPP
$299.00

Linux 5.2 The Complete Redhat Operating System Deluxe Secure Server 3 CD Book
$37.49

All New Ubuntu 26.04 LTS Linux Bootable USB Flash Drive
$15.95

SQL Server 2022 Enterprise 96 Core License & DVD Unlimited CALs with CoA
$284.99

Red Hat Enterprise Linux 5 Server DVD English OS Media Kit RHF0382US
$41.30