Ubuntu users in Ontario, Canada?
Mathieu Charron
mathieu.charron at elwillow.net
Thu Jun 26 01:07:15 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
yeah, you have WAY too much php5 modules install.
volksman told you to install a bunch of php-something package, that is
way too much stuff... they only one you need where:
php5
php5-common
php5-mysql (for mysql support)
php5-gd (for image modification support)
My solution would be to remove all the extra package, and type "php -v"
in the console again to see something similar
and it's normal that PHP didn't drop back to the prompt, it was waiting
for a input.
try this, if still doesn't work, I just wrote you a walkthrough to debug
this (I install apache+php on my laptop just for you!)
geo wrote:
> Here's something else. I just tried it because I didn't know what else
> to do.
>
> I opened a terminal window and typed:
>
> php5
>
> .....just to see what would happen.
>
> Here is the result:
>
> root at Dell1:~# php5
> PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/lib/php5/20060613+lfs/ldap.so' -
> /usr/lib/php5/20060613+lfs/ldap.so: cannot open shared object file: No
> such file or directory in Unknown on line 0
> PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/lib/php5/20060613+lfs/odbc.so' -
> /usr/lib/php5/20060613+lfs/odbc.so: cannot open shared object file: No
> such file or directory in Unknown on line 0
> PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/lib/php5/20060613+lfs/pdo_odbc.so' -
> /usr/lib/php5/20060613+lfs/pdo_odbc.so: cannot open shared object file:
> No such file or directory in Unknown on line 0
>
> Notice that it didn't return to the command prompt!
>
> Something must be seriously mucked up with php5?
>
> Does this help any?
>
> 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
>
> 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
iD8DBQFIYuvD7fM66ti7QaIRAomUAKDBgforbuyaVOF174vX9XTvakS6QQCdGepS
szLMLPwkaJHDTCm+ybfeDp0=
=httF
-----END PGP SIGNATURE-----
More information about the ubuntu-ca
mailing list