DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th April 2009
Nk2Network Nk2Network is offline
Port Guard
 
Join Date: Jan 2009
Posts: 43
Default not supported by my php

Hello,

I install apache, myqsl, php5, when I type my site url is index.php I see the page code. In my httpd.conf file I added the extension php

Code:
DirectoryIndex index.html index.htm index.html.var index.php index.php3 index.php4
For changes to be taken into account I restart my apache, I always have the same problem on the line AddType application

Code:
AddType application/x-httpd-php .php
Reply With Quote
  #2   (View Single Post)  
Old 17th April 2009
glenbarber glenbarber is offline
Real Name: Glen Barber
/dev/urandom
 
Join Date: Nov 2008
Location: Philadelphia, PA, USA
Posts: 10
Default

Do you have the php module loaded in httpd.conf?
Reply With Quote
  #3   (View Single Post)  
Old 18th April 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

N2:

For your convenience, and, for the very last time, I will assist you by telling you what you have already seen, and either did not understand or chose to ignore. This is at least the fifth time, and, that is more than enough, for me. Those who are unable to read and understand messages from the OS should not try to use the OS. I recommend you pick an OS, any OS, that has native language support for administration and operation. OpenBSD is probably not the OS for you.

----------

When you installed php5-core, you received the following output on your console. I have reproduced that information, and highlighted the critical section in red. Please, pay close attention to the red content.
Code:
$ pkg_info -M php5-core
Information for ftp://rt.fm//pub/OpenBSD/snapshots/packages/i386/php5-core-5.2.9p0.tgz

Install notice:
To enable the php5 module please create a symbolic
link from /var/www/conf/modules.sample/php5.conf
to /var/www/conf/modules/php5.conf.

ln -s /var/www/conf/modules.sample/php5.conf \
    /var/www/conf/modules

The recommended php configuration has been installed
to /var/www/conf/php.ini.

Don't forget that the default OpenBSD httpd is chrooted
into /var/www by default, so you may need to create support
directories such as /var/www/tmp for PHP to work correctly.


$
If you are using the apache-httpd package, rather than the built-in apache, you will need to adjust your ln(1) command appropriately.

Last edited by jggimi; 18th April 2009 at 02:38 AM.
Reply With Quote
  #4   (View Single Post)  
Old 18th April 2009
Nk2Network Nk2Network is offline
Port Guard
 
Join Date: Jan 2009
Posts: 43
Default

Hello,

Before posting my question I am going to see the documentation for installation and configuration of php, the complete list of commands you have already passed I typed the command list .I managed to solve my problem, the problem is not the configuration of php
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are these USB wireless adapters supported in OpenBSD? guitarscn OpenBSD General 4 7th April 2009 01:29 AM
mount_nullfs: Operation not supported by device carpman FreeBSD General 1 19th February 2009 05:31 PM
FreeBSD supported branches update corey_james FreeBSD Security 0 3rd June 2008 03:55 AM


All times are GMT. The time now is 10:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick