Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Eric's Web Server How-To (For new installs & n00b's)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
freshy98
Apprentice
Apprentice


Joined: 11 Jul 2002
Posts: 274
Location: The Netherlands

PostPosted: Mon Sep 01, 2003 11:38 pm    Post subject: Re: PHP TEST Reply with quote

can you please tell me what output I should see?
I made that file, and when I open I get this:
Code:
 <? phpinfo() ?>

reading the line I guess it should give me some version info about php?

[edit]php does not seem to work at all on my machine. phpsysinfo also gave me the complete listing[/edit]
[edit2]php works nog with the test.php filem but phpsysinfo still gives me it's listing. gonna re-emerge phpsysinfo now[/edit2]

elajoie wrote:
If you want to make a PHP test page do the fallowing after the sevrer is up and running:
echo "<? phpinfo() ?>" > /home/httpd/htdocs/test.php

Then:
lynx http://localhost/test.php

(note, I think you can put in 127.0.0.1 for your loopback port if our on the server when you try to connect)

_________________
Mac Pro single quad 2.8GHz, 6GB RAM, 8800GT. MacBook. Plus way too many SUN/Cobatl/SGI and a lonely Alpha.
Back to top
View user's profile Send private message
trentone
n00b
n00b


Joined: 31 Mar 2003
Posts: 11

PostPosted: Tue Sep 02, 2003 1:07 am    Post subject: Reply with quote

i get this issue trying to emerge php on any given system

++++++
configure: error: can not run test program while cross compiling

!!! ERROR: dev-php/mod_php-4.3.2-r4 failed
!!! function econf, Line 320 Exitcode 1
!!! econf failed

++++++

any help?
(and yes happens with any version of PHP, mod_php etc)
Back to top
View user's profile Send private message
scootersmk
Apprentice
Apprentice


Joined: 17 May 2003
Posts: 186
Location: Knoxville, TN

PostPosted: Sun Nov 16, 2003 8:59 pm    Post subject: Great Doc Reply with quote

Thanks for the great doc. Although some of the commands need to be updated to apache2 and the directory needs to be changed to /var/www/localhost/. Just thought you might want to update it so people can continue to take advantage of your doc. Thanks again.
_________________
Long live the gentoo forums!!!!!
Back to top
View user's profile Send private message
hulk2nd
Guru
Guru


Joined: 25 Mar 2003
Posts: 512
Location: Freiburg, Germany

PostPosted: Thu Nov 20, 2003 1:43 am    Post subject: Re: Germany Reply with quote

elajoie wrote:
Well I am in Germany for the month of August and during the 24th through the 1st of September I will be in Croasia. If anyone from the Munich area or northern Croatia wants to meet up drop me an email.

-elajoie

ps. its a little off from my normal topic but I will deleate the post when I get back to the states.


hehe funny i live near munich (ok not really near munich but also in southern germany) and my mother comes from croatia :D so have nice holidays or whatever you'll do there!!

greets,
hulk

ps. also a little bit off from topic but i hope you'll excuse me :P
Back to top
View user's profile Send private message
elajoie
n00b
n00b


Joined: 16 Jul 2003
Posts: 42
Location: Bellevue,WA,USA

PostPosted: Sun Feb 15, 2004 9:29 pm    Post subject: OK Back in Action Reply with quote

Hi All,

Ok now after a long dry spell with Gentoo Im back to redo the howto
I am currently forming a Linux User Group and my University and Im going to be making Gentooopne of our Installfest distros!
Check out our site:

http://www.ecs.umass.edu/umasslug

This posting will hopfully be the source for all the UMass LUG students to install Apache-PHP-Perl

-Eric
Back to top
View user's profile Send private message
qeldroma
Guru
Guru


Joined: 17 Oct 2002
Posts: 370

PostPosted: Mon Apr 12, 2004 10:43 am    Post subject: Re: Eric's Web Server How-To (For new installs & n00b's) Reply with quote

elajoie wrote:
4. Do a ("-p" for practice) on each emerge to see what your emerging eg.(emerge -p foobar)


Just for info, "-p" means "pretend". Greets and thanks, qd
Back to top
View user's profile Send private message
Icer
Guru
Guru


Joined: 26 Aug 2003
Posts: 395
Location: @home

PostPosted: Thu Apr 15, 2004 3:28 pm    Post subject: Reply with quote

Thanks for the excellent howto. I'd add instructions howto setup phpmyadmin.

I did just setup it and I did'nt first notice that there's similar install script as there is for mysql. I.e the ebuild blabla config thing. I suppose those install scripts are quite common. I wonder how I've not noticed them before.
Back to top
View user's profile Send private message
hypercard
n00b
n00b


Joined: 22 Apr 2004
Posts: 13

PostPosted: Mon May 31, 2004 4:14 pm    Post subject: Thanks Reply with quote

Thanks for this great resource! I've followed this guide on every gentoo box I've installed. I vote for it's inclusion into the official FAQs.

Thanks again!
Back to top
View user's profile Send private message
grendelkhan
n00b
n00b


Joined: 02 Jun 2004
Posts: 1

PostPosted: Wed Jun 02, 2004 2:02 am    Post subject: -D PHP vs -D PHP4 Reply with quote

(Using apache-2.0.49-r1 and mod_php-4.3.6-r2.)

mod_php wasn't loading for me---the test.php script displayed earlier merely spewed out its source. I'd gone to /etc/conf.d/apache2 and edited it to include the text -D PHP as specified above.

In /etc/apache2/conf/modules.d/70_mod_php.conf, the first line read
Code:
<IfDefine PHP4>
I changed it to
Code:
<IfDefine PHP>
and it now works.

Hope this helps someone else; took me a few minutes to figure this one out.

--grendelkhan
Back to top
View user's profile Send private message
neonknight
Guru
Guru


Joined: 19 Jul 2003
Posts: 357
Location: Zurich, Switzerland

PostPosted: Tue Aug 31, 2004 12:42 pm    Post subject: Reply with quote

edit: posted in the wrong topic...
Back to top
View user's profile Send private message
easy_coder
n00b
n00b


Joined: 24 Apr 2005
Posts: 23

PostPosted: Thu Apr 28, 2005 3:43 am    Post subject: Reply with quote

newbie question

What directory does the html files go into? What directory do the install files go into? The install directory is /usr/locl/php2 correct?
Back to top
View user's profile Send private message
magnesium
Apprentice
Apprentice


Joined: 28 Oct 2003
Posts: 280
Location: Toronto, Canada

PostPosted: Tue May 03, 2005 5:15 am    Post subject: Reply with quote

wow, you revived a thread that was like a year old...

the .php file goes into /var/www/localhost/htdocs/ now
_________________
Adopt an unanswered post
Back to top
View user's profile Send private message
elajoie
n00b
n00b


Joined: 16 Jul 2003
Posts: 42
Location: Bellevue,WA,USA

PostPosted: Sun Sep 10, 2006 11:16 pm    Post subject: Revamp Reply with quote

I'm doing a few new install this weekend and I will update this howto with all the new info when I'm done!

-Eric
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum