Results 1 to 7 of 7

Thread: Error installing Wordpress

  1. #1
    Join Date
    Apr 2005
    Beans
    99

    Question Error installing Wordpress

    Hi

    I am following thisguide to install Wordpress on a newly installed Ubuntu Server 12.10.

    I get this error:

    bash: /usr/share/doc/wordpress/examples/setup-mysql: No such file or directory

    When executing this command:

    sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost

    I am pretty sure I have followed the guide coorectly, so I guess there is an error in the guide.

    The file setup-mysql.gz does exist:

    jakob@server:~$ ls -al /usr/share/doc/wordpress/examples
    total 16
    drwxr-xr-x 2 root root 4096 Feb 3 10:58 .
    drwxr-xr-x 3 root root 4096 Feb 3 10:58 ..
    -rw-r--r-- 1 root root 2076 Sep 12 14:52 apache.conf
    -rw-r--r-- 1 root root 2311 Sep 12 14:52 setup-mysql.gz



    How do I fix this?

    Thanks
    Jakob

  2. #2
    Join Date
    Jun 2013
    Beans
    1

    Re: Error installing Wordpress

    This error is occuring because your file is zipped. It has to be unzipped first. You need to enter following code
    sudo gunzip /usr/share/doc/wordpress/examples/setup-mysql.gz

    After that run
    sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost

    And you are done!

  3. #3
    Join Date
    Jun 2012
    Location
    Hanoi
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Error installing Wordpress

    I also have an error when I install wordpress. I installed apache2, mysql, phpmyadmin... successfully. I extracted wordpress.zip and copied the wordpress folder to var/www.
    I opened my browser and type URL: localhost/wordpress, then go step-by-step, but when I filled in databasename, username and password, then clicked Submit, it prompted an annoucement like this:
    http://upanh.com/slider/?e=malihu&s=...rt=avp29c1oeqg
    I tried to open wp-config-sample.php in a text editor, fill in my information, and save it as wp-config.php, but it didn't work! I also tried to created a new wp-config.php file, but it's impossible. What do I have to do now?
    Thanks!
    To believe in future!

  4. #4
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,578
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Error installing Wordpress

    I cannot see that image you posted, so I don't know what the error is.

    Did you create the database and database user prior to running WP? Having just installed another WP instance yesterday, I had to create the database and user, then modify wp-config-sample.php with that information to create wp-config.php.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Feb 2008
    Beans
    Hidden!

    Re: Error installing Wordpress

    cp -p wp-config-sample.php wp-config.php
    nano (or vi) wp-config.php with your information


  6. #6
    Join Date
    Jun 2012
    Location
    Hanoi
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Error installing Wordpress

    Quote Originally Posted by SeijiSensei View Post
    I cannot see that image you posted, so I don't know what the error is.

    Did you create the database and database user prior to running WP? Having just installed another WP instance yesterday, I had to create the database and user, then modify wp-config-sample.php with that information to create wp-config.php.
    sorry, but I still see my image posted.
    Quote Originally Posted by Habitual View Post
    cp -p wp-config-sample.php wp-config.php
    nano (or vi) wp-config.php with your information
    Well, I have done it. It worked!
    Thanks for replying me, SeijiSensei and Habitual.
    To believe in future!

  7. #7
    Join Date
    Feb 2008
    Beans
    Hidden!

    Re: Error installing Wordpress

    Glad it worked out.


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
  •