Linux - ServerThis 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.
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.
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.