10/27/2002 21:46, "Acm Acm" <[EMAIL PROTECTED]> wrote:

>Greetings;
>
>Well over the course of the last 10 hours or so since I got on this list I've 
>fixed part of my problems.  SSH is working along with mysql (I deleted the one 
>I downloaded and used apt-get and got it 
that way), it runs, it does not start automatically but I'll work on that 
later; its there at least.
>
>Now my problem is I have apache running, I removed it via apt-get and then put 
>it back in (went and deleted all the directories it said had files in thtem to 
>get rid of any conf files it left 
behind) and reinstalled it; in the same apt-get command I also attempted to do 
php4 and php4-mysql (going off memory on that one so dont' shoot me if its 
wrong).  Well apache got installed and is 
running, the php looks installed along with its support for mysql; BUT apt-get 
IS NOT modifying the httpd.conf file to load php.  Reading the install manual 
for php  I find I need to uncomment the 
line to load the module, a given, and also to uncomment the AddType line in my 
apache.conf fiel (I'm using httpd.conf).

Since apt-get supports automatic dependency handling, you really just needed to 
apt-get php4-mysql. That would have caused apache to be installed and 
configured for php4. Not sure why doing it your 
way breaks it.

>So I do, and then I restart apache with "apachectl restart" and my tail on the 
>error log gives me the following:
>[Sun Oct 27 19:37:07 2002] [notice] SIGHUP received.  Attempting to restart
>[Sun Oct 27 19:37:08 2002] [error] (2)No such file or directory: 
>mod_mime_magic: can't read magic file /etc/apache/share/magic
>[Sun Oct 27 19:37:08 2002] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux 
>configured -- resuming normal operations
>[Sun Oct 27 19:37:08 2002] [notice] suEXEC mechanism enabled (wrapper: 
>/usr/lib/apache/suexec)
>[Sun Oct 27 19:37:08 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
>[Sun Oct 27 19:40:54 2002] [notice] SIGHUP received.  Attempting to restart
>PHP Fatal error:  Unable to start session mm module in Unknown on line 0
>
>
>so I go and recomment the lines I had uncommented run the command again and I 
>get the following:
>[Sun Oct 27 19:43:01 2002] [warn] pid file /var/run/apache.pid overwritten -- 
>Unclean shutdown of previous Apache run?
>[Sun Oct 27 19:43:01 2002] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux 
>configured -- resuming normal operations
>[Sun Oct 27 19:43:01 2002] [notice] suEXEC mechanism enabled (wrapper: 
>/usr/lib/apache/suexec)
>[Sun Oct 27 19:43:01 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
>
>
>
>Searching google, I find lots of people with this problem, but I can't find 
>solutions about what to do. You can find a copy of my httpd.conf file at: 
>http://acm.cs.uop.edu/httpd.txt
>
>So now I'm very confused what to do next.

What exactly do you wish to do? Get php working with apache?

Uncomment the following lines in your httpd.conf:

    LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

and let us know what happens.

--
John Hebert

 



Reply via email to