public inbox for blinux-list@redhat.com
 help / color / mirror / Atom feed
* some php problems
@  Kristoffer Gustafsson
   ` Geoff Shang
  0 siblings, 1 reply; 9+ messages in thread
From: Kristoffer Gustafsson @  UTC (permalink / raw)
  To: Linux for blind general discussion

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

Hello!
I've gotten some php problems.
I want to install mysql,apache and php under linux.
but I get php4 instead of php5.
I've gotten both of them installed right now.
how do I edit this thing?
also, is there a version of phpadmin, that works with php5?

And finally, my friend(it's his server) is talking about something he calls bear.
how do I install that?
I'm using debian. the latest lenny version.

/Kristoffer

[-- Attachment #2: Type: text/html, Size: 1269 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: some php problems
   some php problems Kristoffer Gustafsson
@  ` Geoff Shang
     ` Kristoffer Gustafsson
  0 siblings, 1 reply; 9+ messages in thread
From: Geoff Shang @  UTC (permalink / raw)
  To: Linux for blind general discussion

Kristoffer Gustafsson wrote:

> I've gotten some php problems.
> I want to install mysql,apache and php under linux.
> but I get php4 instead of php5.
> I've gotten both of them installed right now.
> how do I edit this thing?

Presumably the problem is that Apache is using the wrong version of PHP. 
If you're using Apache2, try installing libapache2-mod-php5 or if using 
apache1.3 install libapache-mod-php5.  This should remove the PHP 4 version 
as it is a conflict.

> also, is there a version of phpadmin, that works with php5?

I assume you mean phpmyadmin.  Phpmyadmin works with both, and the version 
in Etch will work with whichever is installed.

> And finally, my friend(it's his server) is talking about something he calls bear.
> how do I install that?

Sounds like it's pear.  Just install the php-pear package.  There are also 
a lot of pear extensions that are available in Debian as packages, so if he 
wants particular extensions you might be able to simply install those 
extension packages and php-pear will be pulled in along with them.

> I'm using debian. the latest lenny version.

Note that I'm using Etch so there may be a few differences.

Geoff.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: some php problems
   ` Geoff Shang
@    ` Kristoffer Gustafsson
       ` SV: " mattias
  0 siblings, 1 reply; 9+ messages in thread
From: Kristoffer Gustafsson @  UTC (permalink / raw)
  To: Linux for blind general discussion

Hello!
Ok, thanks for the replay.
Now another thing, php won't work, whenever I try to access a php site that 
I've put on my computer I just get a dialog box that says that my computer 
wants to save it as
a plain file instead of opening it.
what is this?

/Kristoffer
----- Original Message ----- 
From: "Geoff Shang" <Geoff@quitelikely.com>
To: "Linux for blind general discussion" <blinux-list@redhat.com>
Sent: Sunday, February 17, 2008 3:16 AM
Subject: Re: some php problems


