Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



Php pages won't work on my web site

buffy450
12-14-2004, 10:58 PM
I'll warn you in advance, I am a VERY green linux newbie so please word you responses in terms a third grader would understand. ;)

I have some php scripts that I want to use on my web server. When I attempt to run them they all give the same basic error message that is similar to this one:

Warning: main(functions/ical_parser.php): failed to open stream: No such file or directory in .. directory... on line 12

Fatal error: main(): Failed opening required functions/ical_parser.php (include_path=..directory/pear/) in ... directory... on line 12

(I omitted the directories because this posting program keeps telling me I have to remove my URLs before I can post. This was the only way I could get it to accept it. Sorry...)

I assumed that this meant that PEAR was not installed. Every script I have tried to run has ended with an error that talks about PEAR. IF I AM WRONG PLEASE LET ME KNOW! Not knowing anything about PEAR I did two things. First I tried running the pear web installer called go-pear.php. This worked well, for a minute or so. The output of the install job is printed below:

Starting installation ...
Loading zlib: ok
Downloading package: PEAR-stable......ok
Downloading package: Archive_Tar-stable....ok
Downloading package: Console_Getopt-stable....ok
Downloading package: XML_RPC-stable....ok
Downloading package: Pager............ok
Downloading package: HTML_Template_IT....ok
Downloading package: Net_UserAgent_Detect....ok
Downloading package: PEAR_Frontend_Web....ok
Bootstrapping: PEAR...................(remote) ok
Bootstrapping: Archive_Tar............(remote) ok
Bootstrapping: Console_Getopt.........(remote) ok
Downloading package: DB...............ok
Downloading package: Net_Socket.......ok
Downloading package: Net_SMTP.........ok
Downloading package: Mail.............ok
Downloading package: XML_Parser.......ok
Downloading package: PHPUnit..........ok
Extracting installer..................ok 'xml' PHP extension is not installed

Then it just sits there and goes no farther and I am baffled as to what to do next. Is there a way to install pear manually? Please remember that I am stupid, so don't assume that I know what you are talking about. :)

I actually did try to download the pear base system, but I was expecting to see a source file. Instead all it is is a bunch of php files. What do I do with them?

Many thanks and I look forward to hearing from you.

Sincerely,
Buffy450

The Best Alias
12-15-2004, 12:13 AM
It sounds like PHP isn't installed. Using Notepad, copy and paste this:

<html>
<head>
<title>PHP Info</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>


Save as "Php-info-test.php"

Include the quotation marks in the name so that notepad will save it as a .php file and not a .txt file. You can use whatever WYSIWYG (Dreamweaver, Front Plague) if you like. Upload it to your site, then hit it with your browser. If php is installed on your site, your browser will return a plethora of information. If not, then you've got some back pedaling to do because you want php installed.

Ad
12-15-2004, 12:13 AM
  

buffy450
12-15-2004, 05:35 PM
When I run the phpinfo script it gives back many pages of information so I assume that php appears to be installed properly.

Does this imply that it is specifically a PEAR problem? If so, how do I install it manually? Do I just untar the files and move them to a specific directory? If so, what packages do I need to ensure that I have all that I need?

Thank you for your help!
-Buffy450

MYOB
12-15-2004, 06:29 PM
You could have a permissions issue. Try running Apache, etc as root and see does the error pass. If so, its a permissions issue.

buffy450
12-15-2004, 08:48 PM
I am so stupid.... It works now.... It had nothing to do with pear or php or anything else.... I untarred the file incorrectly. Not all of the files were in the appropriate directory and some were missing completely. It only took me a week of fiddling to figure it out too. :(

Thanks everyone for the help. But hey, at least I'm learning.

Sincerely,
Buffy450

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Weekend tech reading: How to run Chrome OS as virtual machine

Sony: PlayStation 3 to be 3D-capable via firmware update

iSuppli: DDR3 to account for over half of DRAM shipments by Q2 2010

Facebook named third most popular video website behind YouTube and Hulu

Patriot introduces new PS-100 SSD series

More Tech News

  
 Software Downloads

Norton Virus Definitions 2003-07 November 20, 2009

AVG Anti-Virus Updates November 20, 2009

Norton Virus Definitions 2008-09 November 20, 2009

avast! Virus Definitions November 20, 2009

McAfee SuperDAT Update 5808

Kaspersky Anti-Virus Update November 20, 2009

Google SketchUp 7.1.6087

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.