Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Setting up an Apache2, MySQL, Perl & PHP localhost?

  1. #11
    Join Date
    Nov 2010
    Location
    Gtr Mcr. UK
    Beans
    Hidden!
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: Setting up an Apache2, MySQL, Perl & PHP localhost?

    Quote Originally Posted by wojox View Post
    You need to turn on the universe repositories.


    Hmm... OK.. I think according this, they are.. right?


    I ended up restarting (again) and entering... lol

    Code:
    $ sudo apt-get update
    $ sudo apt-get install phpmyadmin
    $ sudo apt-get install mysql-admin
    OK.. Not done this before, did that actually install phpMyAdmin or just set up the server for it?
    Attached Images Attached Images
    Specs: Macbook(4,1), Dell 2408WFP, 2Gb Ram, Maverick & Natty

  2. #12
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,630

    Re: Setting up an Apache2, MySQL, Perl & PHP localhost?

    What did it say in the terminal? What if you go to http://localhost/phpmyadmin

  3. #13
    Join Date
    Nov 2010
    Location
    Gtr Mcr. UK
    Beans
    Hidden!
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: Setting up an Apache2, MySQL, Perl & PHP localhost?

    Quote Originally Posted by wojox View Post
    What did it say in the terminal?
    What it say?

    Code:
    $ sudo apt-get update
    Get:1 http://archive.canonical.com maverick Release.gpg [198B]
    Ign http://archive.canonical.com/ubuntu/ maverick/partner Translation-en
    Get:2 http://extras.ubuntu.com maverick Release.gpg [72B]
    Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en
    Get:3 http://archive.ubuntu.com maverick Release.gpg [198B]
    Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en
    Ign http://archive.canonical.com/ubuntu/ maverick/partner Translation-en_GB
    Get:4 http://archive.canonical.com maverick Release [5,925B]
    Get:5 http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en_GB [94.5kB]
    Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en_GB
    Hit http://extras.ubuntu.com maverick Release
    Hit http://extras.ubuntu.com maverick/main Sources
    Get:6 http://archive.canonical.com maverick/partner Sources [3,994B]
    Hit http://extras.ubuntu.com maverick/main amd64 Packages
    Get:7 http://archive.canonical.com maverick/partner amd64 Packages [6,680B]
    Ign http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
    Get:8 http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_GB [91.2kB]
    Ign http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
    Get:9 http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_GB [2,332B]
    Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
    Get:10 http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_GB [32.0kB]
    Get:11 http://archive.ubuntu.com maverick-updates Release.gpg [198B]
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_GB
    Get:12 http://archive.ubuntu.com maverick-security Release.gpg [198B]
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/main Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/main Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/universe Translation-en_GB
    Get:13 http://archive.ubuntu.com maverick Release [39.8kB]
    Get:14 http://archive.ubuntu.com maverick-updates Release [31.4kB]
    Get:15 http://archive.ubuntu.com maverick-security Release [31.4kB]
    Get:16 http://archive.ubuntu.com maverick/main Sources [829kB]
    Get:17 http://archive.ubuntu.com maverick/restricted Sources [4,370B]
    Get:18 http://archive.ubuntu.com maverick/universe Sources [4,179kB]
    Get:19 http://archive.ubuntu.com maverick/multiverse Sources [151kB]
    Get:20 http://archive.ubuntu.com maverick/main amd64 Packages [1,491kB]
    Get:21 http://archive.ubuntu.com maverick/restricted amd64 Packages [6,002B]
    Get:22 http://archive.ubuntu.com maverick/universe amd64 Packages [5,771kB]
    Get:23 http://archive.ubuntu.com maverick/multiverse amd64 Packages [180kB]
    Get:24 http://archive.ubuntu.com maverick-updates/main Sources [135kB]
    Get:25 http://archive.ubuntu.com maverick-updates/restricted Sources [778B]
    Get:26 http://archive.ubuntu.com maverick-updates/universe Sources [46.3kB]
    Get:27 http://archive.ubuntu.com maverick-updates/multiverse Sources [2,506B]
    Get:28 http://archive.ubuntu.com maverick-updates/main amd64 Packages [374kB]
    Get:29 http://archive.ubuntu.com maverick-updates/restricted amd64 Packages [1,802B]
    Get:30 http://archive.ubuntu.com maverick-updates/universe amd64 Packages [152kB]
    Get:31 http://archive.ubuntu.com maverick-updates/multiverse amd64 Packages [5,074B]
    Get:32 http://archive.ubuntu.com maverick-security/main Sources [44.6kB]
    Get:33 http://archive.ubuntu.com maverick-security/restricted Sources [14B]
    Get:34 http://archive.ubuntu.com maverick-security/universe Sources [18.8kB]
    Get:35 http://archive.ubuntu.com maverick-security/multiverse Sources [1,758B]
    Get:36 http://archive.ubuntu.com maverick-security/main amd64 Packages [152kB]
    Get:37 http://archive.ubuntu.com maverick-security/restricted amd64 Packages [14B]
    Get:38 http://archive.ubuntu.com maverick-security/universe amd64 Packages [73.9kB]
    Get:39 http://archive.ubuntu.com maverick-security/multiverse amd64 Packages [3,618B]
    Fetched 14.0MB in 8s (1,594kB/s)
    E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    Code:
    $ sudo apt-get update
    Hit http://extras.ubuntu.com maverick Release.gpg
    Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en
    Hit http://archive.canonical.com maverick Release.gpg
    Ign http://archive.canonical.com/ubuntu/ maverick/partner Translation-en
    Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en_GB
    Hit http://extras.ubuntu.com maverick Release
    Hit http://archive.ubuntu.com maverick Release.gpg
    Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en
    Hit http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en_GB
    Ign http://archive.canonical.com/ubuntu/ maverick/partner Translation-en_GB
    Hit http://archive.canonical.com maverick Release
    Ign http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
    Hit http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
    Hit http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
    Hit http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_GB
    Hit http://archive.ubuntu.com maverick-updates Release.gpg
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_GB
    Hit http://extras.ubuntu.com maverick/main Sources
    Hit http://archive.canonical.com maverick/partner Sources
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
    Hit http://extras.ubuntu.com maverick/main amd64 Packages
    Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_GB
    Hit http://archive.ubuntu.com maverick-security Release.gpg
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/main Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/main Translation-en_GB
    Hit http://archive.canonical.com maverick/partner amd64 Packages
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en_GB
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
    Ign http://archive.ubuntu.com/ubuntu/ maverick-security/universe Translation-en_GB
    Hit http://archive.ubuntu.com maverick Release
    Hit http://archive.ubuntu.com maverick-updates Release
    Hit http://archive.ubuntu.com maverick-security Release
    Hit http://archive.ubuntu.com maverick/main Sources
    Hit http://archive.ubuntu.com maverick/restricted Sources
    Hit http://archive.ubuntu.com maverick/universe Sources
    Hit http://archive.ubuntu.com maverick/multiverse Sources
    Hit http://archive.ubuntu.com maverick/main amd64 Packages
    Hit http://archive.ubuntu.com maverick/restricted amd64 Packages
    Hit http://archive.ubuntu.com maverick/universe amd64 Packages
    Hit http://archive.ubuntu.com maverick/multiverse amd64 Packages
    Hit http://archive.ubuntu.com maverick-updates/main Sources
    Hit http://archive.ubuntu.com maverick-updates/restricted Sources
    Hit http://archive.ubuntu.com maverick-updates/universe Sources
    Hit http://archive.ubuntu.com maverick-updates/multiverse Sources
    Hit http://archive.ubuntu.com maverick-updates/main amd64 Packages
    Hit http://archive.ubuntu.com maverick-updates/restricted amd64 Packages
    Hit http://archive.ubuntu.com maverick-updates/universe amd64 Packages
    Hit http://archive.ubuntu.com maverick-updates/multiverse amd64 Packages
    Hit http://archive.ubuntu.com maverick-security/main Sources
    Hit http://archive.ubuntu.com maverick-security/restricted Sources
    Hit http://archive.ubuntu.com maverick-security/universe Sources
    Hit http://archive.ubuntu.com maverick-security/multiverse Sources
    Hit http://archive.ubuntu.com maverick-security/main amd64 Packages
    Hit http://archive.ubuntu.com maverick-security/restricted amd64 Packages
    Hit http://archive.ubuntu.com maverick-security/universe amd64 Packages
    Hit http://archive.ubuntu.com maverick-security/multiverse amd64 Packages
    Reading package lists... Done
    Code:
    $ sudo apt-get install phpmyadmin
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
    dbconfig-common javascript-common libapache2-mod-php5 libjs-mootools
    libmcrypt4 php5-cli php5-common php5-gd php5-mcrypt php5-mysql
    wwwconfig-common
    Suggested packages:
    php-pear libmcrypt-dev mcrypt php5-suhosin postgresql-client apache
    apache-ssl
    The following NEW packages will be installed
    dbconfig-common javascript-common libjs-mootools libmcrypt4 php5-gd
    php5-mcrypt phpmyadmin wwwconfig-common
    The following packages will be upgraded:
    libapache2-mod-php5 php5-cli php5-common php5-mysql
    4 upgraded, 8 newly installed, 0 to remove and 16 not upgraded.
    Need to get 12.0MB of archives.
    After this operation, 21.5MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Get:1 http://archive.ubuntu.com/ubuntu/ maverick/main dbconfig-common all 1.8.46 [474kB]
    Get:2 http://archive.ubuntu.com/ubuntu/ maverick/universe wwwconfig-common all 0.2.1 [22.8kB]
    Get:3 http://archive.ubuntu.com/ubuntu/ maverick/universe javascript-common all 7 [3,854B]
    Get:4 http://archive.ubuntu.com/ubuntu/ maverick-updates/main php5-cli amd64 5.3.3-1ubuntu9.5 [3,020kB]
    Get:5 http://archive.ubuntu.com/ubuntu/ maverick-updates/main php5-mysql amd64 5.3.3-1ubuntu9.5 [75.6kB]
    Get:6 http://archive.ubuntu.com/ubuntu/ maverick-updates/main libapache2-mod-php5 amd64 5.3.3-1ubuntu9.5 [3,107kB]
    Get:7 http://archive.ubuntu.com/ubuntu/ maverick-updates/main php5-common amd64 5.3.3-1ubuntu9.5 [566kB]
    Get:8 http://archive.ubuntu.com/ubuntu/ maverick/universe libjs-mootools all 1.2.4.0~debian1-1 [248kB]
    Get:9 http://archive.ubuntu.com/ubuntu/ maverick/universe libmcrypt4 amd64 2.5.8-3.1 [87.6kB]
    Get:10 http://archive.ubuntu.com/ubuntu/ maverick-updates/main php5-gd amd64 5.3.3-1ubuntu9.5 [38.7kB]
    Get:11 http://archive.ubuntu.com/ubuntu/ maverick/universe php5-mcrypt amd64 5.3.3-0ubuntu2 [18.6kB]
    Get:12 http://archive.ubuntu.com/ubuntu/ maverick-updates/universe phpmyadmin all 4:3.3.7-5build0.10.10.1 [4,342kB]
    Fetched 12.0MB in 6s (1,983kB/s)
    Preconfiguring packages ...
    Selecting previously deselected package dbconfig-common.
    (Reading database ... 148337 files and directories currently installed.)
    Unpacking dbconfig-common (from .../dbconfig-common_1.8.46_all.deb) ...
    Selecting previously deselected package wwwconfig-common.
    Unpacking wwwconfig-common (from .../wwwconfig-common_0.2.1_all.deb) ...
    Selecting previously deselected package javascript-common.
    Unpacking javascript-common (from .../javascript-common_7_all.deb) ...
    Preparing to replace php5-cli 5.3.3-1ubuntu9 (using .../php5-cli_5.3.3-1ubuntu9.5_amd64.deb) ...
    Unpacking replacement php5-cli ...
    Preparing to replace php5-mysql 5.3.3-1ubuntu9 (using .../php5-mysql_5.3.3-1ubuntu9.5_amd64.deb) ...
    Unpacking replacement php5-mysql ...
    Preparing to replace libapache2-mod-php5 5.3.3-1ubuntu9 (using .../libapache2-mod-php5_5.3.3-1ubuntu9.5_amd64.deb) ...
    Unpacking replacement libapache2-mod-php5 ...
    Preparing to replace php5-common 5.3.3-1ubuntu9 (using .../php5-common_5.3.3-1ubuntu9.5_amd64.deb) ...
    Unpacking replacement php5-common ...
    Selecting previously deselected package libjs-mootools.
    Unpacking libjs-mootools (from .../libjs-mootools_1.2.4.0~debian1-1_all.deb) ...
    Selecting previously deselected package libmcrypt4.
    Unpacking libmcrypt4 (from .../libmcrypt4_2.5.8-3.1_amd64.deb) ...
    Selecting previously deselected package php5-gd.
    Unpacking php5-gd (from .../php5-gd_5.3.3-1ubuntu9.5_amd64.deb) ...
    Selecting previously deselected package php5-mcrypt.
    Unpacking php5-mcrypt (from .../php5-mcrypt_5.3.3-0ubuntu2_amd64.deb) ...
    Selecting previously deselected package phpmyadmin.
    Unpacking phpmyadmin (from .../phpmyadmin_4%3a3.3.7-5build0.10.10.1_all.deb) ...
    Processing triggers for man-db ...
    Processing triggers for doc-base ...
    Processing 1 added doc-base file(s)...
    Registering documents with scrollkeeper...
    Setting up dbconfig-common (1.8.46) ...

    Creating config file /etc/dbconfig-common/config with new version
    Setting up wwwconfig-common (0.2.1) ...
    Setting up javascript-common (7) ...
    Setting up php5-common (5.3.3-1ubuntu9.5) ...
    Installing new version of config file /etc/cron.d/php5 ...
    Setting up php5-cli (5.3.3-1ubuntu9.5) ...
    Setting up libapache2-mod-php5 (5.3.3-1ubuntu9.5) ...
    Action 'configtest' failed.
    The Apache error log may have more information.
    dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.confu.

    Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version

    Creating config file /etc/phpmyadmin/config-db.php with new version
    granting access to database phpmyadmin for phpmyadmin@localhost: success.
    verifying access for phpmyadmin@localhost: success.
    creating database phpmyadmin: success.
    verifying database phpmyadmin exists: success.
    populating database via sql... done.
    dbconfig-common: flushing administrative password
    Processing triggers for libc-bin ...
    ldconfig deferred processing now taking place
    Code:
    $ sudo apt-get install mysql-admin
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
    mysql-gui-tools-common mysql-query-browser
    The following NEW packages will be installed
    mysql-admin mysql-gui-tools-common mysql-query-browser
    0 upgraded, 3 newly installed, 0 to remove and 16 not upgraded.
    Need to get 3,935kB of archives.
    After this operation, 12.1MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Get:1 http://archive.ubuntu.com/ubuntu/ maverick/universe mysql-gui-tools-common all 5.0r14+openSUSE-2.1 [320kB]
    Get:2 http://archive.ubuntu.com/ubuntu/ maverick/universe mysql-admin amd64 5.0r14+openSUSE-2.1 [1,892kB]
    Get:3 http://archive.ubuntu.com/ubuntu/ maverick/universe mysql-query-browser amd64 5.0r14+openSUSE-2.1 [1,723kB]
    Fetched 3,935kB in 3s (1,118kB/s)
    Selecting previously deselected package mysql-gui-tools-common.
    (Reading database ... 149584 files and directories currently installed.)
    Unpacking mysql-gui-tools-common (from .../mysql-gui-tools-common_5.0r14+openSUSE-2.1_all.deb) ...
    Selecting previously deselected package mysql-admin.
    Unpacking mysql-admin (from .../mysql-admin_5.0r14+openSUSE-2.1_amd64.deb) ...
    Selecting previously deselected package mysql-query-browser.
    Unpacking mysql-query-browser (from .../mysql-query-browser_5.0r14+openSUSE-2.1_amd64.deb) ...
    Processing triggers for desktop-file-utils ...
    Processing triggers for python-gmenu ...
    Rebuilding /usr/share/applications/desktop.en_GB.utf8.cache...
    Processing triggers for man-db ...
    Processing triggers for python-support ...
    Setting up mysql-gui-tools-common (5.0r14+openSUSE-2.1) ...
    Setting up mysql-admin (5.0r14+openSUSE-2.1) ...
    Setting up mysql-query-browser (5.0r14+openSUSE-2.1) ...
    Quote Originally Posted by wojox View Post
    What if you go to http://localhost/phpmyadmin
    After restarting the server and visiting localhost, it give me the login page for phpMyAdmin as expected.



    Yay!! My very first install of Apache, MySql & Php on Linux.

    Change the permissions and take ownership of /var/www I used:

    Code:
    $ sudo chown -R $USER:$USER /var/www
    i can drop files into the folder without it moaning...


    OK....
    To prove it works...
    Log into phpMyAdmin and create a wordpress database, for argument sakes, I left my collation on default.



    To prove it works, i downloaded wordpress from source.. unzipped and manually dropped it into /var/www
    Open a new tab, open firefox's add-on page and search for FireFTP. Find the webserver root and chmod the Wordpress directory to 0777 giving it permission to write the 'config.php'

    Hmm.. think I should try to activate the ftp. if my logic serves me correctly by default there's no FTP server pre-installed? What's good?? Or what will work for me?
    Attached Images Attached Images
    Last edited by UltraNEO*; July 11th, 2011 at 06:26 AM.
    Specs: Macbook(4,1), Dell 2408WFP, 2Gb Ram, Maverick & Natty

  4. #14
    Join Date
    Nov 2010
    Location
    Gtr Mcr. UK
    Beans
    Hidden!
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: Setting up an Apache2, MySQL, Perl & PHP localhost?



    Soooo.. Now I'm stumped.
    What do i need to make this go away ??
    Attached Images Attached Images
    Last edited by UltraNEO*; July 11th, 2011 at 06:27 AM.
    Specs: Macbook(4,1), Dell 2408WFP, 2Gb Ram, Maverick & Natty

  5. #15
    Join Date
    Nov 2010
    Location
    Gtr Mcr. UK
    Beans
    Hidden!
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: Setting up an Apache2, MySQL, Perl & PHP localhost?

    *trash Wordpress, drop the db*



    Now the fun part...
    How to get CPAN to install, preferably DBD::mysql work. I've not have a clue...

    *goes googling for an hour...*
    Specs: Macbook(4,1), Dell 2408WFP, 2Gb Ram, Maverick & Natty

  6. #16
    Join Date
    Nov 2010
    Location
    Gtr Mcr. UK
    Beans
    Hidden!
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: Setting up an Apache2, MySQL, Perl & PHP localhost?

    Quote Originally Posted by UltraNEO* View Post
    *trash Wordpress, drop the db*



    Now the fun part...
    How to get CPAN to install, preferably DBD::mysql work. I've not have a clue...

    *goes googling for an hour...*

    Meh.. I'm such a smart ***, I've solved it!!!

    Thanks to everyone who've help me along the way, couldn't of done it with your input.
    Specs: Macbook(4,1), Dell 2408WFP, 2Gb Ram, Maverick & Natty

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

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