> Kristoffer Gustafsson wrote:
>
>> I've gotten some php problems.
>> I want to install mysql,apache and php under linux.
>> but I get php4 instead of php5.
>> I've gotten both of them installed right now.
>> how do I edit this thing?
>
> Presumably the problem is that Apache is using the wrong version of PHP. 
> If you're using Apache2, try installing libapache2-mod-php5 or if using 
> apache1.3 install libapache-mod-php5.  This should remove the PHP 4 
> version as it is a conflict.
>
>> also, is there a version of phpadmin, that works with php5?
>
> I assume you mean phpmyadmin.  Phpmyadmin works with both, and the version 
> in Etch will work with whichever is installed.
>
>> And finally, my friend(it's his server) is talking about something he 
>> calls bear.
>> how do I install that?
>
> Sounds like it's pear.  Just install the php-pear package.  There are also 
> a lot of pear extensions that are available in Debian as packages, so if 
> he wants particular extensions you might be able to simply install those 
> extension packages and php-pear will be pulled in along with them.
>
>> I'm using debian. the latest lenny version.
>
> Note that I'm using Etch so there may be a few differences.
>
> Geoff.
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* SV: some php problems
     ` Kristoffer Gustafsson
@      ` mattias
         ` Kristoffer Gustafsson
  0 siblings, 1 reply; 9+ messages in thread
From: mattias @  UTC (permalink / raw)
  To: 'Linux for blind general discussion'

You must have php support in apache1 or apache2

-----Ursprungligt meddelande-----
Från: blinux-list-bounces@redhat.com
[mailto:blinux-list-bounces@redhat.com] För Kristoffer Gustafsson
Skickat: den 18 februari 2008 07:24
Till: Linux for blind general discussion
Ämne: Re: some php problems


Hello!
Ok, thanks for the replay.
Now another thing, php won't work, whenever I try to access a php site
that 
I've put on my computer I just get a dialog box that says that my
computer 
wants to save it as
a plain file instead of opening it.
what is this?

/Kristoffer
----- Original Message ----- 
From: "Geoff Shang" <Geoff@quitelikely.com>
To: "Linux for blind general discussion" <blinux-list@redhat.com>
Sent: Sunday, February 17, 2008 3:16 AM
Subject: Re: some php problems


> Kristoffer Gustafsson wrote:
>
>> I've gotten some php problems.
>> I want to install mysql,apache and php under linux.
>> but I get php4 instead of php5.
>> I've gotten both of them installed right now.
>> how do I edit this thing?
>
> Presumably the problem is that Apache is using the wrong version of 
> PHP.
> If you're using Apache2, try installing libapache2-mod-php5 or if
using 
> apache1.3 install libapache-mod-php5.  This should remove the PHP 4 
> version as it is a conflict.
>
>> also, is there a version of phpadmin, that works with php5?
>
> I assume you mean phpmyadmin.  Phpmyadmin works with both, and the 
> version
> in Etch will work with whichever is installed.
>
>> And finally, my friend(it's his server) is talking about something he
>> calls bear.
>> how do I install that?
>
> Sounds like it's pear.  Just install the php-pear package.  There are 
> also
> a lot of pear extensions that are available in Debian as packages, so
if 
> he wants particular extensions you might be able to simply install
those 
> extension packages and php-pear will be pulled in along with them.
>
>> I'm using debian. the latest lenny version.
>
> Note that I'm using Etch so there may be a few differences.
>
> Geoff.
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com 
> https://www.redhat.com/mailman/listinfo/blinux-list

_______________________________________________
Blinux-list mailing list
Blinux-list@redhat.com
https://www.redhat.com/mailman/listinfo/blinux-list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: some php problems
       ` SV: " mattias
@        ` Kristoffer Gustafsson
           ` Geoff Shang
  0 siblings, 1 reply; 9+ messages in thread
From: Kristoffer Gustafsson @  UTC (permalink / raw)
  To: Linux for blind general discussion

Hello!

Ok, but how do I enable that?

I've installed every package in debian but i t won't work. only php4 works
/Kristoffer

----- Original Message ----- 
From: "mattias" <mj@mjw.se>
To: "'Linux for blind general discussion'" <blinux-list@redhat.com>
Sent: Monday, February 18, 2008 8:34 AM
Subject: SV: some php problems


> You must have php support in apache1 or apache2
>
> -----Ursprungligt meddelande-----
> Från: blinux-list-bounces@redhat.com
> [mailto:blinux-list-bounces@redhat.com] För Kristoffer Gustafsson
> Skickat: den 18 februari 2008 07:24
> Till: Linux for blind general discussion
> Ämne: Re: some php problems
>
>
> Hello!
> Ok, thanks for the replay.
> Now another thing, php won't work, whenever I try to access a php site
> that
> I've put on my computer I just get a dialog box that says that my
> computer
> wants to save it as
> a plain file instead of opening it.
> what is this?
>
> /Kristoffer
> ----- Original Message ----- 
> From: "Geoff Shang" <Geoff@quitelikely.com>
> To: "Linux for blind general discussion" <blinux-list@redhat.com>
> Sent: Sunday, February 17, 2008 3:16 AM
> Subject: Re: some php problems
>
>
>> Kristoffer Gustafsson wrote:
>>
>>> I've gotten some php problems.
>>> I want to install mysql,apache and php under linux.
>>> but I get php4 instead of php5.
>>> I've gotten both of them installed right now.
>>> how do I edit this thing?
>>
>> Presumably the problem is that Apache is using the wrong version of
>> PHP.
>> If you're using Apache2, try installing libapache2-mod-php5 or if
> using
>> apache1.3 install libapache-mod-php5.  This should remove the PHP 4
>> version as it is a conflict.
>>
>>> also, is there a version of phpadmin, that works with php5?
>>
>> I assume you mean phpmyadmin.  Phpmyadmin works with both, and the
>> version
>> in Etch will work with whichever is installed.
>>
>>> And finally, my friend(it's his server) is talking about something he
>>> calls bear.
>>> how do I install that?
>>
>> Sounds like it's pear.  Just install the php-pear package.  There are
>> also
>> a lot of pear extensions that are available in Debian as packages, so
> if
>> he wants particular extensions you might be able to simply install
> those
>> extension packages and php-pear will be pulled in along with them.
>>
>>> I'm using debian. the latest lenny version.
>>
>> Note that I'm using Etch so there may be a few differences.
>>
>> Geoff.
>>
>> _______________________________________________
>> Blinux-list mailing list
>> Blinux-list@redhat.com
>> https://www.redhat.com/mailman/listinfo/blinux-list
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
>
>
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: some php problems
         ` Kristoffer Gustafsson
@          ` Geoff Shang
             ` Kristoffer Gustafsson
             ` Kristoffer Gustafsson
  0 siblings, 2 replies; 9+ messages in thread
From: Geoff Shang @  UTC (permalink / raw)
  To: Linux for blind general discussion

Kristoffer Gustafsson wrote:

> Ok, but how do I enable that?
>
> I've installed every package in debian but i t won't work. only php4 works

Do you have libapache2-mod-php or libapache-mod-php installed, as opposed 
to their version 4 counterparts?

Oh and yo need to actually enable it.

ln -s /etc/apache2/mods-available/php5.load /etc/apache2/mods-enabled/php5.load
ln -s /etc/apache2/mods-available/php5.conf  /etc/apache2/mods-enabled/php5.conf

If you're running apache 1.x, use /etc/apache instead of /etc/apache2 
though it might be done differently there.

Probably good to check the PHP5 config file to check that it's set up how 
you want.

Geoff.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: some php problems
           ` Geoff Shang
@            ` Kristoffer Gustafsson
             ` Kristoffer Gustafsson
  1 sibling, 0 replies; 9+ messages in thread
From: Kristoffer Gustafsson @  UTC (permalink / raw)
  To: Linux for blind general discussion

Hello!
Thanks, it works now finally.

/Kristoffer
----- Original Message ----- 
From: "Geoff Shang" <Geoff@quitelikely.com>
To: "Linux for blind general discussion" <blinux-list@redhat.com>
Sent: Monday, February 18, 2008 10:13 AM
Subject: Re: some php problems


> Kristoffer Gustafsson wrote:
>
>> Ok, but how do I enable that?
>>
>> I've installed every package in debian but i t won't work. only php4 
>> works
>
> Do you have libapache2-mod-php or libapache-mod-php installed, as opposed 
> to their version 4 counterparts?
>
> Oh and yo need to actually enable it.
>
> ln -s /etc/apache2/mods-available/php5.load 
> /etc/apache2/mods-enabled/php5.load
> ln -s /etc/apache2/mods-available/php5.conf 
> /etc/apache2/mods-enabled/php5.conf
>
> If you're running apache 1.x, use /etc/apache instead of /etc/apache2 
> though it might be done differently there.
>
> Probably good to check the PHP5 config file to check that it's set up how 
> you want.
>
> Geoff.
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: some php problems
           ` Geoff Shang
             ` Kristoffer Gustafsson
@            ` Kristoffer Gustafsson
               ` Geoff Shang
  1 sibling, 1 reply; 9+ messages in thread
From: Kristoffer Gustafsson @  UTC (permalink / raw)
  To: Linux for blind general discussion

Hello!
one last question. where does my sql server store it's passwords?
I forgot what i entered as password when installing, because it was a so 
long time ago.
and how doI change it?

/Kristoffer
----- Original Message ----- 
From: "Geoff Shang" <Geoff@quitelikely.com>
To: "Linux for blind general discussion" <blinux-list@redhat.com>
Sent: Monday, February 18, 2008 10:13 AM
Subject: Re: some php problems


> Kristoffer Gustafsson wrote:
>
>> Ok, but how do I enable that?
>>
>> I've installed every package in debian but i t won't work. only php4 
>> works
>
> Do you have libapache2-mod-php or libapache-mod-php installed, as opposed 
> to their version 4 counterparts?
>
> Oh and yo need to actually enable it.
>
> ln -s /etc/apache2/mods-available/php5.load 
> /etc/apache2/mods-enabled/php5.load
> ln -s /etc/apache2/mods-available/php5.conf 
> /etc/apache2/mods-enabled/php5.conf
>
> If you're running apache 1.x, use /etc/apache instead of /etc/apache2 
> though it might be done differently there.
>
> Probably good to check the PHP5 config file to check that it's set up how 
> you want.
>
> Geoff.
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: some php problems
             ` Kristoffer Gustafsson
@              ` Geoff Shang
  0 siblings, 0 replies; 9+ messages in thread
From: Geoff Shang @  UTC (permalink / raw)
  To: Linux for blind general discussion

Kristoffer Gustafsson wrote:

> one last question. where does my sql server store it's passwords?
> I forgot what i entered as password when installing, because it was a so long 
> time ago.
> and how doI change it?

Depends whether you mean the root password or a user password.

User passwords are stored in the mysql database, in the user table.

You can change a user password by using the following query:

set password for 'user'@'localhost' = password('newpassword');

Note that mysql usually has two entries, one for user@yourhostname and one 
for user@localhost.  You may want permissions to be different for each of 
these depending on your security requirements.

Note also that you can change the root password this way *if* you can login 
as root.

By default, root has no password so if you haven't changed it, "mysql -u 
root" should get you in as root.

If you *have* set the root password and can't remember what it is and 
haven't granted yourself all root privs as a user account, read 
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

Geoff.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 some php problems Kristoffer Gustafsson
 ` Geoff Shang
   ` Kristoffer Gustafsson
     ` SV: " mattias
       ` Kristoffer Gustafsson
         ` Geoff Shang
           ` Kristoffer Gustafsson
           ` Kristoffer Gustafsson
             ` Geoff Shang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).