|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
openbsd 5.3 - php not working
Hello,
I can't make php works on an openbsd5.3 box. The php files are displayed as plain text files, or even worst, I'm asked if I want to download them, it seems that the server not parse at all the php code. After installing the OS, I followed a tutorial for installing the MySQL and PHP support for it, installing the latest packages available (pkg_add). I can't post the link to it since this is my first post here . Everything installed with no problems, I did created the suggested soft links. I started Apache server and works. When I wanted to test php with the classic test file: <?php phpinfo(); ?> I get the file content displayed as plaint text file. In httpd.conf I did the following changes: - uncomment: #AddType application/x-httpd-php .php - add index.php to DirectoryIndex DirectoryIndex index.html index.php I copied the development php-5.3.ini file to /var/www/conf/php.ini Running in term Code:
php -v Code:
php -v Code:
PHP 5.3.21 with Suhosin-Patch (cli) (built: Feb 25 2013 20:15:10) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH Thanks for anything.. |
|
|||
You were right!
In that listing was: ln -sf /var/www/conf/modules.sample/php-5.3.conf /var/www/conf/modules/php.conf I did that and now it works. Thanks a lot for your help. |
|
||||
Quote:
The only way to install a package is to absolutely follow the installation process provided by OpenBSD. OpenBSD's 3 main rules :
After that, and only after, use the net. |
Tags |
apache, openbsd, php |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
My keyboard is not working properly anymore in OpenBSD | newbsdied | OpenBSD General | 2 | 4th November 2010 11:20 PM |
Mouse:X (not-working) and tty-Console (working), in 8.0 | ykt | FreeBSD General | 1 | 22nd December 2009 12:26 PM |
[ OpenBSD 4.5 ] apm -C not working | wraith0x2b | OpenBSD Installation and Upgrading | 17 | 6th May 2009 09:03 AM |
Working around cheap SOHO routers under OpenBSD | BSDfan666 | Guides | 1 | 23rd November 2008 07:44 PM |
Working Configuration for Openbsd 4.0 - Postfix - SASL - TLS | roundkat | Guides | 0 | 4th May 2008 05:38 PM |