Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Feb 12, 2009 12:08 am 
Offline
Senior Newbie

Joined: Mon Feb 02, 2009 2:34 pm
Posts: 10
I have apache2/php5 installed on debian. When I look at the output of phpinfo(), I notice that I only have one registered PHP stream: zip. Streams are used with fopen() to open things like http, https ftps etc etc.

I really need to add the http stream/protocol to my server, but I cannot figure out how in the world to do so! Does anyone know how to do this? Google is no help, and the PHP site just describes the different streams, it seems to make no reference to how they are installed or turned on.

Thank you for any help!


Top
   
 Post subject:
PostPosted: Thu Feb 12, 2009 1:24 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Did you install all the PHP5 packages that you need, or did you just install the bare minimum?

To install all the popular packages in one go:
Code:
apt-get install php5-common php5-cgi php5-curl php5-dev php5-gd php5-idn php-pear php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-pgsql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

And restart apache2 to see if things look better.

If it still doesn't work, check your php.ini (probably located in /etc/php5/apache2)

If you see the line that says:
Code:
allow_url_fopen = 'off'

Change it to:
Code:
allow_url_fopen = 'on'

And restart apache2 to see if things look better.

But DON'T enable allow_url_fopen unless you know what you're doing. Depending on the scripts you use, enabling it could make your site vulnerable to really easy attacks.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group