LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-25-2003, 08:45 PM   #1
wujimon
Newbie
 
Registered: Dec 2002
Posts: 12

Rep: Reputation: 0
php parse error


Hello. I had php and apache working before as documented in this thread , but now, when I try php again, I get the following error:

Parse error: parse error, unexpected T_STRING in /usr/bin/php on line 8672

Does anyone have any insight into this? When I tried to open up /usr/bin/php in a text file, it just displayed a whole bunch of gargbage.

Any help would be greatly appreciated.
thanks.
wuji

Forgot to add:
Redhat 8
php-4.2.2-8.0.7
 
Old 03-26-2003, 01:22 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
the garbage in your /usr/bin/php are probably the binaries of your php so u cannot edit that with a text editor. but it seems they're broke.
maybe someone else knows better but i guess u have to recompile php. or if u installed as rpm
rpm -e php-version
rpm -i php-version
good luck, jens
 
Old 03-26-2003, 09:37 AM   #3
wujimon
Newbie
 
Registered: Dec 2002
Posts: 12

Original Poster
Rep: Reputation: 0
hi j-ray.

Thanks for the info. I tried removing the packages and then reinstalling rpms and still no luck. Would I have to reinstall apache too? FYI.. I'm using apache2 and I've heard stuff that php is not compatible until version 4.3. Could this be causing the issue? It's strange b/c it worked before and the only thing I did was comment out the php related items in my httpd.conf b/c I wasn't using any php. But when I uncommented them and restarted httpd, no luck

any thoughts would be greatly appreciated.

thanks.
wuji
 
Old 03-26-2003, 02:33 PM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
i dont know what's the problem but i'm convinced it should work with apache2 and u dont need to reinstall apache.do u get any error messages now when trying a php script?
 
Old 03-26-2003, 02:37 PM   #5
wujimon
Newbie
 
Registered: Dec 2002
Posts: 12

Original Poster
Rep: Reputation: 0
hey j-ray.

I still get the same parse error when I try the simple php script that contains phpinfo(). I've tried modifying the short open tags as well as the tags themselves within the script. What baffles me the most is that it worked before and I think I might have did some of the redhat updates to php and I didnt' test it out after the update. I guess I could roll back to a previous version of php, but that's really not what I want to do. I appreciate your help tho.. just not sure what's going on.

Strange...
wuji.
 
  


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
Parse HTML using PHP jilljack Programming 1 11-07-2005 09:46 AM
PHP parse error in config.inc.php.in Confusedious Linux - Software 2 11-03-2005 05:08 AM
Parse PHP, not open!! mattp Programming 2 10-10-2005 12:09 AM
PHP parse error unexpected '>' ldp Programming 2 03-04-2005 02:20 PM
PHP Parse error.....PHPBB bentman78 Linux - Software 0 07-09-2003 06:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration