xampp

I changed mysql port in xampp, now how do I listen to the new port?

我是研究僧i 提交于 2019-11-30 05:00:05
I have installed the latest xampp with mysql version 14.14 Distrib 5.6.21, the problem is in my computer, I already have a mysql database installed by other program that I am using. So I configure the xampp mysql port to 3307 (default is 3306) inside the my.ini file. However, now my localhost/phpmyadmin seems to read the database installed by the other program, not the one in xampp, and also when I test using some php files, it shows that I am connected to the database even though xampp is turned off( xampp mysql also disconnected ). How do I change the setting of my phpmyadmin and localhost

XAMPP - Session Cache is not configured [hint: SSLSessionCache]

巧了我就是萌 提交于 2019-11-30 04:58:50
When i am trying to start Apache server using XAMPP, it mainly says the following: [Apache] Check the "/xampp/apache/logs/error.log" file [Apache] and the Windows Event Viewer for more clues I checked the error log and it says: "Session Cache is not configured" Complete log is given below: [ssl:warn] [pid 5008:tid 316] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [mpm_winnt:notice] [pid 5008:tid 316] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations [mpm_winnt:notice] [pid 5008:tid 316] AH00456: Server built: Aug 18 2012

windows 8 NT Kernel and System using port 80

自古美人都是妖i 提交于 2019-11-30 04:32:40
This has long bugged me. after upgrading to Windows 8, i already cannot run my XAMPP server without using ports other than port 80, since a process called "NT Kernel & System" is using it. It's a system process so I cannot disable it. I don't have any IIS or Web Server installed so I am pretty frustrated how to use that Port 80. If anyone of you who knows how to change the port "NT Kernel & System" uses, that would be great! Thanks! I ran into this problem after installing just Apache 2.2.22 on Windows 8. What I'm strongly convinced of after scouring many forums for information is that the

Saving JSON string to MySQL database

社会主义新天地 提交于 2019-11-30 04:03:40
I have a JSON string with me {"name":"jack","school":"colorado state","city":"NJ","id":null} I need it to be saved in the Database. How could i do this ? My PHP code (I have only establish the connection to MySQL, but i am unable to save the records) <?php // the MySQL Connection mysql_connect("localhost", "username", "pwd") or die(mysql_error()); mysql_select_db("studentdatabase") or die(mysql_error()); // Insert statement mysql_query("INSERT INTO student (name, school,city) VALUES(------------------------- ) ") // (How to write this) or die(mysql_error()); echo "Data Inserted or failed"; ?>

PHP: How can I tweak PHPUnit to use a different PHP interpreter?

白昼怎懂夜的黑 提交于 2019-11-30 02:19:59
问题 My system has two PHP interpreters. One came bundled with the OS and the other I installed via the XAMPP package. All of my PHP extensions are applied to the XAMPP installation but PHPUnit seems to only run the version of PHP that came with my machine. Does anybody know of a way I can configure or rebuild PHPUnit so that it uses my XAMPP PHP interpreter exclusively? 回答1: Find the folder you installed PHPUnit in. There should be a file called phpunit.bat. It should have a line that reads

How to transfer my MySQL database to another computer?

一曲冷凌霜 提交于 2019-11-30 02:03:42
I am using XAMPP package in my own desktop with Window 7 as OS. That means I'm using MySQL DB and Apache server. Now I would like to copy/migrate my whole MySQL DB to my friend's desktop, which is also with Window as OS, and also using XAMPP package. Is there any way for me to do that? A.Aleem11 Copy database files from MySQL folder (under old xampp folder) except share , bin , and script folder see attached image to see which files need copy (only files with in green box) and replace all these database files in new installed xampp directory in MySQL folder. Restart xampp start MySQL and open

Memcached (not memcache) PHP extension on Windows

大憨熊 提交于 2019-11-30 01:46:03
问题 I can't seem to find the Memcache D extension for PHP. There are a few compilations of php_memcache.dll, but that's not the same. The main thing I'm missing is getMulti(), which doesn't exist in Memcache. So far I found this, but there's no DLL: http://pecl.php.net/package/memcached 回答1: Officially - it does not exist. There are several people who have created their own DLL's though. Here is one person's blog who has created the dll: http://trondn.blogspot.com/2010/07/libmemcached-on-win32

how to change xampp htdocs directory in OSX?

a 夏天 提交于 2019-11-30 01:45:13
I want to change XAMPP's htdocs directory. I followed the instructions to create a virtual host from this question: Make XAMPP/Apache serve file outside of htdocs this works fine on Windows 7, however when I try it on OSX, going to mysite.local just loads the xampp splash screen (mysite.local/xampp/index.html). I have restarted the web server. My virtual host declared in httpd-vhosts.conf is: <VirtualHost *:80> DocumentRoot Users/username/Documents/sitename.com ServerName sitename.localhost <Directory Users/username/Documents/sitename.com> Order allow,deny Allow from all </Directory> Antonio

Windows, XAMPP, PHP 7 and opcache

拜拜、爱过 提交于 2019-11-30 01:38:38
问题 I've installed latest XAMPP server with PHP 7 (update: checked also PHP 7.1) (on my Windows 10 system). Wanted to use opcache , so I enabled it in php.ini . [opcache] zend_extension=php_opcache.dll opcache.enable=1 opcache.enable_cli=0 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 With that change now, and with almost every page refresh, I'm getting this error from Apache: AH00428: Parent: child process 3748 exited with status 3221226356 -

how to create subdomains in apache(xampp) server?

喜欢而已 提交于 2019-11-29 23:57:24
I've trying to create subdomain in my local xampp installation for some time. I tried editing my httpd.conf file and I entered the following: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /ecommerce ServerName ecomm.localhost </VirtualHost> I also edited my windows hosts file and entered: 127.0.0.1 ecomm.localhost But when I type 'ecomm.localhost' in my firefox it gives me: Access forbidden!!! Can please anybody help me out? What exactly I'm doing wrong? I'm fairly new to this. I simply want to create multiple folders in my 'htdocs' folder and use them as different websites with