O'Reilly Forums: Phpmyadmin Does Not Work From Easyphp - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Phpmyadmin Does Not Work From Easyphp link from EashPHP to phpmyadmin results in blank page

#1 User is offline   calvinhilton 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 21-February 10

Posted 21 February 2010 - 08:12 AM

I just downloaded EasyPHP and installed on Windows 7 Pro 32-bit system.

Apache works.

mysql works from command window but phpmyadmin button on EasyPHP page does not work.

when i click on phpmyadmin button from EasyPHP page I get a blank page. URL is http://127.0.0.1/home/mysql/.

I was seeing "File does not exist: C:/EasyPHP/www/favicon.ico" in the Apache error log so I copied the phpmyadmin favicon to C:/EasyPHP/www/favicon.ico. I'm not getting that error any more but I still only get a blank page.

The last part of the Apache access log says:
127.0.0.1 - - [21/Feb/2010:10:53:00 -0500] "GET /favicon.ico HTTP/1.1" 200 18902
127.0.0.1 - - [21/Feb/2010:10:59:18 -0500] "GET /home/mysql HTTP/1.1" 301 236

Apache httpd.config has this:

#
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
Alias /images_easyphp "C:/EasyPHP/home/images_easyphp"
Alias /home/mysql "C:/EasyPHP/phpmyadmin"
Alias /home/sqlite "C:/EasyPHP/sqlitemanager"
Alias /home "C:/EasyPHP/home"

c:/easyPHP/phpmyadmin/ contains a file named index.php

http://localhost/home/phpinfo.php works. I don't see anything wrong with what it tells me.

I've spent the last 24 hours searching for the cause and haven't found it. I've searched this forum and the rest of the Internet but I haven't found the solution.

Any ideas?

Thanks.
0

#2 User is offline   Robin Nixon 

  • Active Member
  • PipPipPipPip
  • Group: O'Reilly Author
  • Posts: 113
  • Joined: 26-June 09
  • Gender:Male
  • Location:UK

Posted 21 February 2010 - 08:18 AM

You've got me scratching my head over that one too. Maybe the EasyPHP website has somewhere you can ask a question...

On the other hand, I nowadays recommend the Zend Server CE WAMP solution instead of Easy PHP - it came out after the book went to press and is an absolutely superb system, which you can get at:

http://www.zend.com/en/products/server-ce/

You may find it easier to install that instead of trying to tweak EasyPHP. Certainly the second edition of the book will be based on Zend rather than EasyPHP.

If you're still having problems get back to me here and I'll see what I can find out.



0

#3 User is offline   calvinhilton 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 21-February 10

Posted 21 February 2010 - 09:09 AM

QUOTE (Robin Nixon @ Feb 21 2010, 08:18 AM) <{POST_SNAPBACK}>
You've got me scratching my head over that one too. Maybe the EasyPHP website has somewhere you can ask a question...

On the other hand, I nowadays recommend the Zend Server CE WAMP solution instead of Easy PHP - it came out after the book went to press and is an absolutely superb system, which you can get at:

http://www.zend.com/en/products/server-ce/

You may find it easier to install that instead of trying to tweak EasyPHP. Certainly the second edition of the book will be based on Zend rather than EasyPHP.

If you're still having problems get back to me here and I'll see what I can find out.


Robin, Thanks for the rapid response. I'll take a look at Zend.
0

#4 User is offline   Hesadanza 

  • New Member
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 22-February 10

Posted 22 February 2010 - 12:42 PM

I had the same problem yesterday with EasyPHP, the phpmyadmin link just hangs and then gives a blank page. After searching around, I ended up going with XAMPP instead. What are the differences between XAMPP and Zend? And should I switch to Zend?
0

#5 User is offline   Robin Nixon 

  • Active Member
  • PipPipPipPip
  • Group: O'Reilly Author
  • Posts: 113
  • Joined: 26-June 09
  • Gender:Male
  • Location:UK

Posted 23 February 2010 - 01:33 AM

If it works for you then great - I don't think you have a need to change.

The main reason for choosing Zend Server CE is that it is by the company that actually develops the PHP main engine. There is therefore no WAMP better positioned than Zend, and I have found it to be the most rugged and reliable.
0

#6 User is offline   calvinhilton 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 21-February 10

Posted 26 February 2010 - 12:35 PM

QUOTE (Robin Nixon @ Feb 23 2010, 01:33 AM) <{POST_SNAPBACK}>
If it works for you then great - I don't think you have a need to change.

The main reason for choosing Zend Server CE is that it is by the company that actually develops the PHP main engine. There is therefore no WAMP better positioned than Zend, and I have found it to be the most rugged and reliable.


I installed Zend Server CE and it went smoothly until I got an "Internal server error" but couldn't find anything an any log file that pointed me to the problem.

Luckily it was a small php program and I reconstructed it line by line until I hit the line that was causing the problem. It was caused by "mysql_close()" which used to work in an old environment but no longer does.

I would like to be able to find a clue to the cause somewhere so I don't have to use the same resolution technique next time.


0

#7 User is offline   Robin Nixon 

  • Active Member
  • PipPipPipPip
  • Group: O'Reilly Author
  • Posts: 113
  • Joined: 26-June 09
  • Gender:Male
  • Location:UK

Posted 01 March 2010 - 04:18 AM

Hi Calvin,

The mysql_close() function is mostly pointless, and you will probably never require it. According to the PHP website itself "Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution". See http://php.net/manual/en/function.mysql-close.php

So I wouldn't worry about it and would just not use the function in future. However there is one thng I recommend that you do in Zend Server, which is to go to http://localhost/ZendServer if you are using Windows, and then select Server Setup -> Directives -> Error Handling and Logging, and click the On check box for display_errors. Thereafter all errors will be shown to you, instead of just getting an internal server error.
0

#8 User is offline   antztein 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 17-February 12

Posted 17 February 2012 - 12:57 PM

I found the solution to this problem.

Open the apache configuration file httpd.conf

Look for the line starting with...
Alias /home/mysql

If it is
Alias /home/mysql "${path}/phpmyadmin" and there does not exist phpmyadmin folder, then try to locate it in the EasyPhp installation folder and change the location accordingly. Restart EasyPhp and you should be able to access phpMyadmin now.

I am using EasyPhp version 5.3.9 and I found my phpMyadmin folder within the modules subfolder and changed the line to

Alias /home/mysql "${path}/modules/phpmyadmin349x120217024604"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users