Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
bubba:/var/www# a2ensite www.alonzofretwell.com
Enabling site www.alonzofretwell.com.
Run '/etc/init.d/apache2 reload' to activate new configuration!
bubba:/var/www#
bubba:/var/www# /etc/init.d/apache2 reload
Reloading web server config: apache2.
bubba:/var/www# a2ensite alonzofretwell.com
Enabling site alonzofretwell.com.
Run '/etc/init.d/apache2 reload' to activate new configuration!
bubba:/var/www# /etc/init.d/apache2 reload
Reloading web server config: apache2[Tue Apr 06 18:27:03 2010] [warn] VirtualHost 24.234.112.226:80 overlaps with VirtualHost 24.234.112.226:80, the first has precedence, perhaps you need a NameVirtualHost directive
i think i can ignore the warning but i would rather turn it off if someone can tell me how.
next i am instructed to Setup MySQL Database & Wordpress Config File where i am suppose to run...
Quote:
/usr/share/doc/wordpress/examples/setup-mysql -n example example.com
subsequently i have tried to setup the database and config file using phpmyadmin to try and finish the install. however when i try to go through the final steps of the wordpress setup i get...
Quote:
Warning: require_once(/etc/wordpress/config-alonzofretwell.com.php) [function.require-once]: failed to open stream: No such file or directory in /etc/wordpress/wp-config.php on line 6
Fatal error: require_once() [function.require]: Failed opening required '/etc/wordpress/config-alonzofretwell.com.php' (include_path='.:/usr/share/php:/usr/share/pear') in /etc/wordpress/wp-config.php on line 6
it appears that the error related to the failure of this step where i was suppose to setup a new database and create a config file at /etc/wordpress/config-example.com.php but got "permission denied" even though i am root.
please advise.
Last edited by GrapefruiTgirl; 04-08-2010 at 01:06 AM.
Reason: Rename thread to better describe the actual subject/problem.
everything is fine until i reach Enable Your New Sites where i am instructed to run
then i get these warnings...
i think i can ignore the warning but i would rather turn it off if someone can tell me how.
next i am instructed to Setup MySQL Database & Wordpress Config File where i am suppose to run...
...where exmple is replaced with my <site>.
i get this error...
(observe i get this event hough i am root)
subsequently i have tried to setup the database and config file using phpmyadmin to try and finish the install. however when i try to go through the final steps of the wordpress setup i get...
it appears that the error related to the failure of this step where i was suppose to setup a new database and create a config file at /etc/wordpress/config-example.com.php but got "permission denied" even though i am root.
please advise.
You need to create a mysql database first and then open the wp-config.php file, specify the database name, username, password, hostname in that file. Then call this folder (where you installed wordpress)from your browser and follow the instructions on screen.
Distribution: debian etch, kubuntu, mac osx 10.51, vista
Posts: 65
Original Poster
Rep:
hi,
i have posted the contents of /usr/share/wordpress/wp-config.php because it is quite short. i don't see where i am suppose to add the things you mentioned. i have created the database using myphpadmin.
and i am trying to track down the README.Debian file wp-config.php refers to.
Quote:
<?php
/** WordPress's Debianised default master config file
Please do NOT edit and read about how the configuration works in the README.Debian
**/
i have posted the contents of /usr/share/wordpress/wp-config.php because it is quite short. i don't see where i am suppose to add the things you mentioned. i have created the database using myphpadmin.
and i am trying to track down the README.Debian file wp-config.php refers to.
the comment the file is somewhat confusing but i get it.
Let me tell you first I never installed wordpress on a debian box, I usually put the folder in my document root and create a database in mysql, make the changes in wp-config.php and call that location from browser and it works every time.
Your wp-config.php is different from what I have in my system.
Here is my wp-config.php file:
Quote:
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information b y
* visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
* installation. You don't have to use the web site, you can just copy this file
* to "wp-config.php" and fill in the values.
*
* @package WordPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'quiz');
/** MySQL database username */
define('DB_USER', 'test');
/** MySQL database password */
define('DB_PASSWORD', 'password');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/ 1.1/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*
* @since 2.6.0
*/
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
/**#@-*/
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'wp_';
/**
* WordPress Localized Language, defaults to English.
*
* Change this to localize WordPress. A corresponding MO file for the chosen
* language must be installed to wp-content/languages. For example, install
* de.mo to wp-content/languages and set WPLANG to 'de' to enable German
* language support.
*/
define ('WPLANG', '');
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
Last edited by Sayan Acharjee; 04-07-2010 at 12:06 AM.
Distribution: debian etch, kubuntu, mac osx 10.51, vista
Posts: 65
Original Poster
Rep:
the error that is reported when i try to run the wordpress setup appears to be a result of the failure to create the database and config file the debian wordpress install expects when it runs wp-config.php as is.
i dare not change my wp-config.php because of the warning in its comments. and because the architecture of my debian wordpress install appears to be significantly different from yours.
instead i am trying to track down the reason i get "permission denied" when i run /usr/share/doc/wordpress/examples/setup-mysql
but ty for offering the contents of your wp-config.php.
Distribution: Ubuntu, SuSE10.2, LFS, Ubuntu Server (AMD64), Windows 7, Mac OSX
Posts: 30
Rep:
I've got several instances of wordpress and drupal running on my server. It is a debian based server.
The first thing I do is create a new database through phpmyadmin.
Then I open the wordpress folder I've downloaded from their site. I take the file called wp-config-sample.php, open it, enter the appropriate db information and save it as wp-config.php. Then I upload the entire contents of the wordpress folder to my root folder on the apache server, in my case /var/www/example/.
Once it is uploaded you simply call the site up in your browser and follow the instructions.
The whole process shouldn't take more than five minutes.
Distribution: debian etch, kubuntu, mac osx 10.51, vista
Posts: 65
Original Poster
Rep:
ty to everyone who suggested the wordpress codex and instructions at wordpress.org.
over the past few months i have run those instructions and studied the wordpress codex.
however, i was unable to get custom permalinks to work on my debian etch server.
subsequently i have removed the original 5min install and its databases and tried to use the debian package manager apt-get in the hopes that the apt-get script would do a better job of updating the necessary files and so-forth.
i need to rephrase my question to get this issue resolved because it is a mysql issue not a wordpress issue.
I have updated your thread's title per your thoughts in Post #8; if there's any problem with the rename, feel free to contact me or hit the REPORT button and suggest a different/better title.
EDIT: Updated title again per suggestion by the OP.
Cheers!
Sasha
Last edited by GrapefruiTgirl; 04-08-2010 at 01:07 AM.
Reason: Note about second update.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.