Results 1 to 8 of 8

Thread: How to start apache2

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Posts
    9

    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

  2. #2
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Sunnyvale,CA,USA
    Posts
    118
    Pls try http://127.0.0.1 and see if that works

  3. #3
    Junior Member registered user
    Join Date
    Apr 2006
    Location
    victoria
    Posts
    14

    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

  4. #4
    Junior Member
    Join Date
    Apr 2007
    Posts
    9
    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.

  5. #5
    Junior Member
    Join Date
    Apr 2007
    Posts
    9

    Re: Problem starting apache

    Quote Originally Posted by brass
    I believe the configuration file is: apache2.conf
    Do you mean "/etc/apache2/apache2.conf" ?

  6. #6
    Junior Member registered user
    Join Date
    Apr 2006
    Location
    victoria
    Posts
    14

    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 ?

  7. #7
    Junior Member registered user
    Join Date
    Apr 2006
    Location
    victoria
    Posts
    14

    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.

  8. #8
    Junior Member
    Join Date
    Apr 2007
    Posts
    9
    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

  1. Startup: ssh mysql and apache2 not loaded
    By seballa in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 06-08-2009, 04:47 PM
  2. Apache2 only answering to https requests
    By alek6cu in forum General Support
    Replies: 4
    Last Post: 05-08-2007, 08:20 PM
  3. apache2 not working no index.html
    By babelbrennt in forum Customising & Remastering
    Replies: 7
    Last Post: 12-08-2006, 03:35 AM
  4. kpx 5 - apache2 home dir killed my old apps
    By fordfasterr in forum General Support
    Replies: 0
    Last Post: 11-28-2006, 03:09 PM
  5. apache2 issues with pictures and stylesheets
    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
  •  


RAM-HOL-SAM60CPU RAM USB-C Powered Dock for Samsung Tab Active5 - 3 - 2 picture

RAM-HOL-SAM60CPU RAM USB-C Powered Dock for Samsung Tab Active5 - 3 - 2

$81.99



Samsung 2.5

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot

$60.00



New Samsung 512GB FIT Plus USB 3.2 Gen 1 Type-A Flash Drive MUF-512AB/AM NEW picture

New Samsung 512GB FIT Plus USB 3.2 Gen 1 Type-A Flash Drive MUF-512AB/AM NEW

$120.00



NEW Samsung NoteBook NT930QCG touch LCD Full Screen Assembly Blue picture

NEW Samsung NoteBook NT930QCG touch LCD Full Screen Assembly Blue

$225.77



RAM-HOL-SAM52CPU RAM USB-C Powered Dock Samsung Tab Active4 Pro & Tab Active Pro picture

RAM-HOL-SAM52CPU RAM USB-C Powered Dock Samsung Tab Active4 Pro & Tab Active Pro

$81.99



RAM-GDS-SKIN-SAM54-NG-1 RAM Mounts IntelliSkin® Next Gen for Samsung Tab Active4 picture

RAM-GDS-SKIN-SAM54-NG-1 RAM Mounts IntelliSkin® Next Gen for Samsung Tab Active4

$93.99



RAM-GDS-DOCK-SAM88CPU RAM GDS® Tough-Dock™ for Samsung Tab A9+ picture

RAM-GDS-DOCK-SAM88CPU RAM GDS® Tough-Dock™ for Samsung Tab A9+

$174.99



Samsung SCXSTP000, SCX-STP000 (Swingline Staple Cartridge - 3 Refills) picture

Samsung SCXSTP000, SCX-STP000 (Swingline Staple Cartridge - 3 Refills)

$57.99



Samsung Galaxy Tab 14.6 in Wi-Fi Tablet 256MB Black w/ Keyboard Case Bundle picture

Samsung Galaxy Tab 14.6 in Wi-Fi Tablet 256MB Black w/ Keyboard Case Bundle

$700.00



Lot of 50 Samsung PC4 32GB 2400T-R Server RAM Modules picture

Lot of 50 Samsung PC4 32GB 2400T-R Server RAM Modules

$8499.99