Results 1 to 6 of 6

Thread: how to install an apache server with php and mysql (lamp)?

  1. #1
    Member registered user
    Join Date
    Mar 2005
    Posts
    49

    how to install an apache server with php and mysql (lamp)?

    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

  2. #2
    Member registered user
    Join Date
    Mar 2005
    Posts
    49
    nobody any idea?

  3. #3
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    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.

  4. #4
    Member registered user
    Join Date
    Mar 2005
    Posts
    49
    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.

  5. #5
    Member registered user
    Join Date
    Mar 2005
    Posts
    49
    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

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    su to root and do

    /usr/bin/mysqld_safe &

    to start mysql

    from there, go here for the tutorial -- there are plenty more, but I'd recommend the one from the horses' mouth, so to speak, first.

    The full manual is on-line here and can be downloaded as pdf or html.

Similar Threads

  1. How to install and run mysql-server in chroot?
    By knopx4me in forum Customising & Remastering
    Replies: 1
    Last Post: 11-21-2008, 05:38 PM
  2. Apache PHP MySQL
    By hat_monkey in forum General Support
    Replies: 3
    Last Post: 03-30-2008, 05:08 PM
  3. Knoppix HD Install, Apache, MySQL, => Bugzilla
    By alanteigne in forum General Support
    Replies: 3
    Last Post: 05-18-2005, 07:58 PM
  4. apache and mysql
    By dr_rude in forum General Support
    Replies: 2
    Last Post: 10-11-2004, 02:37 AM
  5. Apache,PHP,MySQL & Perl?
    By pmlabrier in forum General Support
    Replies: 3
    Last Post: 08-20-2004, 03:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN picture

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN

$145.00



OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN picture

OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN

$288.00



pfSense Firewall 16-Core Atom C3958 8GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI VPN picture

pfSense Firewall 16-Core Atom C3958 8GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI VPN

$184.99



SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED picture

SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED

$999.99



OPNsense Firewall VPN QAT 8-Core Atom C3758 2.20GHz 16GB DDR4 128GB SSD 8xNIC picture

OPNsense Firewall VPN QAT 8-Core Atom C3758 2.20GHz 16GB DDR4 128GB SSD 8xNIC

$175.00



Fortinet FortiGate 60F FG-60F P24286-03-13 Network Firewall Security Appliance picture

Fortinet FortiGate 60F FG-60F P24286-03-13 Network Firewall Security Appliance

$155.75



Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN picture

Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN

$229.99



Palo Alto PA-220 Next-Gen Firewall 520-000309-00J picture

Palo Alto PA-220 Next-Gen Firewall 520-000309-00J

$40.00



OPNsense Firewall Router VMware Edge 640 Atom C3758 32GB ECC RAM 256GB SSD 10Gbe picture

OPNsense Firewall Router VMware Edge 640 Atom C3758 32GB ECC RAM 256GB SSD 10Gbe

$284.99



Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet picture

Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet

$147.00