FAQ
EasyPHP FAQ : Frequently Asked Questions about EasyPHP, WAMP parameters, Configuration Files, Windows, PHP, Apache, MySQL, PhpMyAdmin and Modules.
PHP, MySQL, Apache, PhpMyAdmin
EasyPHP
- How to activate RewriteRules ?
- [5.3.3, Vista/Seven] Blank page or
Warning: mysql_connect() [function.mysql-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) - [5.3.3, Vista/Seven]
Unexpected end of MySql... See log file? - [5.3.X, Vista/Seven/IPv6 enabled] Got connection problem with mysql and access to phpMyAdmin
- [2.0] 2000 SP4 : Apache'a Alias (and Administration page) can't be reach
- [>= 1.8] Manager freeze at startup
- [>= 1.8] There 2 configuration file for each component. Which one can I edit ?
- I have the message
apache.exe - Impossible to find the entry point It's not possible to find the entry point mysql_slave_query for the procedure in dinamically linked library LIBMYSQL.dll - [>= 2.0] My PHP scripts don't works and display PHP code !
- [1.8] How to make a package with my PHP application ?
- [1.8] On 98 or ME, computer become very slow after startup.
- [1.8] At startup, manager "hang".
- [1.8] EasyPHP 1.8 doen't start under Windows NT with the messsage can't found GetLongPathA in KERNELL.32.dll
- How can I store my Mysql database in another foder ?
- When I click Local Web ou Administration I'm redirected to myway.com or a seach web
- How to upgrade to PHP5
- How to install PostgreSQL with EasyPHP ?
- MySql doesn't start under Windows 2003 server
- Mysql stops with this message 'unexpected end of MySql!'.
- [1.7] Settings of firewall for local use.
- [1.7] I get the "Server cannot be runned : another server use the requested port" error.
- [> 1.6] I get many "Notice: Undefined variable" errors in my scripts.
- [> 1.7] How to connect to MySql from the outside
- [1.7] Which configuration differences between PHP the 1.6 and 1.7 version ?
- I activated a PHP extension, and since then Apache does not start or shows errors.
- When I want to access to the local web or administration nothing happens...
- Some programs feeze when trying to open a file while EasyPHP is running. To turn off EasyPHP is enough to unfreeze them.
- MySql will not run and I get the message: 'C:\PROGRA~1\EASYPHP\MySql\bin\mysqld.exe: Table 'mysql.host' doesn't exist' into MySql's error Log.
- When running Easyphp I get an error message about php4Apache.dll
- 'Web Local' opens a list of the Kazaa shared files.
- How to upgrade current PHP version ?
- When will the next version of EasyPHP come out?
- [> 1.5] How to have access to phpMyAdmin from my local network or Internet ?
- When I try with http://myserver/directory he can not find the directory. I have to add a '/' after, using http://monserveur/directory/ to get it
- When I download EasyPHP and try to install it, there's a message saying the file is corrupt/damaged.
- [v1.6] My scripts worked perfectly with 1.5 but now I get this error : Warning: Forbidden access for user: 'user@localhost' (password: YES) when I want to connect to MySql.
- [v1.6] I get an error message when running easyphp 1.6. The message indicates that chkap.bat is missing
- [v1.6] Installing works fine, but there are many winoldap tasks running
- [v1.6] I got no "Administration" item in the manager's menu
- I installed EasyPHP on a NT4 OS [also true for 95], but after a few seconds, servers stop working
- On Windows XP, some pages may bug or display some weird letters, but only from client stations.
- How to insert existing data in the mySQL database:
- EasyPHP is working on Macintosh ?
- When connecting on the localhost server I got
"Page cannot be displayed, Not Connected"! - I got error messages regarding bad versions of Odbcint.DLL or Odbc32.DLL
- I got this error message :
PHP Warning: Unable to load dynamic library 'C:\EasyPHP\php\extensions\php_gettext.dll'-One peripheral is connected to the system and doesn't work properly, in Unknown on line 0 - How can I change the "www" directory's location ?
- How my server can be shared over an Intranet or Internet connection?
- I have the following error: "425 HTTP Error Unable to connect with remote host" when accessing to the server.
- How can I create a
.htaccessfile under Windows ? - [v1.5] How can I protec the phpMyAdmin access from visitors?
- How can I change the password for a mySQL user?
- [v1.5] EasyPhp doesn't work with XP. I got this error message "Cannot run Apache : The parameter is incorrect"
- When I want to use the local web server, the browser has this URL: http://127.0.0.1/ but displays "Page cannot be acceeded"
- The "mail" function from PHP returns an error (0) !
- When I launch EasyPHP, I got this message : "L'ordinal 6453 est introuvable dans la bibliothèque de liaisons dynamique MFC42.DLL".
- I got this error message "Warning: Can't connect to MySQL server on 'localhost' (10061) in d:\easyphp\phpmyadmin\lib.inc.php on line 351" when accessing to PhpMyAdmin.
- It still does not work : I get this error message: [crit] (2)No such file or directory: make_sock: failed to get a socket for port 8080 in the log file.
- Apache doesn't start and gives this error : [crit] (2)No such file or directory: make_sock: failed to get a socket for port 80 in log file.
- What are the: name of the server, the user name, the database name and the password for accessing mySQL capabilities?
- There's always 2 process running for the Apache server, is that normal?
- Installation failed: the file "msvcrt.dll" from the SYSTEM directory cannot be replaced nor renamed because the file is in use.
- When I start EasyPHP, I got the error: "Unable to load dynamic library 'C:\EasyPHP\PHP\EXTENS~1\php_curl.dll' - Le module spécifié est introuvable". I checked the path, the file is already there. I got multiple displays like that for each DLL files.
- When I launch apache.exe a DOS window appears and displays "Syntax error on line 71 of d:/easyphp/apache/conf/httpd.conf: cannot load d:/easyphp/php/php4apache.dll into server: (1157), une des librairies nécéssaire à l'éxecution de cette application n'a pu être trouvée".
- DLL ws2_32.dll file is missing
- In apache configuration file:
- Uncomment LoadModule rewrite_module modules/mod_rewrite.so
- In <Directory "${path}/www"> section replace AllowOverride None by AllowOverride All
- [5.3.3, Vista/Seven] Blank page or
Warning: mysql_connect() [function.mysql-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306)- If you're administrator, edit C:\Windows\System32\drivers\etc\hosts file and uncomment (remove # char) before line 127.0.0.1 localhost'
- Always use 127.0.0.1 for MySQL connection host parameter
- You need to change the user s permission for the EasyPHP directory
- 1. Go to 'Computer', open/view Drive C, then double click 'Program Files (x86)'.
- 2. Right click on 'EasyPHP5.3.0' folder then click 'Properties'.
- 3. On 'Security' tab click 'Edit' button.
- 4. Select the user that you are currently using.
- 5. Under 'Permissions for Users' box, tick 'Full control' on 'Allow' column.
- 6. And then click 'OK' button to apply the changes.
- IPv6 windows resolved 'localhost' on IPv6 loopback address (::1). 2 solutions:
- if you're administrator, edit C:\Windows\System32\drivers\etc\hosts file and uncomment (remove # char) before line 127.0.0.1 localhost'
- if you're not administrator
- in phpMyAdmin configuration file config.inc.php replace $cfg['Servers'][$i]['host'] = 'localhost'; by $cfg['Servers'][$i]['host'] = '127.0.0.1';
- Always use 127.0.0.1 for mysql connection host parameter
- Add 'Win32DisableAcceptEx' directive in Apache conf file
- By default the manager try to access to the net to check update. Firewall can block these requests so the application hang.
To correct the problem: either configure your firewall to authorize EasyPHP.exe to access to the net, or change CheckVersion flag to N in EasyPHP.ini. - In few words : use manager's menu to acceed to the good one.
In details : edit files in conf_files directory. On modifications, EasyPHP manager will generate the file used by the corresponding server/component, with good path in it, and restart the server. This enable you to move your EasyPHP folder as you want, on any disk or USB key. - I have the message
apache.exe - Impossible to find the entry point It's not possible to find the entry point mysql_slave_query for the procedure in dinamically linked library LIBMYSQL.dllSearch 'LIBMYSQL.dll' file on your hard drive. You should find one in 'system32' directory in Windows installation drive. Rename or delete this file. - It's by design. As you're informed during installation,
short_tagPHP configutation variable is now defined asOFF.
You can now easily include XML section which also use<?tag.
Just use<?phptag instead of<?one for PHP block code. - Read this documentation.
- Uncomment skip-innodb in MySql configuration file.
- Your proxy doesn't respond. Put CheckVersion=N in EasyPHP.ini file.
- [1.8] EasyPHP 1.8 doen't start under Windows NT with the messsage can't found GetLongPathA in KERNELL.32.dllReplace EasyPHP.exe by this patch and run EasyPHP.exe /install
- Stop MySQL
- Copy all files and folders from mysql\data to the new folder
- Modify datadir from MySql configuration file to match the new folder path (it's recommended to backup the file before modifying it) ATTENTION: Use / instead of \ for folder path.
- Start MySQL.
- Use a soft like Ad aware to eradicate spywares.
- The last version of PHP can be found at http://www.php.net/downloads.php
Download the "PHP 5.0.1 zip package" (for windows) and unzip it into the folder /easyphp/php/
Modifie the /easyphp/apache/conf/httpd.conf
(the few modified lines:)
LoadModule php4_module "C:/EasyPHP/php/php4apache.dll" must be set to
LoadModule php5_module "C:/EasyPHP/php/php5apache.dll"
AddModule mod_php4.c must be set to
AddModule mod_php5.c
For this group of lines, just add "index.php5"
DirectoryIndex index.html index.shtml index.wml index.pwml index.php index.php3 index.php4 index.php5
same for this line: add ".php5":
AddType application/x-httpd-php .phtml .pwml .php3 .php4 .php5 .php .php2 .inc
After a test (reboot of the server, too...), a phpinfo() shows:
Apache Version Apache/1.3.27 (Win32) PHP/5.0.1 - Read this contribution.
- Find any my.ini on C: drive and move it in Windows directory
- An older configuration file from a previous installation of Mysql was left on your computer. Find the c:\my.cnf and rename it. Then restart Mysql.
- In order for the Easyphp pack to operate correctly, the firewall must be set as below:
- Authorise Apache.exe to listen to port 80.
- Authorise Mysqld.exe to listen to port 3306
- Authorise EasyPHP.exe to access to port 80 (Apache) from address 127.0.0.1
- Authorise EasyPHP.exe to access to port 3306 (MySql) from address 127.0.0.1
- Authorise Apache.exe to access to port 3306 (MySql) from address 127.0.0.1
- Authorise Mysqladmin.exe to access to port 3306 (MySql) from address 127.0.0.1
- If you're on 2K or XP, try running servers as services. If error still appear, configure all your applications so that none use port 80 (used by Apache) nor 3306 (used by MySql).
To know which application uses one of those ports, scan your computer with TCPView.
(Usual applications that may be using port 80 (http) are, between others, Kazaa Lite, Norton Firewall (proxy function), IIS (under XP Pro), Yahoo Messenger, Internet Security). - Since PHP 4.2.0 from April 2002, you are now supposed to:
- Initialize your variables before you use them.
- Get the content of the variables you sent via GET or POST with (respectively) $var=$_GET['var']; or $var=$_POST['var'];.
- Use $_SESSION. to generate sessions.
- Edit the configuration file from MySql and comment the following ligne:
bind-address=127.0.0.1 - 1.6 :
register_globals : On
magic_quotes : On
reporting_errors : E_ALL | ~E_NOTICE
output_buffering = Off
1.7 :
register_globals : OFF (see why here)
magic_quotes : OFF
reporting_errors : E_ALL
output_buffering = 4096 - Probably a DLL dependency problem.
- Download and install Dependency walker.
- Open with this program the DLL extension you want to install (php_extensionname.dll).
- Open "Options/Configure search order" and add the folder path "PHP" of EasyPHP.
- The dependency errors are in yellow. Download the missing DLL and add them in the PHP folder.
- Try again as many times as necessary if there are still dependency problems with the new DLL.
- Set a default browser.
- Some programs feeze when trying to open a file while EasyPHP is running. To turn off EasyPHP is enough to unfreeze them.For 2000 and XP, set the servers in 'service' mode should do.
- MySql will not run and I get the message: 'C:\PROGRA~1\EASYPHP\MySql\bin\mysqld.exe: Table 'mysql.host' doesn't exist' into MySql's error Log.You should not have erased MySql database ! She is absolutely essential to a correct working.
2 possibilities (choose) to repair:- Reinstall EasyPHP
- Unzip this compressed file into EasyPHP\MySql\Data\MySql directory (may need to be created).
- Some OS DLL are not up to date. Install this package.
- Kazaa uses the same socket as Apache : stop Kazaa and rerun Apache.
- 0. Stop the servers
- 1. Download the zip file on http://www.php.net/
- 2. Unzip it into EasyPHP's installation directory.
- 3. Rename \php\ directory into \phpold\, for example (! keep it)
- 4. Rename the newly unziped directory into \php\
- 5. Copy "c:\...\easyphp\php\sapi\php4apache.dll" into "c:\...\easyphp\php\"
- 5. Replace DLL php4ts.DLL of Windows\System directory by the one of "easyphp\php\sapi\" directory
- 6. It is suggested to replace the old php.ini (found in c:\windows\ usualy) by the new php.ini that corresponds to the new version (A copy of the old one can be kept to configure PHP in the same way)
- 7. Run again EasyPHP.
- No planed date
- In phpMyAdmin's configuration file (config.inc.php), set
$cfgPmaAbsoluteUri = "http://$_SERVER[HTTP_HOST]:$_SERVER[SERVER_PORT]/mysql/"; - Search for phpMyAdmin in Apache's configuration file. In Directory, add IP adresses of the computers you want to give the right to use phpMyAdmin. For example:
Allow from 192.168.69.1
- In phpMyAdmin's configuration file (config.inc.php), set
- When I try with http://myserver/directory he can not find the directory. I have to add a '/' after, using http://monserveur/directory/ to get itSearch for UseCanonicalName in Apache's configuration file, and replace On by Off.
- When I download EasyPHP and try to install it, there's a message saying the file is corrupt/damaged.There was a problem during download. Try to download it again. Two ways to do so
- Empty the browser's cache.
- On the page where "Connecting..." is written, refresh the page to download from another mirror site.
- [v1.6] My scripts worked perfectly with 1.5 but now I get this error : Warning: Forbidden access for user: 'user@localhost' (password: YES) when I want to connect to MySql.Only the root user (without password) has the rights to connect to the database. Either modify your scripts to use it, or add the user you need (phpMyAdmin/users and privileges: See phpMyAdmin's documentation for more information).
- [v1.6] I get an error message when running easyphp 1.6. The message indicates that chkap.bat is missingBound to the previous problem. Same punishment too... :-)
- The manager is testing the validity of Apache's configuration file (using Apache -t) before running Apache.
There is a bug in Win98 that makes it running incorrectly, and a winoldap stays in memory.
Replace the manager by this version (in which the failing test is not activated). - A small mistake, already repaired in this version of the manager.
- OS' DLL are not at a sufficient level and prevent Apache to function properly.
To install a more recent version of IE (at least 5.0 is recommended) should solve the problem. - It's an important compatibility problem with Windows XP and PHP 4.0.6. This will be fixed in version 1.6 of EasyPHP
- 2 possibilities:
- From Microsoft Access: export your data as CSV format, then use PhpMyAdmin to import the file.
- Use a software (such as MySqlFront, see links page).
- Yes...with the Virtual PC emulator :)
- Go in the menu
Options/Internet OptionsthenConnexion, checkNever establish a connection.
You need to connect yourself manually for accessing the Internet. - It's an installation problem, you need to replacethese files by some DLL files from the Windows 98 CD-ROM, or you can download them here.
- I got this error message :
PHP Warning: Unable to load dynamic library 'C:\EasyPHP\php\extensions\php_gettext.dll'-One peripheral is connected to the system and doesn't work properly, in Unknown on line 0Deletegettextfrom the extensions used by PHP :
Edit thephp.inifile in the WINDOWS directory, and add a parse beforegettext(like;gettextbefore the extension). - You need to change the configuration fle of Apache (httpd.conf). Just update the path for DocumentRoot. For example:
DocumentRoot "C:/MyWebSite"(Line 82)
<Directory "C:/MyWebSite">(Line 91)
(line numbers may vary) - Please read this article which should resolve all your problems.
- I have the following error: "425 HTTP Error Unable to connect with remote host" when accessing to the server.Deactivate the proxy or put the local address in the list of addresses than shouldn't be acceeded by the proxy.
- Some versions of Windows denies this kind of name
.htaccess(starting with a '.').
You need to use a text editor such as EditPad or UltraEdit for saving the file, or you can rename the file in a DOS window :
Us the ren command:ren htaccess .htaccess - Add a .htaccess file in the phpmyadmin directory having :
Order deny,allow
allow from 127.0.0.1
deny from all
- Open phpMyAdmin, and click on "Users & Permissions".
Click on the "modify" link of the user you want to change the password, and follow the instructions.
WARNING: if you set a new password for the "root" user, you will not be able to access phpMyAdmin anymore, or you will need to re-configure phpMyAdmin: edit the "EasyPhp\phpMyAdmin\config.inc.php" file and set your new password with this line$cfgServers[1]['password'].
For Example:
$cfgServers[1]['password'] = 'mynewpassword' - [v1.5] EasyPhp doesn't work with XP. I got this error message "Cannot run Apache : The parameter is incorrect"Replace the .exe of the manager by the following one here.
(for those who activated the "98 compatibility", it should now be desactivated).
WARNING: Don't forget to adjust the paramaters with the Windows XP firewall in order to have the Apache's service (on port 80 with TCP) and MySql's service (port 3306 with TCP) running. - When I want to use the local web server, the browser has this URL: http://127.0.0.1/ but displays "Page cannot be acceeded"If you use proxy, configure your browser to do not use proxy for local adresses.
Find spyware with sift such as Ad aware.
If you're an AOL user, use another browser than ther AOL one.
If error still appear then quit EasyPHP, launch Apache manually, and look for some errors.
If Apache says it can't load one or more extensions, add comments in the php.ini file:- Choose expert mode
- From the Configuration menu select "PHP"
- Search for "extension"
- Add a ';' at the beginning of the line where the extension is (for example: ;extension=php_gettext.dll)
- You need to replace this line: SMTP="localhost" in your PHP conf file (php.ini) by SMTP="mail.isp.com" where mail.isp.com stands for the mail server of your ISP.
- When I launch EasyPHP, I got this message : "L'ordinal 6453 est introuvable dans la bibliothèque de liaisons dynamique MFC42.DLL".Replace the file EasyPhp.exe in the installation folder by a version without MFC. Can be downloaded here.
- I got this error message "Warning: Can't connect to MySQL server on 'localhost' (10061) in d:\easyphp\phpmyadmin\lib.inc.php on line 351" when accessing to PhpMyAdmin.2 main reasons for that:
- "localhost" is not defined in the system. Edit the "hosts" file inside the WINDOWS directory (if this file doesn't exist, rename the "hosts.sam" file to "hosts") and add the following line :
127.0.0.1 localhost
(the "hosts" file can also be found inthe: WinNT\System32\Drivers\etc path with windows 2000 or windows XP). - A firewall denys access to the mySQL server: open the 3306 port connection from your Firewall features.
- "localhost" is not defined in the system. Edit the "hosts" file inside the WINDOWS directory (if this file doesn't exist, rename the "hosts.sam" file to "hosts") and add the following line :
- It still does not work : I get this error message: [crit] (2)No such file or directory: make_sock: failed to get a socket for port 8080 in the log file.TCP/IP layers are not installed on your computer. Set a fake RAS (internet) connection to force the system to install TCP/IP.
- Apache doesn't start and gives this error : [crit] (2)No such file or directory: make_sock: failed to get a socket for port 80 in log file.A Web Server is already installed on the computer and Apache can't use the port 80 (port conflict). You need to check the use of ports with your network running software.
You might use the port 8080 instead. The value should be higher than 1024.
With IIS: In the Administration tools, click on "Internet services Manager", select "Web site as a default", then right-click on the Properties, here you can change the port.
With Apache: edit the configuration file, look for "Port" inside and set a new value. Restart if needed.
Please remember set the correct port when accessing from the browser. If port is set to 8080, you should enter:
http://127.0.0.1:8080/ - What are the: name of the server, the user name, the database name and the password for accessing mySQL capabilities?"localhost", "root", ""
- Yes it is :).
- Installation failed: the file "msvcrt.dll" from the SYSTEM directory cannot be replaced nor renamed because the file is in use.EasyPhp may work with the "msvcrt.dll" file already included with the system. Just Ignore this error and continur the installation. If you keep having errors, there are multiple ways to force the installation:
- Close all running applications and try running the installer again.
- Restart in Safe Mode and run the installer.
- Restart in MS-DOS mode or on a startup floppy disk, rename the MSVCRT.DLL file and start the installer.
- When I start EasyPHP, I got the error: "Unable to load dynamic library 'C:\EasyPHP\PHP\EXTENS~1\php_curl.dll' - Le module spécifié est introuvable". I checked the path, the file is already there. I got multiple displays like that for each DLL files.The directory's is badly defined. Search inside the configuration file of PHP (usually, the path is: C:\WINDOWS\php.ini). Look for "extension_dir" and replace "EXTENS~1" by "extensions".
- When I launch apache.exe a DOS window appears and displays "Syntax error on line 71 of d:/easyphp/apache/conf/httpd.conf: cannot load d:/easyphp/php/php4apache.dll into server: (1157), une des librairies nécéssaire à l'éxecution de cette application n'a pu être trouvée".Be sure to put the DLL file
msvcirt.dllavailable here here in the SYSTEM directory of Windows (usually the path is C:\WINDOWS\SYSTEM with 95/98/ME and C:\WINNT\SYSTEM32 with NT/2000/XP). Re-launch Apache and it should work. - This DLL is not included in Windows 95.
You can download it here : ws2_32.dll