xampp

How to change localhost/site to site.dev

爱⌒轻易说出口 提交于 2020-01-13 07:19:49
问题 I use XAMPP for local development and I've heard of developers that change the url structure from localhost/site to site.dev, but I'm not sure how to go about it. How can I change it and is there anything I should know before changing it? 回答1: You'll need to add an entry in your host file to map site.dev to localhost 127.0.0.1 site.dev www.site.dev and add a virtual host in apache to detect it <VirtualHost *:80> DocumentRoot /path/to/document/root/site/ ServerName site.dev ServerAlias www

How to enable SSL only on specified XAMPP directories

橙三吉。 提交于 2020-01-13 06:54:11
问题 I've been able to use makecert to make a self signed cert which currently enables HTTPS on all directories in C://XAMPP/htdocs I have two directories which I want to be different, c:/XAMPP/htdocs/PLACEHOLDER1 c:/XAMPP/htdocs/PLACEHOLDER2 I was wondering if it'd be possible have the SSL scope limited to one directory, say in this case 'placeholder1'. It's my first time using SSL so sorry for any confusions. 回答1: http://robsnotebook.com/xampp-ssl-encrypt-passwords has some good information on

How to enable oci in xampp 5.6.3?

折月煮酒 提交于 2020-01-13 00:29:51
问题 I am facing some issue while starting Apache server via XAMPP. I have installed XAMPP Version 5.6.3. When I start the Apache server from xampp control panel, an error message is displayed as shown below: On clicking 'OK' button, another dialog box is displayed as shown: The thing is I wanted to use OCI instead of mysql. so I have commented out the mysql extensions and uncommented the OCI extension in php.ini file. The php_oci8_12c.dll file is the only file available in the extensions (ext)

Remote Xampp Access

寵の児 提交于 2020-01-12 10:40:48
问题 i have installed XAMPP 1.7.4, now my project URL is http://localhos.host/amu and my IP is 192.168.0.40 i want to access my XAMPP Project to Another Computer how i do that 回答1: Configure the web server to listen on your external network interface (Apache is often configured to only listen on localhost by default). Open port 80 for inbound connections in the firewall on your computer. If you want people outside your LAN to access your server, enable port forwarding in your router/gateway, so

Root path in XAMPP

99封情书 提交于 2020-01-12 08:06:06
问题 I've had this problem for a while, and have unsuccessfully searched far and wide for an answer. <img src="/images/test.jpg" /> Gets an image from (root path - in my case in production in LAMP) htdocs/images/test.jpg Whether it's called from htdocs/index.php or htdocs/foo/bar/index.php I use XAMPP in development, and inside htdocs have project folders, so the method described above although will work when live requires me to alter it to: <img src="/projectName/images/test.jpg" /> when working

Root path in XAMPP

不问归期 提交于 2020-01-12 08:05:52
问题 I've had this problem for a while, and have unsuccessfully searched far and wide for an answer. <img src="/images/test.jpg" /> Gets an image from (root path - in my case in production in LAMP) htdocs/images/test.jpg Whether it's called from htdocs/index.php or htdocs/foo/bar/index.php I use XAMPP in development, and inside htdocs have project folders, so the method described above although will work when live requires me to alter it to: <img src="/projectName/images/test.jpg" /> when working

XAMPP can not install xdebug

耗尽温柔 提交于 2020-01-12 05:13:05
问题 Hello I have installed xampp, changed the php.ini to this: [XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.3-5.3-vc9.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "C:\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = 0 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.trace_output_dir = "C:\xampp\tmp" So I created a php file: <?php phpinfo(); ?>

php ssh connection phpseclib

ぃ、小莉子 提交于 2020-01-11 13:01:31
问题 System: Linux Server: XAMPP Goal: ssh-connection to a server (later: doing some stuff on this server, not part of this question) Test-Code: <?php set_include_path(get_include_path().PATH_SEPARATOR.'/home/myusername'); include('Net/SSH2.php'); $ssh = new Net_SSH2('123.45.6.78'); if (!$ssh->login('user', 'password')) { exit('Login Failed'); }else{ echo "connected".'<br>'; echo $ssh->exec('whoami').'<br>'; echo $ssh->exec('hostname')).'<br>'; } ?> Output: connected (M4300-28G-PoE+) > (M4300-28G

Warning: mysqli_connect(): (HY000/1049): Unknown database in mac terminal only

旧城冷巷雨未停 提交于 2020-01-11 12:00:09
问题 in mac i want to create cronjob but when i run the php file with database i am getting error in terminal. Warning: mysqli_connect(): (HY000/1049): Unknown database And In the browser run perfect. 回答1: Is your PHP environment the same as your browsers PHP? command line php.ini can differ from, for example, your XAMP or other installed webserver I would recommend checking this first for me this did the trick edit your .bash_profile file like export PATH=/Applications/MAMP/bin/php/php7.1.1/bin:

Enable directory/file listing in XAMPP

﹥>﹥吖頭↗ 提交于 2020-01-11 10:26:53
问题 How to enable directory and file listing in XAMPP ? In WAMP it is by default enabled. 回答1: My Xampp httpd.conf already had the Indexes option under the xampp directory entry Removing all the default #comment lines, it looks like this: <Directory "C:/xampp/htdocs"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> But, I have my local root mapped to a different directory, outside of 'htdocs', (as per this post Make XAMPP/Apache serve