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 4th June 2011
zeenmc zeenmc is offline
Port Guard
 
Join Date: Jun 2011
Posts: 18
Default Problem whit apache1.3 and php modul

Hi

I am new in Openbsd, I know very well apache and php, I am come form Linux, I use gentoo and debian for servers, any way, I can't config php and apache1.3, I install php5-core from ports, make symb link, and I can't run php on apache, what to do, I don't know

I find some clip on youtube, same story
Hm, I can't post YT url link
Reply With Quote
  #2   (View Single Post)  
Old 5th June 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

  • Is Apache running?
    Code:
    netstat -an -f inet
    Active Internet connections (including servers)
    Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
    tcp          0      0  192.168.222.20.7582    80.255.10.121.80       TIME_WAIT
    tcp          0      0  127.0.0.1.80           127.0.0.1.13804        TIME_WAIT
    tcp          0      0  *.80                   *.*                    LISTEN
    tcp          0      0  *.6000                 *.*                    LISTEN
    tcp          0      0  *.3306                 *.*                    LISTEN
    tcp          0      0  127.0.0.1.587          *.*                    LISTEN
    tcp          0      0  127.0.0.1.25           *.*                    LISTEN
    tcp          0      0  *.515                  *.*                    LISTEN
    tcp          0      0  192.168.222.20.22      *.*                    LISTEN
  • Did you place the php file in the DocumentRoot?
    Code:
    $ grep -C2 DocumentRoot /var/www/conf/httpd.conf
    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    # DocumentRoot "/var/www/htdocs"
    DocumentRoot "/var/www/test"
    Be aware of the fact that on OpenBSD the Apache in base runs chrooted. Please read http://openbsd.org/faq/faq10.html#httpdchroot

BTW If you say it is not working, we believe you. We don't need to see some video for that
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 5th June 2011
zeenmc zeenmc is offline
Port Guard
 
Join Date: Jun 2011
Posts: 18
Default

Thanky you for fast answer, Apache is running, I get apache first page on my localhost, I make symb link, bas I dont know where I put, 1.3 is chroot env,, and php5.ini is copyed to var/www/conf/modules/

hahah, video is tutorial, how to, openbsd apache, and php, When install openbsd apache, and php, we must, make symb link of php5.ini and, i think uncomment, or add php in apache config, but still don't work
Reply With Quote
  #4   (View Single Post)  
Old 5th June 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

You only have to create the symbolic link. The php5-core port/package gives the command to follow: From an older installation that I sometimes use to play with php:

Code:
$ pkg_info -M php5-core

Information for inst:php5-core-5.2.12p1

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.
After having created that symbolic link, placing the following simple php file in the DocumentRoot ( in my case /var/www/test) php just works
PHP Code:
<?php

$message 
"A simple PHP test" ;

echo <<< EOF
<html>
<head>
  <title>PHP test</title>
</head>

<body> 
        <h1>
$message</h1>
        <p>This is is a simple test for PHP</p>

</body>
</html>

EOF;
?>
Does the Apache error log give any clues?

If you are running pf, please make sure the pf.conf does not block port 80.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #5   (View Single Post)  
Old 5th June 2011
zeenmc zeenmc is offline
Port Guard
 
Join Date: Jun 2011
Posts: 18
Default

Uh, now working, heh, I do everything like last time, but now all is ok ))

thx ))))))))))))))))))))))))
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
Boot problem. Geometry problem? gulanito FreeBSD Installation and Upgrading 0 3rd July 2009 03:03 AM
openBSD4.4 + Chrooted apache1.3 + php5 + sessions wolf3d OpenBSD Packages and Ports 1 2nd July 2009 11:07 AM


All times are GMT. The time now is 11:19 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