LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-23-2005, 08:48 PM   #1
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Rep: Reputation: 15
Installing PHP


I am running Fedora 3 with Apache 2.0.48 and MySQL4.0.16 installed and running properly. I am trying to get PHP installed and I am following a turtoial on THIS website but I am getting an error. When I get to the part of the tutorial which syas:

______________________________________________________________

Compiling PHP


Change into the PHP source directory as follows;

#cd php-4.3.4

Follow this command by typing;

#./configure �prefix=/usr/local/php �with-apxs2=/usr/local/apache2/bin/apxs �with-mysql=/usr/local/mysql

Once the prompt comes back to you issue the following command;

_______________________________________________________________

I get the following:
_______________________________________________________________

[root@linux php-4.3.4]# ./configure -prefix=usr/local/php -with-apxs2=/usr/local/apache2/bin/apxs -with-mysql=/usr/local/mysql
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.875 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for member fd in BUFF *... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/local/apache2/bin/apxs follows:
sh: line 1: 29325 Segmentation fault /usr/local/apache2/bin/httpd -l
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/local/apache2/bin/httpd'..
configure: error: Aborting

___________________________________________________________

I am very new to this and I tried to follow the suggestions but I don't know if Peral is installed. I have tried passing the path using "--with-apxs2=/path/to/apxs. I am not sure what they mean my suggestion #3, when I installed apache I followed the tutorial and used "#./configure �prefix=/usr/local/apache2 �enable-mods-shared=most (enter)" Any help would be greatly appreciated.

Thanks!
 
Old 09-24-2005, 01:05 AM   #2
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

Rep: Reputation: 45
Why do you have to compile it yourself? Pre-packaged versions installed seamlessly for me (on debian though).

I am almoust sure, perl is installed.

Best,
Ott
 
Old 09-24-2005, 11:08 AM   #3
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
I never chose to install Apache/MySQL/PHP when I installed Fedora...........I am still having the problem and was hoping that someone can help me out?
 
  


Reply



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
Installing PHP tntcoder Linux - Newbie 4 12-17-2005 03:53 AM
installing php 5.0.4 Infernal67 Mandriva 26 04-12-2005 06:02 PM
Installing PHP vinicius Linux - Newbie 5 09-18-2003 12:36 PM
installing php loadimmed Linux - General 2 07-22-2003 10:36 AM
Installing PHP help, please. WorldBuilder Linux - Software 3 06-06-2003 01:36 PM

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

All times are GMT -5. The time now is 09:11 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
Open Source Consulting | Domain Registration