webForumDet fria alternativet

Funka mot php

3 svar · 212 visningar · startad av nanne

nanneMedlem sedan dec. 19991 047 inlägg
#1

Få se nu. Tänker jag rätt.

Jag har Apache 1.3.19 på min Redhat 7 maskin. På denna har jag även nyaste mysql kompilerat för just min fina maskin. Jag får dock inte tillgång till mysql när jag anropar från PHP.

Apache använder användaren nobody. Så det borde väl bara att lägga till en nobody användare i usertabellen i mysql databasen?

------------------

"Information wants to be free -- because it is now so easy to copy and distribute casually -- and information wants to be expensive -- because in an Information Age, nothing is so valuable as the right information at the right time."
- John Perry Barlow

nanne.net

ikarosMedlem sedan juni 2000120 inlägg
#2

vad händer när du försöker göra en mysql_connect()?

tänk på att se till att mysql-modulen laddas när php startas.

BitstateMedlem sedan nov. 2000396 inlägg
#3

mysql_connect(<address>, <username>, <password> );

du kan alltså connecta som vem som helst :)

nanneMedlem sedan dec. 19991 047 inlägg
#4

Det funkar nu. Det var precis så jag hade tänkt ut :)

------------------

"Information wants to be free -- because it is now so easy to copy and distribute casually -- and information wants to be expensive -- because in an Information Age, nothing is so valuable as the right information at the right time."
- John Perry Barlow

nanne.net

Genererad på 380 ms · cache AV · v20260730165559-full.f96bc7eb