Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP/MySQL/Apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Optimus'
Apprentice
Apprentice


Joined: 01 Jul 2004
Posts: 209

PostPosted: Thu Feb 17, 2005 12:19 am    Post subject: PHP/MySQL/Apache Reply with quote

I've just installed them, and I've got the apache page with the local address that basically says well done. When I did a simple test:

#echo "<? phpinfo() ?>" > /var/www/localhost/htdocs/test.php

and looked at the file in my web browser I simply see:

<? phpinfo() ?>

So I'm guessing PHP isn't working! :(

I am such a noob, really, this is my first experience in anything like this! Handholding is required :)
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Thu Feb 17, 2005 12:24 am    Post subject: Reply with quote

To start, did you

Code:

emerge mod_php


:?:
Back to top
View user's profile Send private message
Optimus'
Apprentice
Apprentice


Joined: 01 Jul 2004
Posts: 209

PostPosted: Thu Feb 17, 2005 12:26 am    Post subject: Reply with quote

Yep, it did say to check something about multiple instances of it being install though? 8O
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Thu Feb 17, 2005 12:29 am    Post subject: Reply with quote

Optimus' wrote:
Yep, it did say to check something about multiple instances of it being install though? 8O


OK. Don´t care about it.

Did you put -D PHP4 in APACHE2_OPTS in /etc/conf.d/apache2 ?
Did you restart Apache?
Back to top
View user's profile Send private message
Optimus'
Apprentice
Apprentice


Joined: 01 Jul 2004
Posts: 209

PostPosted: Thu Feb 17, 2005 12:30 am    Post subject: Reply with quote

Also I'm getting this :?:

root@knight matt # /etc/init.d/apache2 stop
* Stopping apache2...
Syntax error on line 44 of /usr/lib/apache2/conf/modules.d/41_mod_ssl.default-vhost.conf:
SSLCertificateFile: file '/usr/lib/apache2/conf/ssl/server.crt' does not exist or is empty
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Thu Feb 17, 2005 12:32 am    Post subject: Reply with quote

Please don´t mix two problems. Remove -D SSL for now and try the above...
Back to top
View user's profile Send private message
Optimus'
Apprentice
Apprentice


Joined: 01 Jul 2004
Posts: 209

PostPosted: Thu Feb 17, 2005 12:40 am    Post subject: Reply with quote

Ahh! Thank's dude :D

It was because I had -D SSL -D PHP5

:D

All works now :P
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Thu Feb 17, 2005 12:46 am    Post subject: Reply with quote

OK. If you want SSL, then you need some certificates. See Apache website - there is a FAQ on this topic.

Once you have them, set those in /etc/apache2/conf/modules.d/40_mod_ssl.conf, put -D SSL back, set up 41_mod_ssl.default-vhost.conf and restart Apache.
Back to top
View user's profile Send private message
gtanghookup
n00b
n00b


Joined: 25 Feb 2004
Posts: 4
Location: Portland, Oregon

PostPosted: Thu Feb 17, 2005 2:22 am    Post subject: Thank you j-m Reply with quote

I just installed PHP and Apache2 and would have never thought to look at that config file line, which was causing a problem for me as well. Thanks, keep up the good work!
_________________
Someday robots will destroy the earth, then
we'll be sorry that we did not learn a lesson from
the Terminator series, then we'll be sorry...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
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