Re: [PHP-INSTALL] Install Problems on Fedora 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Nichel wrote:

Mark Sargent wrote:

John Nichel wrote:

Mark Sargent wrote:
<snip>

http://www.php.net/manual/en/install.unix.php

it has 2 examples,

4-1 and 4-2. Little confused with what shared and static modules are and
which 1 pertains to me. I was wanting to get php running to allow base
to show results of snort logging in mysql. Snort/Mysql/Base etc are
installed fine, just php is the last hurdle. Again, sorry. Cheers.




When you installed php, did you install it the same time as Apache (--with-apache=../apache-1.3.x) or was Apache already installed (--with-apxs=/path/to/apxs)?

Hi All,

okay, I need to ask this "dumb"(?) question. What is the difference
between httpd, already installed and Apache..? I thought they were the
same. If they are, and I'm using the default version, from install, I
just add those lines to the .conf file, yes..? Again, I do truly
apologize for what may seem mundane questions. Cheers.


As far as the functionality of PHP, there really is no difference in the installs. A big advantage to installing PHP as a DSO (--with-apxs) vs. a static module (--with-apache) is when it comes time to re-install PHP (because you need to add a third party library to it, a new version is out, etc.). As a static module, you would have to re-configure/compile/install both PHP and Apache, whereas a DSO, you only need to redo PHP.

In both cases, the solution to your problem is probably adding this to your Apache's config file (httpd.conf), and restarting Apache...

AddType application/x-httpd-php .php

Hi All,

thanx, John. I added that via vi and restarted with,
/etc/rc.d/init.d/httpd restart
but, still get the core php code showing in the browser when going to localhost/index.php. Should I just remove both httpd/php and reinstall both from source with support..? Cheers.


P.S. This is not a production machine. I'm just learning all of it and then when confident, will set up a real system. Cheers, again.

Mark Sargent

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux