ok thanks a lot for trying to help, you are awesome
So,
First of all, this is not part of my explaining just a notice:
I got 2 terminals in Application/Accessories - Root Terminal and Terminal. I use Root Terminal with line starting with
root@localhost, not Terminal that starts with leo@localhost
Explaining now:
/var/www/ is the place where I store wordpress files where I need to install wordpress, change files, run in browser. Owner of this file is: www-data ( right click in this directory says "you are not the owner, you can't change these permissions"). I think I created this owner with the commend I mentioned in first post
Quote:
chown -R www-data:www-data /var/www/wordpress
I download wordpress, put the directory in /var/www/ and start installation ( in browsers of course with localhost/wordpress, all of these are php scripts with interacting with previously created database)
Than I get to the part where wordpress says:
Quote:
Sorry, but I can't write the wp-config.php file.
Than I type this command:
and it installs smoothly.
Than at this moment, I need to install plugins or themes , and I get the picture I also showed in first post.
And I type this command:
And I can install wordpress themes and plugins.
After that, I need to create folder in /var/www/wordpress/wp-content/themes/ and I can't make it. Right click in folder it shows: owner is www-data , "you are not the owner, you can't change these permissions". I change mod here: chmod 777 /var/www/wordpress/wp-content/themes and now I can make directory and write files.
That's step by step what I did. Maybe I shouldn't create www-data?
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)
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)
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)
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)
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)
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)
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)
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)
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)