nobody any idea?![]()
hi all
i'd like to do some php work on a hd install of knoppix, so i need a working apache server with php support and a mysql database.
i know, i simply could install xampp or something similar, but i'm interested how i could configure the system on my own (if it is not too hard).
do you have any suggestions for me where to start? i'm an absolute newbie, on windows i used xampp...
thank you for help.
josh
nobody any idea?![]()
Josh, it's all there already.
As root do:
/usr/sbin/apache
in an editor create this file:
<?php phpinfo(); ?>
save it as
phpinfo.php
and copy it to /www/var/
pop open a web browser and enter:
http://localhost/phpinfo.php
and there you have it: php and Apache working in perfect harmony.
I'll leave you to sort out MySQL yourself (it's already in Knoppix) , but there is an excellent manual and plenty of tutorials on line.
oh man i'm so intelligent!
ok, already found it out with my knoppix book... but i can't connect to mysql... i'll search for some tutorials first before asking other stupid questions.thank you.
hrm ok i think i don't get it on my own...
when i enter "mysql" in a command line it tells me
Can't connect to local MySQL Server through socket '/var/run/mysqld/mysqld.sock' (2)
i have no idea what this mysqld.sock is, but i created such a file in /var/.... and retried:
Can't connect to local MySQL Server through socked '/var/run/mysqld/mysqld.sock' (111)
so only the number in the end has changed at all...
what can i do? apache is running, and php is working, too... :-/
thanks for help!
Josh

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX
$59.99
ASUS ROG STRIX X870E-E GAMING WIFI
$289.99
Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery
$54.99
Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)
$29.90
ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio
$34.99
GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard
$59.99
ASRock B550M PRO4 AM4 AMD B550 SATA 6Gb/s Micro ATX AMD Motherboard
$76.49
ASUS PRIME Z370-A II LGA 1151 Intel Z370 DDR4 DIMM USB3.1 DVI ATX RGB
$69.99
ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield
$84.99
ASUS B85M-G / B85M-G PLUS LGA1150 DDR3 Micro ATX Motherboard HDMI Support 4thCPU
$45.00