LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-26-2007, 06:42 AM   #16
nikopp
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0

Unfortunately, that's not the solution to my problem, but thanks for the answer.
 
Old 04-26-2007, 08:13 AM   #17
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
is the php header on the page correct ?
 
Old 04-26-2007, 08:27 AM   #18
nikopp
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
I'm not sure what you mean by "php header".

Maybe this one from the phpmyadmin index.php:

PHP Code:
header('Content-Type: text/html; charset=' $GLOBALS['charset']); 
But it also doesn't work if I change this to:

PHP Code:
header('Content-Type: text/html"); 
 
Old 04-26-2007, 01:58 PM   #19
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
You could install this
 
Old 04-26-2007, 02:00 PM   #20
flashingcurser
Member
 
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Rep: Reputation: 32
Oddly I had a similar problem upgrading. I am currently using php4, when upgrading sarg to etch, apt decided to install the apache2 module for php5. I simply apt'ed the right one and it behaved nicely after that. This was on a Alpha box if that makes a difference.
 
Old 04-26-2007, 02:11 PM   #21
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Could it be a problem on ubuntu?
Could it be that you should open a new thread in ubuntu ?
 
Old 04-27-2007, 03:58 AM   #22
nikopp
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by flashingcurser
I simply apt'ed the right one and it behaved nicely after that.
What do you mean by "right one"? php4 again?
 
Old 04-27-2007, 04:01 AM   #23
nikopp
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by nx5000
Could it be that you should open a new thread in ubuntu ?
In the meantime I did so. But I haven't gotten a helpful answer yet, so I still appreciate your help. :-)
 
Old 05-02-2007, 12:41 PM   #24
nikopp
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
Another removal/installation of the phpmyadmin-package did the job. Furthermore I remove the directory /usr/share/phpmyadmin/ by hand in between. Maybe that was the point. Anyway: Thank's for your help.
 
Old 08-08-2007, 09:15 PM   #25
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Rep: Reputation: 30
I guess I'm late, but some people may have such problem like I had before.

in order to run apache2 you should use the following command:

Code:
apache2 -k start|restart|stop
In Debian you can't run it just like on ubuntu by issuing /etc/init.d/apache2 start.

For some reason it s different in apach2 for Debian.

They also have changed httpd.conf name to apache2.conf

If you have apache2.conf, you should comment the entry for httpd.conf if it exists.

Last edited by mohtasham1983; 08-08-2007 at 09:16 PM.
 
Old 01-07-2008, 09:39 PM   #26
rem1986
LQ Newbie
 
Registered: Apr 2004
Location: Cuba
Distribution: Debian Sarge 3.1
Posts: 23

Rep: Reputation: 15
Quote:
Originally Posted by mohtasham1983 View Post
in order to run apache2 you should use the following command:

Code:
apache2 -k start|restart|stop
In Debian you can't run it just like on ubuntu by issuing /etc/init.d/apache2 start.

For some reason it s different in apach2 for Debian.
I don't think so. I've always started it this way. I'm having that problem now that I've bootstraped a new system. I must be missing a package of some sort that debootstrap didn't install
 
Old 01-24-2008, 09:33 PM   #27
CJ Chitwood
Member
 
Registered: Dec 2006
Location: Northern Half of Florida
Distribution: PCLinuxOS on one home machine, Debian Buster on the other. I forget what's on the laptops.
Posts: 146

Rep: Reputation: 28
Farslayer: I know I'm way late on the thread, but thank you for post #13! I have been browsing the web for 30 minutes looking for exactly this:

Quote:
Underneath this line type: LoadModule php5_module /usr/lib/apache2/libphp5.so
That's the one thing that was not mentioned on the dozen or so sites I went to. After recently getting Apache working (again) on my machine, I didn't realize my modules got fouled in the reconfig until my wife tried getting to her webmail account.

Thanks again!

CJ
 
Old 01-24-2008, 09:48 PM   #28
CJ Chitwood
Member
 
Registered: Dec 2006
Location: Northern Half of Florida
Distribution: PCLinuxOS on one home machine, Debian Buster on the other. I forget what's on the laptops.
Posts: 146

Rep: Reputation: 28
Quote:
Originally Posted by mohtasham1983 View Post
I guess I'm late, but some people may have such problem like I had before.

in order to run apache2 you should use the following command:

Code:
apache2 -k start|restart|stop
In Debian you can't run it just like on ubuntu by issuing /etc/init.d/apache2 start.

For some reason it s different in apach2 for Debian.

They also have changed httpd.conf name to apache2.conf

If you have apache2.conf, you should comment the entry for httpd.conf if it exists.

Go back to Post #6 and reread that...

You have to edit a variable in the file /etc/default/apache2.
Code:
{YOU ARE ROOT}
[myhostname][pts/1]
[root][/etc/apache2]# cat /etc/default/apache2 
# 0 = start on boot; 1 = don't start on boot
NO_START=0

{YOU ARE ROOT}
[myhostname][pts/1]
[root][/etc/apache2]#
This file's comment is misleading -- it says "on boot" when it means "when invoked by /etc/init.d/apache2 script" (which usually is on bootup/shutdown). When NO_START=1, Apache will not start unless manually invoked via apache2ctl. No amount of /etc/init/apache2 start | restart will touch it until "NO_START=0", like mine.

Also, I disagree: You should not comment the entry for httpd.conf. I'm no expert, but I gather that the reason for its being there is to make it easier to enact user (err, administrator -- as opposed to Apache developer) modifications to the way Apache runs. The apache2.conf file is big and heavily commented, and there's nothing wrong with editing it when necessary, but when all you need to do is one quick little thing like add PHP support (perhaps temporarily, to test, see if it will work), it's a lot easier to do it in a smaller file (e.g. httpd.conf) where it's much easier to find your modifications and distinguish them from the configurations provided by the package maintainers.

I can see your viewpoint, however, and I also agree with it -- sometimes it's easier just to edit one great big huge file, so that you can keep everything together and you know where it all is (e.g., did I make the PHP enablement in apache2.conf, httpd.conf, or in one of my (God knows how many) sites-available/* files?)... However, for me, that's like keeping all of my clothes in one great big drawer in my dresser; No matter how well I fold them (commenting, dividing a file) I still wind up with a bunch of stuff in one location that's hard to go through to get what I want out of it. I see apache2.conf as being intended for overall webserver config, httpd.conf as being for this-system's-administrator's-changes, and the various files in sites-available as being for website-specific alterations. If you want per-directory stuff, keep it in .htaccess.




Anywhoo, hope this helps. Cheers!
 
Old 02-24-2011, 06:03 AM   #29
s2Krish
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: Disabled
Apache2 in Debian 2.6. after upgrade

I just upgraded debian using dist-upgrade. Then Apache is not working. Any idea?

I tried $/etc/init.d/apache start or $apache2ctl start
It just say starting.

Then, I tried $ps -aux | grep httpd

shows nothing. So apache is not running
 
  


Reply

Tags
apache2, debian, etch


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problems getting intel bg2200 working on debian etch precision Linux - Wireless Networking 2 04-06-2007 06:08 PM
Debian Etch, ATI, Direct Rendering, WORKING juvestar15 Debian 1 03-29-2007 09:57 AM
Can't get microphone working in Debian Etch (testing) Winter Knight Linux - General 1 03-01-2007 07:14 AM
Help requested getting two Dell LCD monitors working with Debian Etch running KDE Phoenix_Zero Linux - Software 12 02-10-2007 12:24 AM
debian, apache2, ipcop and vhosts not working TheSpork Linux - Networking 1 06-04-2005 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:30 AM.

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