-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfaq_stackman.html
More file actions
706 lines (639 loc) · 35.3 KB
/
Copy pathfaq_stackman.html
File metadata and controls
706 lines (639 loc) · 35.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine or request Chrome Frame -->
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Use title if it's in the page YAML frontmatter -->
<title>XAMPP FAQs for XAMPP-VM</title>
<meta name="description" content="Instructions on how to install XAMPP for OSX distributions." />
<link href="/stylesheets/normalize-ef7858ef.css" rel="stylesheet" type="text/css" /><link href="/stylesheets/all-30d97a4b.css" rel="stylesheet" type="text/css" />
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/3.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<script src="/javascripts/modernizr-6bfc3ff0.js" type="text/javascript"></script>
<link rel="alternate" type="application/rss+xml" title="Apache Friends RSS Feed" href="/feed.xml" />
<link href="/images/favicon-18f9bd42.png" rel="icon" type="image/png" />
<script type="text/javascript">
//<![CDATA[
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-76894-1', 'auto');
ga('send', 'pageview');
//]]>
</script>
</head>
<body class="faq_stackman">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=277385395761685";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<header class="header contain-to-grid">
<nav class="top-bar" data-topbar>
<ul class="title-area">
<li class="name">
<h1><a href="/index.html">Apache Friends</a></h1>
</li>
<li class="toggle-topbar menu-icon">
<a href="#">
<span>Menu</span>
</a>
</li>
</ul>
<section class="top-bar-section">
<!-- Left Nav Section -->
<ul class="left">
<li class="item "><a href="/download.html">Download</a></li>
<li class="item "><a href="/hosting.html">Hosting</a></li>
<li class="item "><a href="/community.html">Community</a></li>
<li class="item "><a href="/about.html">About</a></li>
</ul>
<!-- Right Nav Section -->
<ul class="right">
<li class="item has-form">
<form action="/search.html" method="get">
<div class="row collapse">
<div class="large-8 small-9 columns">
<label class="visuallyhidden" for="search-field">Search..</label>
<input id="search-field" type="text" name="q" placeholder="Search..">
</div>
<div class="search-button large-4 small-3 columns">
<input type="submit" class="success button expand" value="Search"/>
</div>
</div>
</form>
</li>
<li id="locales" class="item has-dropdown">
<a href="#"> <img src="/images/flags/en-dd9e149e.png" /> EN
</a> <ul class="dropdown">
<li>
<a href="/de/faq_stackman.html"> <img src="/images/flags/de-1daf2d67.png" /> DE
</a> </li>
<li>
<a href="/faq_stackman.html"> <img src="/images/flags/en-dd9e149e.png" /> EN
</a> </li>
<li>
<a href="/es/faq_stackman.html"> <img src="/images/flags/es-a88880bf.png" /> ES
</a> </li>
<li>
<a href="/fr/faq_stackman.html"> <img src="/images/flags/fr-0f67f12d.png" /> FR
</a> </li>
<li>
<a href="/hu/faq_stackman.html"> <img src="/images/flags/hu-9a189d12.png" /> HU
</a> </li>
<li>
<a href="/it/faq_stackman.html"> <img src="/images/flags/it-c786c15b.png" /> IT
</a> </li>
<li>
<a href="/jp/faq_stackman.html"> <img src="/images/flags/jp-3c5b1754.png" /> JP
</a> </li>
<li>
<a href="/pl/faq_stackman.html"> <img src="/images/flags/pl-e383eba9.png" /> PL
</a> </li>
<li>
<a href="/pt_br/faq_stackman.html"> <img src="/images/flags/pt_br-e39a2058.png" /> PT BR
</a> </li>
<li>
<a href="/ro/faq_stackman.html"> <img src="/images/flags/ro-f141b663.png" /> RO
</a> </li>
<li>
<a href="/ru/faq_stackman.html"> <img src="/images/flags/ru-24b172c5.png" /> RU
</a> </li>
<li>
<a href="/tr/faq_stackman.html"> <img src="/images/flags/tr-e1821d04.png" /> TR
</a> </li>
<li>
<a href="/ur/faq_stackman.html"> <img src="/images/flags/ur-952dd97a.png" /> UR
</a> </li>
<li>
<a href="/zh_cn/faq_stackman.html"> <img src="/images/flags/zh_cn-9c7185e0.png" /> ZH CN
</a> </li>
<li>
<a href="/zh_tw/faq_stackman.html"> <img src="/images/flags/zh_tw-92fe4f80.png" /> ZH TW
</a> </li>
</ul>
</li>
</ul>
</section>
</nav>
</header>
<div class="wrapper">
<div class="hero">
<div class="row">
<div class="large-12 columns">
<h1>XAMPP-VM <span>Frequently Asked Questions</span></h1>
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<dl class="accordion">
<dt>What is the difference between XAMPP for OS X and XAMPP-VM?</dt>
<dd>
<p>
<ul>
<li>XAMPP for OS X is a native installer for OS X. It installs Apache, PHP and other XAMPP components directly on your OS X system, in the /Applications/XAMPP folder.</li>
<li>XAMPP-VM is a virtual machine for OS X. It includes Apache, PHP and other XAMPP components and runs them in a Linux-based virtual machine on your OS X system.</li>
</ul>
</p>
<p>For more information, refer to the blog post at <a href="https://www.apachefriends.org/blog/new_xampp_20170628.html">https://www.apachefriends.org/blog/new_xampp_20170628.html</a>.</p>.
</dd>
<dt>How do I install XAMPP-VM for Mac OS X?</dt>
<dd>
<p>To install XAMPP-VM, just do the following:</p>
<ul>
<li>Download the disk image (DMG image) from the Apache Friends website.</li>
<li>Double-click the image file and drag the XAMPP-VM icon to the Applications folder.</li>
<li>Launch XAMPP-VM by double-clicking the XAMPP-VM icon in the Applications folder.</li>
<li>Enter your system's administrator credentials when prompted.</li>
<img src="/images/screenshots/xampp-macosx-launch-credentials-73542324.jpg" />
</ul>
<p>You should see the XAMPP-VM stack manager, as shown below:</p>
<img src="/images/screenshots/xampp-macosx-stack-manager-7d07b69d.jpg" />
</dd>
<dt>Does XAMPP-VM include MySQL or MariaDB?</dt>
<dd>
<p>XAMPP-VM ships MariaDB instead of MySQL. The commands and tools are the same for both.</p>
</dd>
<dt>How do I start XAMPP-VM?</dt>
<dd>
<p>To start XAMPP-VM:</p>
<ul>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Click the "Start" button in the "General" tab of the stack manager. Wait for the status icon to turn green.
<img src="/images/screenshots/xampp-macosx-stack-manager-general-e1ad564a.jpg" />
</li>
<li>Navigate to the "Network" tab and enable port forwarding (port 80 of the stack to port 8080 of the host system) over SSH.
<img src="/images/screenshots/xampp-macosx-stack-manager-network-0701ac7c.jpg" />
</li>
</ul>
</dd>
<dt>How do I stop XAMPP-VM?</dt>
<dd>
<p>To stop XAMPP-VM, click the "Stop" button in the "General" tab of the stack manager. Once the status icon turns red, close the stack manager window.</p>
</dd>
<dt>Can I start and stop XAMPP-VM services individually?</dt>
<dd>
<p>Yes. When you start the XAMPP-VM virtual machine, XAMPP services will also automatically start. You can navigate to the "Services" tab of the stack manager at any time to stop, start, restart or check the status of individual services.</p>
</dd>
<dt>How can I test that everything worked?</dt>
<dd>
<p>Verify that you have enabled port forwarding (from port 80 of the stack to port 8080 of the host system) in the "Network" tab of the stack manager and type the following URL in a web browser:</p>
<p><code>http://localhost:8080</code></p>
<p>You should see the XAMPP-VM start page, as shown below.</p>
<img src="/images/screenshots/xampp-macosx-start-b70c2269.jpg" />
</dd>
<dt>Is XAMPP-VM production ready?</dt>
<dd>
<p>XAMPP-VM is not meant for production use but only for development environments. The way XAMPP-VM is configured is to be open as possible to allow the developer anything he/she wants. For development environments this is great but in a production environment it could be fatal.</p>
<p>Here a list of missing security in XAMPP-VM:</p>
<ol>
<li>The MySQL administrator (root) has no password.</li>
<li>The MySQL daemon is accessible via network.</li>
<li>ProFTPD uses the password "lampp" for user "daemon".</li>
</ol>
To fix most of the security weaknesses:
<ul>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Ensure that all services are running in the "Services" tab of the stack manager (or start them as needed).</li>
<li>Open a new terminal from the "General" tab of the stack manager and run the following command in it:
<p><code>/opt/lampp/lampp security</code></p>
</li>
</ul>
It will kick off a a small security check to make the XAMPP-VM installation secure.
</dd>
<dt>Apache doesn't seem to start. What can I do?</dt>
<dd>
<p>This error can exist for multiple reasons. Apache displays this error under several circumstances. To find the exact reason, you have to do some research:</p>
<ul>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Open a new terminal from the "General" tab of the stack manager and run the following command in it:
<p><code>tail -2 /opt/lampp/logs/error_log</code></p>
</li>
</ul>
<p>If you get any error messages visit <a href="/community.html">our community pages</a> for help.</p>
</dd>
<dt>translation missing: en.When I try to start the VM, it fails, with an error message, "cannot calculate MAC address". How do I resolve this?</dt>
<dd>
<p>This is most often a symptom of the VM running on a computer with an Apple M1 (arm64) CPU. The VM components do not support the M1 CPU (as of September 2022). You can only use the VM on computers with intel (x64) CPUs. On computers with the M1 CPU, please use the XAMPP native installers instead.
</p>
<p>If you get any error messages visit <a href="/community.html">our community pages</a> for help.</p>
</dd>
<dt>How can I make my XAMPP-VM installation more secure?</dt>
<dd>
<p>In the default installation, XAMPP-VM has no passwords set and it is not recommended to run XAMPP-VM with this configuration accessible by others.To make the installation more secure:</p>
<ul>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Ensure that all services are running in the "Services" tab of the stack manager (or start them as needed).</li>
<li>Open a new terminal from the "General" tab of the stack manager and run the following command in it:
<p><code>tail -2 /opt/lampp/logs/error_log</code></p>
</li>
<li>You should see the following dialog on your screen. Enter responses to each prompt.
<p><code>
XAMPP: Quick security check...</br>
XAMPP: MySQL is accessable via network.</br>
XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes</br>
XAMPP: Turned off.</br>
XAMPP: Stopping MySQL...</br>
XAMPP: Starting MySQL...</br>
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!</br>
XAMPP: Do you want to set a password? [yes] yes</br>
XAMPP: Password: ******</br>
XAMPP: Password (again): ******</br>
XAMPP: Setting new MySQL pma password.</br>
XAMPP: Setting phpMyAdmin's pma password to the new one.</br>
XAMPP: MySQL has no root passwort set!!!</br>
XAMPP: Do you want to set a password? [yes] yes</br>
XAMPP: Write the passworde somewhere down to make sure you won't forget it!!!</br>
XAMPP: Password: ******</br>
XAMPP: Password (again): ******</br>
XAMPP: Setting new MySQL root password.</br>
XAMPP: Setting phpMyAdmin's root password to the new one.</br>
XAMPP: The FTP password for user 'nobody' is still set to 'lampp'.</br>
XAMPP: Do you want to change the password? [yes] yes</br>
XAMPP: Password: ******</br>
XAMPP: Password (again): ******</br>
XAMPP: Reload ProFTPD...</br>
XAMPP: Done.</br>
</code></p></li>
</ul>
<p>After calling this command, your XAMPP-VM installation should be more secure.</p>
</dd>
<dt>How do I activate eAccelerator?</dt>
<dd>
<p>To activate eAccelerator for PHP:</p>
<ul>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Mount the /opt/lampp directory from the "Volumes" tab of the stack manager and click the "Explore" button to open the file manager.</li>
<li>Find the following lines in your /opt/lampp/etc/php.ini file:
<p><code>;extension="eaccelerator.so"</br>
;eaccelerator.shm_size="16"</br>
;eaccelerator.cache_dir="/opt/lampp/tmp/eaccelerator"</br>
;eaccelerator.enable="1"</br>
;eaccelerator.optimizer="1"</br>
;eaccelerator.check_mtime="1"</br>
;eaccelerator.debug="0"</br>
;eaccelerator.filter=""</br>
;eaccelerator.shm_max="0"</br>
;eaccelerator.shm_ttl="0"</br>
;eaccelerator.shm_prune_period="0"</br>
;eaccelerator.shm_only="0"</br>
;eaccelerator.compress="1"</br>
;eaccelerator.compress_level="9"</code></p>
</li>
<li>Remove the semicolon at the beginning of each line and restart XAMPP.</li>
</ul>
<p>The extension should now be active.For more information about eAccelerator, check the eAccelerator home page: <a href="http://eaccelerator.net">http://eaccelerator.net</a>.</p>
</dd>
<dt>How do I activate the OCI8/Oracle extension for PHP?</dt>
<dd>
<p>To activate the OCI8/Oracle extension for PHP:</p>
<ul>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Ensure that all services are running in the "Services" tab of the stack manager (or start them as needed).</li>
<li>Open a new terminal from the "General" tab of the stack manager and run the following command in it:
<p><code>/opt/lampp/lampp oci8</code></p>
</li>
<li>You should see the following dialog on your screen. Enter the path to the Oracle client libraries when prompted.
<p><code>
Please enter the path to your Oracle or Instant Client installation:</br>
installing symlinks...</br>
patching php.ini...</br>
OCI8 add-on activation likely successful.</br>
LAMPP: Stopping Apache with SSL...</br>
LAMPP: Starting Apache with SSL...</code></p>
</li>
</ul>
<p>The extension should now be active.</p>
</dd>
<dt>How do I copy files to the Apache server document root?</dt>
<dd>
<p>To copy files from the host system to the XAMPP-VM Apache server document root, follow these steps:</p>
<ul>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Mount the /opt/lampp directory from the "Volumes" tab of the stack manager and click the "Explore" button to open the file manager.</li>
<img src="/images/screenshots/xampp-macosx-stack-manager-volumes-4dd47fba.jpg" />
<li>Navigate to the /opt/lampp/htdocs directory in the file manager. This directory is the XAMPP-VM Apache server document root. Copy files to it from the host system using the file manager in the usual way.</li>
</ul>
</dd>
<dt>How do I access phpMyAdmin from the host system?</dt>
<dd>
<p>To access phpMyAdmin from the host system, follow these steps:</p>
<ul>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Ensure that all services are running in the "Services" tab of the stack manager (or start them as needed).</li>
<li>Navigate to the "Network" tab and ensure that port forwarding (port 80 of the stack to port 8080 of the host system) over SSH is enabled.</li>
<li>Browse to http://localhost:8080/phpmyadmin to access phpMyAdmin.</li>
</ul>
<p>If you see an "Access denied" error, ensure that your phpMyAdmin configuration correctly reflects your MySQL credentials.
</p>
<dt>How do I enable access to phpMyAdmin from the outside?</dt>
<dd>
<p>In the basic configuration of XAMPP-VM, phpMyAdmin is accessible only from the host system via a secure tunnel, at http://127.0.0.1:8080/phpmyadmin or http://localhost:8080/phpmyadmin.</p>
<p>IMPORTANT: Enabling external access for phpMyAdmin in production environments is a significant security risk. You are strongly advised to only allow access from localhost. A remote attacker could take advantage of any existing vulnerability for executing code or for modifying your data.</p>
To enable remote access to phpMyAdmin, follow these steps:
<ul>
<li>Edit the /opt/lampp/etc/extra/httpd-xampp.conf file.</li>
<li>Within this file, find the lines below.
<p><code>
Alias /phpmyadmin "/opt/lampp/phpmyadmin/"
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig
Require local
</code></p>
</li>
<li>Then replace 'Require local' with 'Require all granted'.</li>
<p><code>
Alias /phpmyadmin "/opt/lampp/phpmyadmin/"
<Directory "/opt/lampp/phpMyAdmin">
AllowOverride AuthConfig
Require all granted
</code></p>
<li>Save the file and restart the Apache service using the stack manager.</li>
</ul>
</dd>
<dt>Does XAMPP-VM support Apple M1 (arm64) CPUs?</dt>
<dd>
<p>No. The components within the VM do not presently support Apple M1 (arm64) CPUs. The VM may only be used on Apple computers with intel (x64) CPUs.
</p>
<p>This is the situation as of September 2022. We hope that the VM components will support Apple M1 CPUs in the future, so that XAMPP VMs will be usable on those Apple computers as well.
</p>
</dd>
<dt>Where are the XAMPP-VM virtual machine files and logs?</dt>
<dd>
<p>The XAMPP-VM virtual machine files and logs are stored within your home directory on the OS X host, in the ~/.bitnami/stackman/machines/xampp/vm and ~/.bitnami/stackman/machines/xampp/log directories respectively.</p>
</dd>
<dt>Where are the main XAMPP configuration files?</dt>
<dd>
<p>The main XAMPP configuration files are located as follows:</p>
<ul>
<li>Apache configuration file: /opt/lampp/etc/httpd.conf, /opt/lampp/etc/extra/httpd-xampp.conf</li>
<li>PHP configuration file: /opt/lampp/etc/php.ini</li>
<li>MySQL configuration file: /opt/lampp/etc/my.cnf</li>
<li>ProFTPD configuration file: /opt/lampp/etc/proftpd.conf</li>
</ul>
</dd>
<dt>How do I send email with XAMPP?</dt>
<dd>
<p>To send email with XAMPP, use the PEAR Mail and Net_SMTP packages, which allow you to send email using an external SMTP account (such as a Gmail account). Follow these steps:</p>
<ul>
<li>Install the Mail and Net_SMTP PEAR modules:
<code>
pear install Net_SMTP Mail
</code>
Note that if these packages are already installed in your system you see the messages below when executing that command:
<code>
Ignoring installed package pear/Net_SMTP
Ignoring installed package pear/Mail
Nothing to install
</code>
</li>
<li>
Create the following example script in your "htdocs" directory to send an email:
<code>
<?php
require_once "Mail.php";
$from = "your-gmail-username@gmail.com";
$to = 'recipients@example.com';
$host = "ssl://smtp.gmail.com";
$port = "465";
$username = 'your-gmail-username@gmail.com';
$password = 'your-gmail-password';
$subject = "test";
$body = "test";
$headers = array ('From' => $from, 'To' => $to,'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo($mail->getMessage());
} else {
echo("Message successfully sent!\n");
}
?>
</code>
<p>Remember to replace the dummy values shown with your actual Gmail address and account password. If you don't plan to use Gmail's SMTP server, replace the SMTP host details with appropriate values for your organization or ISP's SMTP server.</p>
</li>
<li>
Execute the script by browsing to it using your Web browser. You should see a notification that the message was successfully sent, and the message should be delivered to the recipient email address.
</li>
</ul>
</dd>
<dt>How do I backup/restore my XAMPP-VM system?</dt>
<dd>
<p><strong>WARNING:</strong> The backup and restore functionality is still under development and may not work correctly.</p>
<p>You can create the backup as follows:</p>
<ul>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Ensure that all services are running in the "Services" tab of the stack manager (or start them as needed).</li>
<li>Open a new terminal from the "General" tab of the stack manager and run the following command in it:
<p><code>/opt/lampp/lampp backup</code></p>
or
<p><code>/opt/lampp/lampp backup secret</code></p>
Where "secret" is your MySQL root password. This command will create the following output:
<p><code>Backing up databases...</br>
Backing up configuration, log and htdocs files...</br>
Calculating checksums...</br>
Building final backup file...</br>
Backup finished.</br>
Take care of /Applications/XAMPP/xamppfiles/backup/xampp-backup-22-01-14.sh</code></p>
The file /Applications/XAMPP/xamppfiles/backup/xampp-backup-22-01-14.sh (in the example above) contains your backup data. Move or copy this file to a safe place.</li>
<li>Mount the /opt/lampp directory from the "Volumes" tab of the stack manager and click the "Explore" button to open the file manager.</li>
<li>Move the backup file to a safe place on the host system.</li>
</ul>
<p>To restore the backup on a new system, you need the same version of XAMPP-VM as on your original/source system. Follow these steps to restore the backup:</p>
<ul>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Ensure that all services are running in the "Services" tab of the stack manager (or start them as needed).</li>
<li>Mount the /opt/lampp directory from the "Volumes" tab of the stack manager and click the "Explore" button to open the file manager.</li>
<li>Copy the backup file from the host system to the mounted directory.</li>
<li>Open a new terminal from the "General" tab of the stack manager, change to the directory containing the backup file and run the following command (change the file name in the command to reflect the actual backup file name):
<p><code>./xampp-backup-22-01-14.sh</code> </p>
You should see something like this:
<p><code>Checking integrity of files...
Restoring configuration, log and htdocs files...
Checking versions...
Installed: XAMPP 1.4.2
Backup from: XAMPP 1.4.2
Restoring MySQL databases...
Restoring MySQL user databases...
Backup complete. Have fun!
You may need to restart XAMPP to complete the restore</code></p></li>
</ul>
</dd>
<dt>How do I increase the size of the XAMPP-VM disk?</dt>
<dd>
<p><strong>IMPORTANT: Ensure that you have booted the XAMPP-VM virtual machine at least once before following the steps below. Resizing the disk without a first boot may cause the virtual machine to fail afterwards.</strong></p>
<p>To increase the size of the XAMPP-VM disk, follow these steps:</p>
<ul>
<li>Shut down XAMPP-VM and make a complete backup of the disk, so that you can easily recover in case of errors.</li>
<li>Install QEMU on the OS X host:
<p><code>brew update
brew install qemu</code> </p>
</li>
<li>Check the disk for errors:
<p><code>qemu-img check ~/.bitnami/stackman/machines/xampp/vm/machine.qcow2</code> </p>
</li>
<li>If any errors were found, repair them before attempting to resize the disk:
<p><code>qemu-img check -r all ~/.bitnami/stackman/machines/xampp/vm/machine.qcow2</code> </p>
</li>
<li>Resize the disk. Here's an example of making it 10GB larger:
<p><code>qemu-img resize ~/.bitnami/stackman/machines/xampp/vm/machine.qcow2 +10G</code> </p>
</li>
<li>Start XAMPP-VM.</li>
<li>Once XAMPP-VM has started, click the "Open Terminal" button in the XAMPP control panel. From within the terminal, increase the size of the primary partition and update the filesystem iwith the fdisk and resize2fs commands. Refer to the output below for an example displaying the necessary commands and expected results:
<p><code>
root@debian:~# df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 15G 1.4G 13G 10% /
root@debian:~# sudo fdisk /dev/vda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/vda: 24.9 GiB, 26737418240 bytes, 52221520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 31248383 31246336 14.9G 83 Linux
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): p
Disk /dev/vda: 24.9 GiB, 26737418240 bytes, 52221520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-52221519, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-52221519, default 52221519):
Created a new partition 1 of type 'Linux' and of size 24.9 GiB.
Command (m for help): p
Disk /dev/vda: 24.9 GiB, 26737418240 bytes, 52221520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/vda1 2048 52221519 52219472 24.9G 83 Linux
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
root@debian:~# partx -u /dev/vda1
root@debian:~# sudo resize2fs /dev/vda1
resize2fs 1.42.12 (29-Aug-2014)
Filesystem at /dev/vda1 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 2
The filesystem on /dev/vda1 is now 6527434 (4k) blocks long.
root@debian:~# df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 25G 1.4G 22G 6% /
</code> </p>
</li>
<li>Restart XAMPP-VM. You should now be able to use the larger disk.</li>
</ul>
</dd>
<dt>How do I change the XAMPP-VM required memory?</dt>
<dd>
<p><strong>WARNING: Install <a href="https://stedolan.github.io/jq/">JQ</a> on your Mac before running the commands suggested on this section.</strong></p>
<p><code>brew update
brew install jq
</code> </p>
<p>To check the required memory of your VM, open a terminal and run the command below. Replace the APP_NAME placeholder with the correct directory name:</p>
<p><code>$ cat ~/.bitnami/stackman/machines/APP_NAME/metadata.json | jq '.requiredMemory'</code></p>
<p>To change the VM required memory, follow these steps:</p>
<ul>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Click the "Stop" button in the "General" tab of the stack manager. Once the status icon turns red, close the stack manager window.</li>
<li>Open a terminal and change the "requiredMemory" running the command below. Replace the MEMORY placeholder with the value you want to set.
<p><code>$ cat ~/.bitnami/stackman/machines/APP_NAME/metadata.json | jq '.requiredMemory = MEMORY' | tee ~/.bitnami/stackman/machines/APP_NAME/metadata.json</code></p>
</li>
<li>Launch the stack manager by double-clicking the XAMPP icon in the mounted disk image.</li>
<li>Click the "Start" button in the "General" tab of the stack manager. Wait for the status icon to turn green.
<li>Once XAMPP-VM has started, click the "Open Terminal" button in the XAMPP control panel. From within the terminal, verify the allocated memory running the command below:
<p><code>$ free -h</code></p>
</li>
</ul>
</dd>
<dt>How do I upgrade XAMPP-VM?</dt>
<dd>
<p>If you download a new version of XAMPP-VM and try to run it, you may see a warning message about overwriting data. This warning appears when you already have a previous version of XAMPP-VM deployed on your OS X system. It ensures that you do not accidentally overwrite your existing XAMPP-VM data.</p>
<p>To upgrade XAMPP-VM in this scenario, follow these steps:</p>
<ul>
<li>Back up all the data that you need from the existing XAMPP-VM deployment, including all files, databases, custom plugins, media and other assets.</li>
<li>Remove or rename the previous XAMPP-VM image files by deleting the ~/.bitnami/stackman/machines/xampp directory.</li>
<li>Deploy the new version of XAMPP-VM.</li>
<li>Restore all the data backed up from the previous version, by copying it to the correct place in the new version.</li>
</ul>
</dd>
<dt>How do I uninstall XAMPP-VM?</dt>
<dd>
<p>To uninstall XAMPP-VM, follow these steps:</p>
<ul>
<li>Delete the XAMPP-VM icon from the Applications folder.</li>
<li>Remove all XAMPP-VM data by deleting the ~/.bitnami folder within your home directory on the OS X host.</li>
</ul>
</dd>
</dl>
</div>
<div class="large-4 columns">
<aside>
<h4>FAQs</h4>
<ul>
<li><a href="/faq_linux.html">Linux FAQs</a></li>
<li><a href="/faq_windows.html">Windows FAQs</a></li>
<li><a href="/faq_osx.html">OS X FAQs</a></li>
</ul>
<h4>Support</h4>
<p>Visit our <a href="/community.html">our community pages</a> for additional help.</p>
</aside>
</div>
</div>
</div>
<footer class="footer row">
<div class="columns">
<div class="footer_lists-container row collapse">
<div class="footer_social columns large-2">
<ul class="social">
<li class="twitter"><a href="https://twitter.com/apachefriends">Follow us on Twitter</a></li>
<li class="facebook"><a href="https://www.facebook.com/we.are.xampp">Like us on Facebook</a></li>
</ul>
<p class="footer_copyright">Copyright (c) 2024, Apache Friends</p>
</div>
<ul class="footer_links columns large-9">
<li><a href="https://www.apachefriends.org/blog.html">Blog</a></li>
<li><a href="/privacy_policy.html">Privacy Policy</a></li>
<li>
<a target="_blank" href="https://installbuilder.com">Multiplatform installers by <strong class='bright'>InstallBuilder</strong></a>
</li>
</ul>
</div>
</div>
</footer>
<!-- JS Libraries -->
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="/javascripts/all-d8620939.js" type="text/javascript"></script>
</body>
</html>