it lets me only sometimes to go into the log page (where i need to type in a user name and password) though it takes a long time- too long
and then it takes for ever to load and then turns up blank
Last edited by gkman; 02-11-2010 at 01:06 PM.
yes i restarted Apache . no i hadn't got any start up errors
i think i found the root of my problem.
i think i haven't got MySql set up correctly. but i don't know why.
i made a page with a simple code:
the output of this code is:
mysql_connect("localhost", "root", "XXXXXX") or die(mysql_error());
echo "Connected to MySQL<br />";
i am positive i have my password set right
Warning: mysql_connect() [function.mysql-connect]:  A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in D:\LocalHost\index.php on line 8
Warning: mysql_connect() [function.mysql-connect]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in D:\LocalHost\index.php on line 8
Fatal error: Maximum execution time of 60 seconds exceeded in D:\LocalHost\index.php on line 8
Last edited by gkman; 02-12-2010 at 06:34 AM.
i don't know. what is it?
Is one of your running processes MySQL server? Did you install the DB server as a service or for manual running?
i installed it as a service. and yes mysqld is running.
i think the problem might be in configuring php.ini because it was a bit different setup than other versions when i configured php with Apache so maybe it is different with mysql as well
Did you enable the mysql module in your php.ini? Does the appropriate .dll file exist in your 'ext' directory?
yes. i have enabled
i even copied the libmysql ( from php 5.2 ) file to windows system32 folder 'ext' folder and to the main php directory
i read i needed to do so in the install file that comes with php
Try uninstalling mysql, rebooting, and reinstalling it?
I tried to uninstall it reboot and install again>> still didn't work
So I made a little test
I kept the php.ini file as it is now and the rest of the php files changed back to previous version and it worked. then I upgraded the php version while keeping the same php.ini file and it doesn't work again!
now I know there is more settings to do with php 5.3.1 then other versions like other settings I had to do with apache
I just need to find out what it is
It is important to say that aside then the problem with myself php work great so I don't think it has to do with a bad copy since I also downloaded it a few times
Copy your existing php.ini file to a backup and use the distributed php.ini that 5.3.1 came with. Then if you are having trouble with the settings you can look at your old version to check specific values (such as max_upload_size, etc).
I did like you said still doesn't work. So I added to the httpd file the Line >> loadfile dlmysql ( or what ever the true name is) now it works only sometimes. How do I make it to work allways??
I suggested you edit your php.ini file. What do you mean you edited your httpd file to enable mysql?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)