11
NiclasH
Re: confirm database settings
  • 2004/2/27 20:58

  • NiclasH

  • Just popping in

  • Posts: 7

  • Since: 2004/2/26



I now changed my MySQL setup, so that it doesn't connect over localohost but the actual hostname.

[niclas@f1 niclas]$ MySQL -h niclas.hedhman.org -u XOOPS -pSplendidDay
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1090371 to server version: 3.23.57

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

I can even connect from any machine (password is changed by now).

Then I did my simple php script, and it connects !
I also added the create table, and it creates and executes;

$conn = mysql_connect( "niclas.hedhman.org", "xoops", "WhatAWonderfulDay" );
mysql_query( "CREATE TABLE xoops.Niclas (Abd TEXT)", $conn );
?>

SO, I thought I had something going, so let's start over...

cd www/portal/
rm -rf *
cp -r ~/xoops-2.0.6/html/* .
chmod g+w,o+w uploads/ cache/ templates_c/ mainfile.php

hit the browser to http://niclas.hedhman.org/portal

Step through everything.... BLANK screen after "confirm database settings".




12
NiclasH
Re: confirm database settings
  • 2004/2/27 21:06

  • NiclasH

  • Just popping in

  • Posts: 7

  • Since: 2004/2/26


Putting in the explicit connect and "create table" into that place in your code, and it doesn't work.

Is this somehow related to that the HTTP Server is running as an untrusted user?
Or can one tell PHP/Apache that network connections are not allowed, or something along these lines?

Any debug information that can help me?

Niclas

13
NiclasH
Re: confirm database settings
  • 2004/2/27 21:07

  • NiclasH

  • Just popping in

  • Posts: 7

  • Since: 2004/2/26


Btw, yes, I do control the whole server and can make whatever changes are required to get this running...

14
NiclasH
Re: confirm database settings
  • 2004/3/1 19:54

  • NiclasH

  • Just popping in

  • Posts: 7

  • Since: 2004/2/26



Ok, I give up... Too bad.

15
tenetor
Re: confirm database settings
  • 2004/4/18 19:35

  • tenetor

  • Just popping in

  • Posts: 1

  • Since: 2004/4/18


Hi,

I had the same BLANK screen prolem in my local Mandrake Linux installation, and after many hours I realized that I had not installed the MySQL module for php. I installed it, restarted httpd service and finally worked.

Hope it helps you

Good look

Login

Who's Online

939 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 939


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits