Ubuntu users in Ontario, Canada?
geo
yaktur at yahoo.com
Thu Jun 26 00:41:27 UTC 2008
root at Dell1:~# apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root at Dell1:~#
libapache2-mod-php5 is indeed installed. Have no idea why nothing works but I LOVE the explaination you used! It makes sense when it's explained that way!
Cheers,
geo
--- On Wed, 6/25/08, Mathieu Charron <mathieu.charron at elwillow.net> wrote:
From: Mathieu Charron <mathieu.charron at elwillow.net>
Subject: Re: Ubuntu users in Ontario, Canada?
To: yaktur at yahoo.com, "The Canadian Ubuntu Users Community" <ubuntu-ca at lists.ubuntu.com>
Date: Wednesday, June 25, 2008, 8:29 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
my turn to help
let just sum this up:
1. Trying to set up Apache2 + PHP + MySQL (a LAMP)
2. Install jommla
3. Stuff is not working
4. Apache is bitchy (that's new ;))
My though
first: from what I can see, apache doesn't like php. PHP is install but
doesn't work with Apache, somehow....
Second: Here how PHP work:
- - You request test.php
- - Apache see that it's a PHP file and "sent" it to the
interpreter.
- - PHP process the file and return the output to Apache
- - Apache sent the output of PHP to the user.
So, the second point isn't working. that is clear. There is a package
that will make it work, the name is libapache2-mod-php5. I'm not sure,
but I'm pretty sure it's this one, correct me if I'm wrong.
Double check if it's install
(Note, I won't install Apache on my desktop, but I have a pretty good
knowledge of it)
if this is install, and it is still not working, I don't know. maybe
cleaning the config et reinstalling Apache, PHP and other could help.
Check this. if it's not working, well, you're pretty damn close.
Sorry for the english, I'm French
Mathieu Charron
Elwillow Network
note: I haven't said a thing before because this thread was getting out
of control. Lets focus on helping the guy instead of fighting over
unrelated topic.
geo wrote:
> I re-edited the /etc/apache2/mods-enabled/dir.conf file and saved it,
> then I opened a terminal window (Alt + F2) and tried to restart Apache.
>
> No success. Here is the result:
>
> root at Dell1:~# /etc/init.d/apache2 restart
> * Restarting web server apache2
> Syntax error on line 4 of /etc/apache2/mods-enabled/dir.conf:
> Invalid command 'index.php', perhaps misspelled or defined by a
module
> not included in the server configuration
> [fail]
> root at Dell1:~#
>
> Then I tried to force it.....
>
> root at Dell1:~# /etc/init.d/apache2 force-reload
> Syntax error on line 4 of /etc/apache2/mods-enabled/dir.conf:
> Invalid command 'index.php', perhaps misspelled or defined by a
module
> not included in the server configuration
> ...fail!
> root at Dell1:~#
>
> I don't have any such files named php5.conf and php5.load in
> /etc/apache2/mods-enabled/. Nothing there even starts with php.
>
> This is what my /etc/apache2/mods-enabled/dir.conf file looks like:
>
> <IfModule mod_dir.c>
>
> DirectoryIndex index.html index.htm index.shtml index.cgi
> index.php index.php3 index.pl index.xhtml
>
> </IfModule>
>
>
> So I edited out the index.php phrase to make it look like this:
>
> <IfModule mod_dir.c>
>
> DirectoryIndex index.html index.htm index.shtml index.cgi
> index.php3 index.pl index.xhtml
>
> </IfModule>
>
> I then opened a terminal window again and tried to restart Apache.
> This time it did start but with some errors I don't understand.
>
> Here is the result:
>
> root at Dell1:~# /etc/init.d/apache2 restart
> * Restarting web server apache2
> apache2: apr_sockaddr_info_get() failed for Dell1
> apache2: Could not reliably determine the server's fully qualified
> domain name, using 127.0.0.1 for ServerName
> httpd (no pid file) not running
> apache2: apr_sockaddr_info_get() failed for Dell1
> apache2: Could not reliably determine the server's fully qualified
> domain name, using 127.0.0.1 for ServerName
> [ OK ]
>
> Then I tried to force-reload apache, thinking maybe it didn't read
some
> file change? Who knows!
>
> Here is the result:
>
> root at Dell1:~# /etc/init.d/apache2 force-reload
> * Reloading web server config
> apache2 13675
> apache2: apr_sockaddr_info_get() failed for Dell1
> apache2: Could not reliably determine the server's fully qualified
> domain name, using 127.0.0.1 for ServerName
> [ OK ]
> root at Dell1:~#
>
> I still don't understand the cause for the error messages.....but at
> least it's running like an old car that backfires and belches smoke.
>
> I still cannot run the file test.php I placed in the root of my web
domain:
>
> http://georutkay.homelinux.org/test.php
>
> Firefox pops up asking what to do with such a file, Open with Firefox or
> Save to disk?
>
> So I assume that PHP is still royally (bleeped) up! Why? I don't get
it.
>
> This is the contents of the file test.php:
>
> <?php
> echo phpinfo();
> ?>
>
> I don't know if it's right or wrong.
>
> At least Apache is running again, but I'm back to square one after all
> of that wheel-spinning.
>
> geo
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIYuLZ7fM66ti7QaIRAmaWAJ42emntMcSuDnPEaD2zpV3xcRLnyACg4VLI
RHMr2ZVvfKCuEPseEdL5gMM=
=/+eU
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-ca/attachments/20080625/cb7a0883/attachment.html>
More information about the ubuntu-ca
mailing list