![]() |
|
|||||||
| OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Hey Everybody,
Here is my current setup: OpenBSD 4.4 Apache 1.3 running outside chroot environment PHP 5.2.6 installed from package, performed symlink, php5.conf is in the /var/www/conf/modules/ directory. For some reason apache is not loading the module. When I access my phptest.php file which contains the phpinfo() function it shows up as a blank screen, but when I view source I see the PHP code. When I run apachectl configtest, it shows that it's loading it and there are no syntax errors. I am at a loss since this is the first time working with php5 for me, I'm finally upgrading from php 4. Any help here would be appreciated. |
|
||||
|
By default, the AddType for filetypes .php is commented out in /var/www/conf/httpd.conf.
Edit the file. Search for "php". Uncomment the line. Restart apache.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Hey There,
Thanks for the response. I'm sorry I didn't mention that I already had done that. It was late when I posted. I did remove the comment before: AddType application/x-httpd-php .php And restarted using apachectl stop and apachectl start. Still not working.. Any other suggestions? Thanks |
|
||||
|
I don't think apachectl should be used for start; disabling chroot is done by using httpd -u, see the /etc/rc script.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Chroot is disabled by using the -U flag within the /etc/rc.conf file. Should I be using the httpd command to stop and start the server?
|
|
||||
|
apachectl stop
httpd -u
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Hey,
Thanks for the responses. Still having trouble after restarting apache using the -u option. When I load the page in the browser php is not being processed. Any other ideas? |
|
||||
|
Prove to yourself that you have the correct symbolic link to the php5.conf module.
(Hint: ls -l /var/www/conf/modules) Prove to yourself that you are using /var/www/conf/httpd.conf for your configuration, and not some other configuration file (e.g.: httpd -f). Double check the AddType directive and the php5.conf module are correct in httpd.conf. ---- That's all I can think of.
__________________
OpenBSD LiveCDs/LiveDVDs |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Working with CVS? | Zmyrgel | OpenBSD General | 15 | 6th October 2009 01:32 PM |
| Apache Randomly Stops Working | plexter | OpenBSD Packages and Ports | 21 | 4th May 2009 04:41 PM |
| Upgrade Apache 1.3 mod_ssl to Apache 2.2 | beandip | FreeBSD Ports and Packages | 11 | 26th March 2009 08:12 PM |
| x11 forwarding over ssh not working | kasse | OpenBSD General | 14 | 23rd December 2008 01:21 PM |
| Apache with php stopped working after upgrade | map7 | FreeBSD Ports and Packages | 7 | 7th December 2008 09:39 PM |