On Tue, 2004-10-26 at 20:35, Chuck Ouellette wrote: > Hey Chris, > Thanks for the input, Yes I have the mod.so in the list here is the > complete list: > > #> httpd -l > Compiled-in modules: > http_core.c > mod_so.c > mod_perl.c > suexec: enabled; valid wrapper /usr/apache/bin/suexec > > here is the config command I used to compile Apache (after installing > PHP) > > CFLAGS="-DEAPI" \ > SSL_BASE="SYSTEM" \ > ./configure \ > "--prefix=/usr/apache" \ > "--with-layout=Solaris" \ > "--enable-module=ssl" \ > "--enable-shared=ssl" \ > "--disable-rule=SSL_COMPAT" \ > "--enable-rule=SSL_SDBM" \ > "--enable-rule=SSL_EXPERIMENTAL" \ > "--enable-rule=SSL_VENDOR" \ > "--enable-rule=SHARED_CORE" \ > "--enable-suexec" \ > "--suexec-caller=nobody" \ > "--enable-module=so" \ > "--enable-module=rewrite" \ > "--enable-shared=rewrite" \ > "--enable-module=most" \ > "--enable-shared=max" \ > "--with-perl=/usr/bin/perl" \ > "--activate-module=src/modules/perl/libperl.a" \ > "--enable-module=perl" > > I did as you suggested and changed the file name to an htm now it just > comes up as a blank page. Below is the code I am using as a test PHP > page: > > <html> > <head> > <title> PHP Test</title> > </head> > <body> > <?php echo "<p>Hello World</p>"; ?> > <br> > <br> > <?phpinfo()?> > </body> > </html> > > Like I said, all my sites are working as far as the "html" pages are > concerned and I can run these files from the command line.... any other > ideas? Is there something in the php.ini file that should be changed > all I did was copy over the php.ini-default to the php.ini file the gist > of what I read I really didn't need to change things in it to make php > work. > > Thanks, > Chuck > > -----Original Message----- > From: Chris Hewitt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 26, 2004 1:08 PM > To: 'PHP Install List' > Subject: Re: [PHP-INSTALL] Install problem on Sun Solaris > > On Tue, 2004-10-26 at 16:35, Chuck Ouellette wrote: > > > The issue I have is it seems to work from the command line but not the > > browser I get a 403 Forbidden > > > > You don't have permission to access /hello.php on this server. > > > > Apache/1.3.29 Server at wncghost.wncg.net Port 80 > > > > Charles, > > Checking the simple things first, it sounds as though your webserver > user does not have permissions to access phpinfo.php. Try renaming it to > phpinfo.html (so PHP is taken out of the equation) and see if the > webserver will show it. > > I don't use PHP with Oracle but I don't think you need the --with-oracle > as this is really for Oracle 7. > > Another point. As you compiled PHP --with-apxs then it will be as an > Apache httpd module, so has Apache httpd been compiled with mod_so? > (httpd -l from the command line as root will tell you). > > Just checking, you did restart the webserver? > > HTH > Chris
Chuck, Timezones and work mean I'm late in responding. If you get a blank page then there could be a PHP error, thus it is possible to get more information. Normally the default is not to show errors on the web page, but in a file. You can turn it on (recommend turning it off for production). In php.ini set display_errors = On and restart the webserver. For Apache httpd 1.3.x you need: LoadModule php4_module modules/libphp4.so AddModule php4.c AddType application/x-httpd-php .php (change the modules/libphp4.so line to point to where you have the php compiled DSO module for httpd). AddHandler I've not seen used for PHP in httpd 1.3.x, more in httpd 2.x (whether it works in 1.3.x I've not tried). With your test file (I assume you have the .php extension?), if you get a blank page it is probably an error that you may now be able to see on the page (because you should still see the "PHP Test"). Also, do a view source and see if it shows the source of the file. I'm only around for a couple of hours more today, but I'll monitor the list frequently during that time. Let us all know how you get on please. Regards Chris