View previous topic :: View next topic |
Author |
Message |
Optimus' Apprentice
Joined: 01 Jul 2004 Posts: 209
|
Posted: Thu Feb 17, 2005 12:19 am Post subject: PHP/MySQL/Apache |
|
|
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 |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Thu Feb 17, 2005 12:24 am Post subject: |
|
|
To start, did you
|
|
Back to top |
|
|
Optimus' Apprentice
Joined: 01 Jul 2004 Posts: 209
|
Posted: Thu Feb 17, 2005 12:26 am Post subject: |
|
|
Yep, it did say to check something about multiple instances of it being install though? |
|
Back to top |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Thu Feb 17, 2005 12:29 am Post subject: |
|
|
Optimus' wrote: | Yep, it did say to check something about multiple instances of it being install though? |
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 |
|
|
Optimus' Apprentice
Joined: 01 Jul 2004 Posts: 209
|
Posted: Thu Feb 17, 2005 12:30 am Post subject: |
|
|
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 |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Thu Feb 17, 2005 12:32 am Post subject: |
|
|
Please don´t mix two problems. Remove -D SSL for now and try the above... |
|
Back to top |
|
|
Optimus' Apprentice
Joined: 01 Jul 2004 Posts: 209
|
Posted: Thu Feb 17, 2005 12:40 am Post subject: |
|
|
Ahh! Thank's dude
It was because I had -D SSL -D PHP5
All works now |
|
Back to top |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Thu Feb 17, 2005 12:46 am Post subject: |
|
|
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 |
|
|
gtanghookup n00b
Joined: 25 Feb 2004 Posts: 4 Location: Portland, Oregon
|
Posted: Thu Feb 17, 2005 2:22 am Post subject: Thank you j-m |
|
|
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 |
|
|
|