12-13-2011
Ok,
Lets take your actions from the beginning:
1) "I just installed wordpress on localhost"
As who ( what account did you use to install?
2) " While I'm installing linux"
Should that not be done before?
3) "I can't ( that is wordpress can't ) make file wp-config.php in directory I want to install it /var/www/wordpress"
Again what account are you using?
this here can be more subtle for you may (you dont say anything of it...) have created an account for this software and so the software is using his account which of course depending of the permissions set but more likely the ownership may lead to your described issues. Setting everything to 777 is not the good way to solve things, it is like bringing up a server and to avoid user/privileges setting decide to have only one like old PCs... and so create a great playground for all the viruses and malware...
9 More Discussions You Might Find Interesting
1. Linux
This isn't strictly a Linux question, but... I've been working on a project to archive some streaming media for time shifting using 'mplayer' and have been using FIFOs to archive in Ogg Vorbis format:
mkfifo program_name.wav
(mplayer -ao pcm -aofile program_name.wav &)... (0 Replies)
Discussion started by: deckard
0 Replies
2. HP-UX
Hi,
I am a Unix Admin. I have to give the permissions to a user for creating new file in a directory in HP-Ux 11.11 system since he cannot able to create a new file in the directory.
Thanks in advance.
Mike (3 Replies)
Discussion started by: Mike1234
3 Replies
3. Shell Programming and Scripting
I was reading Bash Cookbook and it had a line of command that assigned a value from var2 to var1 if var1 was empty. Someone told me I could do the same with ${parameter}.
I'm just trying to understand this. Would the following be correct?
For:
answer=
default=1Should I assume that the two... (1 Reply)
Discussion started by: victorbrca
1 Replies
4. Shell Programming and Scripting
I just started shell coding and I'm a bit confused on how 'mv' works can someone explain to me how it works and if i did this correctly. Thanks.
echo "Enter Name of the first file:"
read file1
#echo $file1
if ; then
echo "Sorry, file does not exist."
exit 1
... (16 Replies)
Discussion started by: taiL
16 Replies
5. UNIX for Dummies Questions & Answers
Hi Gurus:
I am trying to understand the following line of code.I did enough of googling to understand but no luck.Please help me understand the follow chunk of code:
X=$0
MOD=${X%/*}/env.ksh
X is the current script from which I am trying to execute.
Say if X=test.ksh
$MOD is echoing :... (3 Replies)
Discussion started by: vemana
3 Replies
6. UNIX for Dummies Questions & Answers
Hi
cat /etc/group :
....
oinstall:x:401:
dba:x:400:oracle
...
cat /etc/passwd|grep oracle
oracle:x:130:401::/home/oracle:/bin/ksh
1. Is that mean that :
ORACLE user has OINSTALL as it Primary group and DBA as secondary group ?
2. What is the linux comman to set ORACLE user with... (2 Replies)
Discussion started by: yoavbe
2 Replies
7. Shell Programming and Scripting
Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies
8. Shell Programming and Scripting
Hi,
I found this in a script and I would like to know how this works
Code is here:
# var1=PART1_PART2
# var2=${var1##*_}
# echo $var2
PART2
I'm wondering how ##* makes the Shell to understand to pick up the last value from the given. (2 Replies)
Discussion started by: sathyaonnuix
2 Replies
9. Shell Programming and Scripting
Dear all,
I have a script which triggers a C program in it after initialising parameters.
Below is the sample
#! /bin/sh
. /my_data/environment
HOME=/home/execs/testing/
cd $HOME
compare $1 $2 X
exit $? (10 Replies)
Discussion started by: PikK45
10 Replies
LEARN ABOUT MOJAVE
cpanplus::shell::default::plugins::customsource
CPANPLUS::Shell::Default::Plugins::CustomSource(3pm) Perl Programmers Reference Guide CPANPLUS::Shell::Default::Plugins::CustomSource(3pm)
NAME
CPANPLUS::Shell::Default::Plugins::CustomSource - add custom sources to CPANPLUS
SYNOPSIS
### elaborate help text
CPAN Terminal> /? cs
### add a new custom source
CPAN Terminal> /cs --add file:///path/to/releases
### list all your custom sources by
CPAN Terminal> /cs --list
### display the contents of a custom source by URI or ID
CPAN Terminal> /cs --contents file:///path/to/releases
CPAN Terminal> /cs --contents 1
### Update a custom source by URI or ID
CPAN Terminal> /cs --update file:///path/to/releases
CPAN Terminal> /cs --update 1
### Remove a custom source by URI or ID
CPAN Terminal> /cs --remove file:///path/to/releases
CPAN Terminal> /cs --remove 1
### Write an index file for a custom source, to share
### with 3rd parties or remote users
CPAN Terminal> /cs --write file:///path/to/releases
### Make sure to save your sources when adding/removing
### sources, so your changes are reflected in the cache:
CPAN Terminal> x
DESCRIPTION
This is a "CPANPLUS::Shell::Default" plugin that can add custom sources to your CPANPLUS installation. This is a wrapper around the "custom
module sources" code as outlined in "CUSTOM MODULE SOURCES" in CPANPLUS::Backend.
This allows you to extend your index of available modules beyond what's available on "CPAN" with your own local distributions, or ones
offered by third parties.
perl v5.18.2 2014-01-06 CPANPLUS::Shell::Default::Plugins::CustomSource(3pm)