Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Lithium
Hangin' Around



Joined: Mar 30, 2004
Posts: 28

PostPosted: Tue Mar 30, 2004 8:54 pm Reply with quote

I have a Nuke 6.9 website that I tar/gz'ed and transfered over to a dedicated server I rent in NY. It was uncompressed in the web root of the new server and chmod 777'd just for kicks. I have verified PHP and MySQL are working correctly, however, when you browse to the main index.php, you get a white screen. If you look at the source, you see this instead of the homepage:

Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>


Have you seen this before? Any suggestions would be much appreciated.

Specs:

AMD2100
Redhat 9.0
Apache 2.0
Mysql 3.23
PHP 4.2.2
PHP-Nuke 6.9
 
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles



Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Tue Mar 30, 2004 9:32 pm Reply with quote

Is there an index.html in the root? If so rename or lose it all together.

_________________
Scott Johnson MIS Ubuntu/Linux 11.10 
View user's profile Send private message Visit poster's website
Lithium







PostPosted: Tue Mar 30, 2004 10:17 pm Reply with quote

I checked for any index.html's and there are none, just index.php.

Thanks...
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Mar 30, 2004 11:08 pm Reply with quote

Have you created the database, loaded the tables, and confirmed that the MySQL settings in config.php are correct? Please post a URL.
 
View user's profile Send private message
Lithium







PostPosted: Wed Mar 31, 2004 8:57 am Reply with quote

Thanks for the reply.

My Nuke database has been transferred over as well. I verified this by creating an Access/ODBC database that connected with no problem. My DNS records are still pointing to my box at home where it's being hosted, but here's the IP:

Only registered users can see links on this board! Get registered or login!
 
Raven







PostPosted: Wed Mar 31, 2004 10:27 am Reply with quote

Are you sure nuke is in the root directory? Did you perhaps install it in a subdirectory like http://65.125.227.170/html ? Look at your server error log.
 
Lithium







PostPosted: Wed Mar 31, 2004 10:59 am Reply with quote

I wish that was the case. Everything is in /var/www/html/ as it should be. It looks like you attempted to look in webroot/nuke and webroot/html, and thats the only thing in the error logs besides a few other things:

Code:
[root@new html]# tail -f /var/log/httpd/error_log

[Mon Mar 29 09:04:05 2004] [warn] child process 19272 still did not exit, sending a SIGTERM
[Mon Mar 29 09:04:05 2004] [warn] child process 19273 still did not exit, sending a SIGTERM
[Mon Mar 29 09:04:05 2004] [warn] child process 19274 still did not exit, sending a SIGTERM
[Mon Mar 29 09:04:05 2004] [warn] child process 19275 still did not exit, sending a SIGTERM
[Mon Mar 29 09:04:05 2004] [warn] child process 19276 still did not exit, sending a SIGTERM
[Tue Mar 30 05:05:06 2004] [notice] Digest: generating secret for digest authentication ...
[Tue Mar 30 05:05:06 2004] [notice] Digest: done
[Tue Mar 30 05:05:07 2004] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Thu Apr 01 00:29:15 2004] [error] [client 69.3.x.x] File does not exist: /var/www/html/html
[Thu Apr 01 00:29:25 2004] [error] [client 69.3.x.x] File does not exist: /var/www/html/nuke


Again, thanks for your help...

Warren
 
Raven







PostPosted: Wed Mar 31, 2004 11:01 am Reply with quote

If you will PM me your
site url/adminid/adminpw
ftp url/id/pass
phpMySQL url/id/pass

I will look into this further this afternoon.
 
Lithium







PostPosted: Wed Mar 31, 2004 11:13 am Reply with quote

Will do. Thanks...
 
Raven







PostPosted: Thu Apr 01, 2004 9:29 am Reply with quote

You had not configured your config.php file for MySQL access. But, even after I did that it still would not work. Upon further investigation, I find that your MySQL Server is NOT started. Please start your MySQL Server and then see what happens.
 
Lithium







PostPosted: Thu Apr 01, 2004 9:42 am Reply with quote

Maybe I gave you the wrong IP? I have a couple servers. On the contrary, Mysqld is running and I can connect from here. My config.php is also already configured....which part makes you think it isn't? Maybe I have something misconfigured....although it is very basic and I don't think I do.

mysqld (pid 5872) is running...

I can connect to the mysql daemon from here and see all the nuke and forum data just fine.

I enabled AllowOverride All per your request in PM and restarted apache.

Thanks again for your help...
 
Raven







PostPosted: Thu Apr 01, 2004 11:47 am Reply with quote

I went to the addresses you gave me and your config.php was not configured and MySQL is not running. I just checked again and it's still not working. When I run the phpinfo script in the link you sent me, MySQL is not running.
 
Lithium







PostPosted: Thu Apr 01, 2004 11:54 am Reply with quote

Shocked

Well, I'm still connected to it as we speak via ODBC/Access. I can give you a shell account as well if you want, and you will see the running process and it can be accessed via the command prompt. I'm not sure why phpinfo.php is saying it isn't running...it's probably looking for mysql.sock in a different location than it is, however Phpnuke connects via tcp/ip on the specified port, I thought...

Now I'm really confused. I suppose if config.php wasn't configured it might have been because I have tried to overwrite the existing install with the regular 6.9 install, and then, when that didn't work, overwriting it again with my current stuff...blablabla....but anyway maybe it was at default because of this.

I'm still at the originial problem. I don't care much what phpinfo has to say I don't think (??), but if you want I can track down wherever it wants the mysql.sock and soft link it to that location.

Any other suggestions?
 
Raven







PostPosted: Thu Apr 01, 2004 11:57 am Reply with quote

I have sent you a PM. I placed a test script in your directory and it reveals also that MySQL is not running, or at least not running correctly. That's why Nuke gives you a blank page.
 
Lithium







PostPosted: Thu Apr 01, 2004 2:53 pm Reply with quote

I notice on another box of mine that there is about 5 running mysqld processes. On this box, there is only one....although I am able to access the data manually thru ODBC. The mysql.sock is in the standard place, the same place it has to be on my other server in order for it to work correctly. Can you offer any other suggestions? I noticed on your homepage that you also do mysql/php/etc...can I give you access to a shell account and have you fix this for a small fee? I was at my wits end before I ever came to you for help... Rolling Eyes

Oh, and also...just for kicks I stopped mysqld on another box running Nuke, and it gave me an error message, similar to that of your test script. Weird, to say the least...

Thanks again for your help with this...
 
Raven







PostPosted: Thu Apr 01, 2004 5:27 pm Reply with quote

Please PM me the id and pass for root access.
 
Raven







PostPosted: Thu Apr 01, 2004 7:23 pm Reply with quote

My guess is that it lies in the way you compiled PHP to recognize MySQL. The fact that php is not recognizing MySQL would lead me to believe that the directive you used when compiling php (--with-mysql=shared,/usr) may be incorrect. I have never used the binaries to set up any site - I always compile eveything. So, I would suggest that you review your installation and compile instructions for the MySQL Server and Client binaries that you use. This error
Fatal error: Call to undefined function: mysql_connect()
means that PHP was not able to locate this call, surmizing that MySQL libraries are not compiled in.
 
Lithium







PostPosted: Thu Apr 01, 2004 10:32 pm Reply with quote

On everything on mine in the past I am used to compiling everything myself. This is one of those out-of-the-box linux machines and PHP and Mysql were already installed - which I was kinda happy about at first. I will recompile PHP with the correct Mysql option and see what happens. Again, thank you for your help with this!
 
Lithium







PostPosted: Sun Apr 04, 2004 4:09 pm Reply with quote

Today I compiled mysqld and php 4.3.5 from source. I copied the mysql headers and while configuring php I did a configure --with-mysql=/usr/local/ --with-zlib. It configured without error and I went ahead and did a make and make install. My problem now is, when I look at the phpinfo.php, it still shows the old version, not the new (and the mysql connect call is still not recognized). Do you have any idea how I can resolve this?

Thanks...
 
Raven







PostPosted: Sun Apr 04, 2004 4:48 pm Reply with quote

Did you stop Apache before your make install? If not, stop Apache. Then do a make install. Then start Apache.
 
Lithium







PostPosted: Sun Apr 04, 2004 5:29 pm Reply with quote

Thanks for your blazing fast reply Very Happy I didn't stop it the first time I did a make install, but I stopped apache, did a make clean, configure, make, make install, started apache, and went to the phpinfo.php page and it still says version 4.2.2 not 4.3.5. Mysql connect isn't working still either!! AHHHH. Where's my lithium. Shocked
 
Raven







PostPosted: Sun Apr 04, 2004 5:57 pm Reply with quote

My guess is that Aoache is looking for your php binary in the wrong location. Doan updatedb, and then whereis and/or locate on the php *.so file.
 
Lithium







PostPosted: Mon Apr 05, 2004 8:29 pm Reply with quote

My php so file is in with the rest of the apache modules, in /usr/lib/httpd/modules/.

I've looked in the apache config, however there is no reference whatsoever to the php module. For everything else in the directory above, there is a LoadModule line in the config. I've browsed around a little and cannot find where this is stated.

Do you have any idea of the top of your head?
 
Raven







PostPosted: Mon Apr 05, 2004 8:30 pm Reply with quote

That is not the normal place for the php so file. Did you do the updatedb and whereis to see if there was the latest php so file in another place? What is the date stamp of that so file?
 
Lithium







PostPosted: Mon Apr 05, 2004 9:09 pm Reply with quote

Date stamp is June 2003.... =/ Sounds like I need to figure out how to get a newer one!

I did an updatedb although it's a cron job as well.

I may have put the so file there, thinking that's where it belonged.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©