Reply
 
Thread Tools Display Modes
  #1  
Old 04-10-2007, 08:13 AM
nano nano is offline
Junior Member
 
Join Date: Apr 2007
Location: BALI - INDONESIA
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Web Server
I'm installing Apache2_PHP5 trough PBI file, after I've finish installing it then I am testing it by browsing my own IP address using internet browser, and it's going well without problem. My internet browser showing me the default index.php file.
But when I try to put my own php files including index.php flie, to the default document root, and once again I'm browsing my own IP address but there was an error message
403 Forbidden
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/Programs/Apache2_PHP5/htdocs/index.php on line 4

then I'm checking my php file permission and it's already 755.
what is this message trying to indicate ? is it that our php program not compatible with MySQL version ? or any other meaning ?
Thank's
Reply With Quote
  #2  
Old 04-10-2007, 11:41 AM
Tricky Tricky is offline
Senior Member
 
Join Date: Apr 2007
Location: Porto, Portugal
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Do you have mysql up and running?
Reply With Quote
  #3  
Old 04-11-2007, 04:47 AM
nano nano is offline
Junior Member
 
Join Date: Apr 2007
Location: BALI - INDONESIA
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Okay, I have just install MySQL5.0.24-PV5.0.24a trough PBI file, but another error message was appear.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql'@'localhost' (using password: YES) in /usr/Programs/Apache2_PHP5/htdocs/index.php on line 4

Warning: mysql_db_query(): supplied argument is not a valid MySQL-Link resource in /usr/Programs/Apache2_PHP5/htdocs/index.php on line 7

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /usr/Programs/Apache2_PHP5/htdocs/index.php on line 8


How can I fix that problem ?
Reply With Quote
  #4  
Old 04-11-2007, 07:33 AM
Solarin's Avatar
Solarin Solarin is offline
Super Moderator
 
Join Date: Jul 2005
Location: Birmingham, UK
Posts: 743
Thanks: 0
Thanked 0 Times in 0 Posts
Default
That simply means, your php script is using an invalid username/password combination to access mySQL.
__________________
Tim McCormick
PC-BSD Lead Developer
tim at pcbsd.org
Reply With Quote
  #5  
Old 04-20-2007, 11:14 AM
nano nano is offline
Junior Member
 
Join Date: Apr 2007
Location: BALI - INDONESIA
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by Solarin
That simply means, your php script is using an invalid username/password combination to access mySQL.
but when I installed in windows using XAMPP , it's running without any problem, then I'm try to install PAMP, because I think PAMP it's similar with XAMPP, but still there is a same problem, then I am checking the PHP version of both program, in XAMPP I found that the version of PHP is 4.3.6 in PAMP is 5.1.2

and now I have a question ?
Can I downgrade the version of the PHP from 5.1.2 to 4.3.6 ? and how to change it ?

Thanks
Reply With Quote
  #6  
Old 04-24-2007, 07:55 AM
putu putu is offline
Senior Member
 
Join Date: Mar 2007
Location: DENPASAR - BALI
Posts: 548
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to putu
Default
I don't know how to downgrade it, but maybe this can help you.

http://dev.pcbsd.org/pbi/PAMP5.2-PV2a.pbi

this is the new version of PAMP, PAMP 5.2, you can choose the PHP version as you like, PHP5 and PHP4. you can choose it at the first time of the installation.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
web server Maximus Gaius General Questions 2 10-15-2007 08:12 AM
kde is not server unix Feature Requests 6 03-10-2007 05:56 AM
GUI for Server treehel Feature Requests 10 11-25-2006 03:31 PM
PC-BSD as Server General Questions 7 10-31-2005 09:48 PM


All times are GMT. The time now is 11:29 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.