Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
04-26-2007, 06:42 AM
|
#16
|
LQ Newbie
Registered: Apr 2007
Posts: 7
Rep:
|
Unfortunately, that's not the solution to my problem, but thanks for the answer.
|
|
|
04-26-2007, 08:13 AM
|
#17
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
is the php header on the page correct ?
|
|
|
04-26-2007, 08:27 AM
|
#18
|
LQ Newbie
Registered: Apr 2007
Posts: 7
Rep:
|
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");
|
|
|
04-26-2007, 01:58 PM
|
#19
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
You could install this
|
|
|
04-26-2007, 02:00 PM
|
#20
|
Member
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259
Rep:
|
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.
|
|
|
04-26-2007, 02:11 PM
|
#21
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
Could it be a problem on ubuntu?
Could it be that you should open a new thread in ubuntu ?
|
|
|
04-27-2007, 03:58 AM
|
#22
|
LQ Newbie
Registered: Apr 2007
Posts: 7
Rep:
|
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?
|
|
|
04-27-2007, 04:01 AM
|
#23
|
LQ Newbie
Registered: Apr 2007
Posts: 7
Rep:
|
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. :-)
|
|
|
05-02-2007, 12:41 PM
|
#24
|
LQ Newbie
Registered: Apr 2007
Posts: 7
Rep:
|
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.
|
|
|
08-08-2007, 09:15 PM
|
#25
|
Member
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Rep:
|
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.
|
|
|
01-07-2008, 09:39 PM
|
#26
|
LQ Newbie
Registered: Apr 2004
Location: Cuba
Distribution: Debian Sarge 3.1
Posts: 23
Rep:
|
Quote:
Originally Posted by mohtasham1983
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
|
|
|
01-24-2008, 09:33 PM
|
#27
|
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:
|
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
|
|
|
01-24-2008, 09:48 PM
|
#28
|
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:
|
Quote:
Originally Posted by mohtasham1983
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!
|
|
|
02-24-2011, 06:03 AM
|
#29
|
LQ Newbie
Registered: Feb 2011
Posts: 1
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|