LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-02-2003, 12:46 AM   #1
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
Problems with PHP :(


I've been trying to get PHP working for a couple of days now but can't get it...
Finally went to comppile the source again and i got the following:

ext/ctype/ctype.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1


Has anyone had any experience with this cos i'd really like to start developing more PHP stuff

 
Old 12-02-2003, 12:51 AM   #2
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Original Poster
Rep: Reputation: 30
Oh and BTW, i'm running:

Redhat 9
Apache v2.0.48
PHP v4.3.3
MySQL v4.0.14

Thanks
 
Old 12-02-2003, 01:09 AM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Hmm. I'd try a 'make clean' and then 'make' again. If that fails you can 'make distclean' and re-run the ./configure script. I'm guessing that you're going to be using php + apache +mysql so you'll want to make sure that your config finds the right libs and headers.
 
Old 12-02-2003, 04:32 AM   #4
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Original Poster
Rep: Reputation: 30
K that was kewl, worked

Hmmmm still can't use PHP only my website tho, checked for the line:

AddType application/x-httpd-php .php

And that's definately there... Anything else I should check for?
 
Old 12-02-2003, 04:34 AM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
restart (not reload) apache?

did u use apxs or did you build php into apache?
 
Old 12-02-2003, 04:50 AM   #6
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Original Poster
Rep: Reputation: 30
Yup I restarted...

I built using Dynaminc Install (built into Apache)... Should I post my httpd.conf file?
Hmmmm if ya wanna ssh in I can give ya my IP...
 
Old 12-02-2003, 05:29 AM   #7
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You can (and should) figure this one out with Q & A. There's nothing to be gained by having a complete stranger on your machine and my 1-on-1 consulting fees are outrageous.

Ya need to rebuild apache (pretty sure another 'make' and 'make install' should cover it). Don't re-run the ./configure script for apache.

A few common snags...
- run 'which httpd' to check the path and 'slocate httpd' to see how many binaries are on your system (there can be one from your distro install, a previous 1.3.xx source build or others)
- run 'httpd -l' to see what your apache was built with
- run 'httpd -v' to check the version and build time (does it look right?)
- check that you're using the correct apachectl script (which apachectl) and slocate apachectl (to see if you have more than one available)
- check in the apachectl file and make sure it's starting the correct httpd.
- re-check your httpd.conf
- check /path/to/php.ini

Stop and then restart apache after that.

If you're still having problems post your ./configure options for your php build and your apache build.

Last edited by mcleodnine; 12-02-2003 at 05:30 AM.
 
Old 12-02-2003, 11:25 AM   #8
Doomhammer
Member
 
Registered: Oct 2003
Location: Montreal Qc, Canada
Posts: 105

Rep: Reputation: 15
Just a comment..
Make sure you have the mod_php4 included by your apache configuration file.
I think you will find this in the httpd.conf file.
 
  


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
More PHP problems :( arichardson Linux - Software 1 11-21-2005 04:24 PM
PHP problems PLEASE HELP!! mrosati Linux - Software 2 10-15-2004 05:01 AM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 05:57 PM
problems with php jogurt666 Linux - Software 12 11-17-2003 06:07 AM
PHP problems Mikessu Linux - Networking 2 09-20-2003 03:35 PM


All times are GMT -5. The time now is 12:13 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration