xampp

Rewriting URL with .htaccess local in XAMPP

别来无恙 提交于 2019-12-17 20:36:33
问题 My .htacces begins with RewriteEngine on RewriteBase / (I tried it also without RewriteBase...) I tried all of the following rewriting rules to rewrite the URL index.php?page=news to /blog RewriteRule ^/?([-A-Za-z0-9]+)/([-A-Za-z0-9]+)/blog$ index.php?page=$1 [L] RewriteRule ^([^/]*)/blog$ /sites/blog/index.php?page=$1 [L] RewriteRule ([a-zA-z]+)/([a-zA-z]+)/blog$ index.php?page=$1 [L] Nothing works - no error. Mod_rewrite is installed and working. I restarted Apache and MySQL everytime I

PHP with MySQL is slow

倾然丶 夕夏残阳落幕 提交于 2019-12-17 18:53:15
问题 (IMPORTANT) EDIT 3: Running the testajax2.php by itself and not Ajax. The duration is about the same, 1.02-1.03 seconds. So I guess that means the problem is in PHP-MySQL or XAMPP?? When I ran it through a phpMyAdmin query, here's the result: Showing rows 0 - 29 ( ~50 total. The query took 0.0015 seconds ). It appears the problem lies not in Ajax after all, but perhaps in PHP. How can I fix this? (I've also just edited the question title.) Answer: Add the following line in the hosts file

How to remove port number from http://localhost:8123 to use as http://localhost? [closed]

跟風遠走 提交于 2019-12-17 18:42:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I had to change my default apache port number 80 to 8123 (just random number) I changed the following files .. httpd.conf Listen 8123 ServerName localhost:8123 httpd-vhosts.conf NameVirtualHost *:8123 <VirtualHost *:8123> ServerName localhost DocumentRoot "C:/xampp/htdocs" DirectoryIndex index.php </VirtualHost>

Xampp MySQL not starting - “Attempting to start MySQL service…”

喜欢而已 提交于 2019-12-17 17:56:12
问题 I've just installed XAMPP for Windows - should be the newest version (XAMPP Control Panel v3.2.1). Apache is running just fine on port 80 and 443, but MySQL is not starting. When I press the start button, I get this message: Attempting to start MySQL service... Then a window pops up and asks me if I want to allow this, which I want. But nothing happens after that. I can press as many times as I want, but with the same result. What can I do with MySQL? 回答1: If you have MySQL already installed

Apache won't run in xampp

早过忘川 提交于 2019-12-17 17:34:16
问题 I have just installed XAMPP and everything works fine except that I can't get apache to run. It seems that port 80 is the problem, I have disabled Skype to use port 80 but it doesn't seem to fix it. I read somewhere that the SSL port can be the problem and should be changed. But I cant figure out were the port is or how to change it. "Check the "/xampp/apache/logs/error.log" file" I have tried to check this file but inside "logs" there isn't anything. From apache I can go to error but there

MySQL Database won't start in XAMPP Manager-osx

£可爱£侵袭症+ 提交于 2019-12-17 15:02:00
问题 I downloaded XAMPP about a month ago and it was working just fine. Today I installed a voice recognition software and then restarted my computer. Ever since, MySQL won't start in my manager-osx application. It doesn't throw me an in the application log. This is what it says: Stopping all servers... Stopping Apache Web Server... /Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd stopped Stopping ProFTPD... Checking syntax of configuration file /Applications/XAMPP/xamppfiles/proftpd

Custom 404 error issues with Apache - the ErrorDocument is 404 as well

余生长醉 提交于 2019-12-17 10:54:13
问题 I am trying to create a custom 404 error for my website. I am testing this out using XAMPP on Windows. My directory structure is as follows: error\404page.html index.php .htaccess The content of my .htaccess file is: ErrorDocument 404 error\404page.html This produces the following result: However this is not working - is it something to do with the way the slashes are or how I should be referencing the error document? site site documents reside in a in a sub folder of the web root if that

How to upgrade phpMyAdmin in XAMPP to latest?

怎甘沉沦 提交于 2019-12-17 10:25:12
问题 How to upgrade phpMyAdmin in XAMPP to latest, without affecting the database, settings, and files? 回答1: This site will be useful for your purpose https://www.ostraining.com/blog/coding/update-phpmyadmin/ 1.) Find Your Version Navigate to your phpMyAdmin interface and check what version you are using. Notice if it mentions the “latest stable version.” There will also be a message as you scroll down the page if there is an update to phpMyAdmin. 2.) Find Your phpMyAdmin Directory Go to your

SMTP server with XAMPP?

纵然是瞬间 提交于 2019-12-17 09:58:30
问题 I am new to php and in my project I have used php mail function, but while sending mail from database it shows an error like: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" By searching on stackoverflow and google, I come to know that XAMPP does not provide SMTP server and I will have to install a SMTP server. I am really confused.So, Which SMTP server I should install? 回答1: For this example, I will use PHPMailer. So first, you have to download the source code of

No connection could be made because the target machine actively refused it

自古美人都是妖i 提交于 2019-12-17 07:49:09
问题 When I was trying to connect my phpmyadmin on my XAMPP , it gave an error: #2002 - No connection could be made because the target machine actively refused it. Can any help me to resolve it? 回答1: If your operating system is Windows 7: go to control panel -> Administrative Tools -> Services find mysql then right-click, click start If your operating system is Linux (Ubuntu): in terminal type this command: sudo /etc/init.d/mysql start Good Luck 回答2: Go to : xampp/phpmyadmin/config.inc.php open