Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Solaris 10 and the default Apache install

109 views
Skip to first unread message

Gary Brett

unread,
Sep 13, 2006, 6:48:39 PM9/13/06
to
Hi there, I know Solaris 10 comes with apache and apache2 already built and
installed, but im looking to run a PHP based site on my box and when
pointing to a php page it just prints the code to the screen ...Ive
installed PHP5 and have also restarted apache after php installation


I was just wondering if I need to uninstall the apache intall and start from
scratch or is there something I can do to get my PHP site up and running
with the current setup

Any pointers would be great

Cheers
Gary

toby

unread,
Sep 13, 2006, 9:19:32 PM9/13/06
to

Don't forget the following needs to be added to your /etc/httpd.conf:

LoadModule php5_module libexec/libphp5.so
AddType application/x-httpd-php .php .phtml

and you may want something like
DirectoryIndex index.html index.html.var index.php

Sharif Rizal helpfully posted this link in another recent thread,
http://www.sun.com/bigadmin/content/submitted/samp.html

>
> Cheers
> Gary

Gary Brett

unread,
Sep 15, 2006, 5:11:35 PM9/15/06
to
Thanks but ive been trying to get this to work for ages now and id prefer to
completely uninstall apache and apache2 from my solaris 10 box and start
from scratch with source code ....

If i just remove the following packages

system SUNWaclg Apache Common Logging
system SUNWapch2d Apache Web Server V2
Documentation
system SUNWapch2r Apache Web Server V2 (root)
system SUNWapch2u Apache Web Server V2 (usr)
system SUNWapchd Apache Web Server Documentation
system SUNWapchr Apache Web Server (root)
system SUNWapchu Apache Web Server (usr)


Will this be everything ???? and more importantly , will i successfully be
able to install from source again ?

one more question ....if i were to opt for PHP 5, would I have to install
Apache2 or can i stick with Apache1.3

Thanks for the help


<DIV>&quot;toby&quot; &lt;to...@telegraphics.com.au&gt; wrote in message
news:1158196772.8...@e63g2000cwd.googlegroups.com...</DIV>>

toby

unread,
Sep 15, 2006, 7:30:29 PM9/15/06
to

Gary Brett wrote:
> Thanks but ive been trying to get this to work for ages now

The combination of bundled Apache2 and from-source PHP does work --
that's what I'm using. If I'd realised there was a bundled PHP earlier
I'd probably have used that too.

> and id prefer to
> completely uninstall apache and apache2 from my solaris 10 box and start
> from scratch with source code ....
>
> If i just remove the following packages
>
> system SUNWaclg Apache Common Logging
> system SUNWapch2d Apache Web Server V2
> Documentation
> system SUNWapch2r Apache Web Server V2 (root)
> system SUNWapch2u Apache Web Server V2 (usr)
> system SUNWapchd Apache Web Server Documentation
> system SUNWapchr Apache Web Server (root)
> system SUNWapchu Apache Web Server (usr)
>
>
> Will this be everything ????

Yes.

> and more importantly , will i successfully be
> able to install from source again ?

Definitely.

>
> one more question ....if i were to opt for PHP 5, would I have to install
> Apache2 or can i stick with Apache1.3

I'd use Apache2 in any circumstance.

0 new messages