LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-18-2005, 09:00 PM   #1
Jediman
LQ Newbie
 
Registered: May 2004
Posts: 24

Rep: Reputation: 15
Mandrake 10.1 Apache2 with PHp and pear problem


Hi all! My server has Apache 2 installed on it, along with php for it, and pear...now its running on a Mandrake 10.1 distro....I have tried and tried to get everything working with php BUT for some stupid reason its not working...

The error is as follows:
Warning: Unknown(/var/www/html/info.php): failed to open stream: Permission denied in Unknown on line 0

Warning: (null)(): Failed opening '/var/www/html/info.php' for inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/') in Unknown on line 0


I tried everything including not having the include path terminate with slashes..out of ideas...someone please help! I even rebuilt with wget for pear...HELP!
 
Old 04-19-2005, 12:33 AM   #2
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
apache2 and php5 suck -- use apache1.3.27/33 and mod_php
 
Old 04-19-2005, 08:10 AM   #3
Jediman
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
That wasnt an option for me with Apache 1. The Mod_php in Mandrake 10.1 is for Apache 2 for one thing, and that response didnt exactly help
 
Old 04-19-2005, 09:00 AM   #4
Jediman
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Does anyone ELSE have any suggestions on getting this going?
 
Old 04-19-2005, 09:42 AM   #5
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
mod_php in Mandrake 10.1 is for apache 1.3.x
apache2-mod_php is for apache.

# sudo urpmq -i apache2-mod_php
Name : apache2-mod_php
Version : 2.0.50_4.3.8
Release : 2mdk
Group : System/Servers
Size : 92023 Architecture: i586
Source RPM : apache2-mod_php-2.0.50_4.3.8-2mdk.src.rpm Build Host: n5.mandrakesoft.com
Packager : Oden Eriksson <oeriksson@mandrakesoft.com>
URL : http://www.php.net/
Summary : The PHP4 HTML-embedded scripting language for use with apache2.

# sudo urpmq -i mod_php
Name : mod_php
Version : 4.3.10
Release : 4bgn
Group : System/Servers
Size : 90229 Architecture: i586
Source RPM : mod_php-4.3.10-4bgn.src.rpm Build Host: borgnet.us
Packager : Scott Grayban <sgrayban@borgnet.us>
URL : http://www.php.net/
Summary : The PHP4 HTML-embedded scripting language for use with Apache

Before you start talking like you know make sure before you look very newbie.
 
Old 04-19-2005, 09:58 AM   #6
Jediman
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
I do know what the hell i'm talking about...whats listed on my 3 cd's does not include php for apache 1x else it would have been installed, and i havent had a lot of time to really delve into settting up mirrors and such for installs......regardless of this, I want to use Apache 2, and was looking for a solution to the current problem rather than ripping the server apart looking for other crap. So if someone can shed some light on this great.
 
Old 04-19-2005, 10:09 AM   #7
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
Okie dokie --- keep looking like a fool then.

And your php issue is the fact that your using php4 code on a php5 mod and they arent compatible.

ftp://ftp.proxad.net/pub/Distributio...-1mdk.i586.rpm

And if you keep wanting to be hard headed on this then dont bother asking for help.

I helped. I gave you the information you needed.

And if you that lazy to add a few lines into urpmi you have some real spoon feeding issues.


Last edited by sgrayban; 04-19-2005 at 10:11 AM.
 
Old 04-19-2005, 10:53 AM   #8
Jediman
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
First off...when I have time this week to configure my mirrors manually I will..secondly, I am not using php 5 i AM using php 4. I ended removing the rpm, and installing php manually. It still has no effect, in fact I found a few problems with apache 1x when using it before from Mandrake. Surely there is a workaround anyhow...the problem is essentially a linking issue with php->pear...and quite frankly I'd like to resolve it. Not bicker around about one thing or another. IF you are too much of a Better than Thou type of person then please DONT respond again. I appreciate the suggestion of going back to Apache 1x, however I really do not wish to.
 
Old 04-19-2005, 10:56 AM   #9
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
pfft stop wasting our time then.
 
Old 04-19-2005, 10:59 AM   #10
Jediman
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Ok mods, lock this or delete it will you? I was trying to get an actual answer not a apache 2 sucks use this instead response. Quite frankly if you dont have anything to really add to the situation then stfu. I am new to linux and quite frankly you arent very inviting to talk to let alone seek infformation from. Remember, you were a newbie once too...

So without further ado, forget I asked, never mind, crawl back under your rock! Ta!
 
Old 04-19-2005, 03:35 PM   #11
Jediman
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
The correct answr is this:

chmod a+r to the file itself..its a security issue.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 4 and Pear on suse 10... jsheffie Suse/Novell 2 03-07-2006 06:40 AM
urpmi and php-pear Huppybanny Linux - Newbie 9 10-19-2005 08:15 AM
Apache2, PHP and Gallery problem itamarl Linux - Software 6 04-05-2005 01:36 AM
php pear problem craddy Linux - Software 4 11-09-2004 08:25 PM
Problem with PHP 4.3.4 and Apache2 Jeniva Linux - Newbie 7 11-16-2003 03:57 AM


All times are GMT -5. The time now is 01:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration