Alexander Farber wrote:

> I'm a longtime happy user of OpenBSD + stock Apache +
> PHP (from packages), but now I have to send a HTTP GET
> request from one of my scripts to one host (to appsmail.ru).
> 
> So I've added the file /var/www/etc/hosts:
> 
>   127.0.0.1       localhost
>   94.100.188.5    appsmail.ru www.appsmail.ru
> 
> And also have changed this line in /var/www/conf/php.ini:
> 
>   allow_url_fopen = On
> 
> Unfortunately I still get the error:
> 
> Warning: file_get_contents(http://94.100.188.5/robots.txt)
> [function.file-get-contents]: failed to open stream: No route to host
> in /htdocs/mailru/index.php on line 18

Apache is chroot'ed but not jailed (the process is restricted only
within the file system). I guess there are missing php modules within
the chroot. What is line 18?

Helmut

-- 
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn

Reply via email to