I will try that
Type: Posts; User: astarmathsandphysics; Keyword(s):
I will try that
I will execute as root and have written another cron job to change owbership of all files in /var/www to www-data:www-data once a week.
Once is not enough because the script generates more files...
I opened astarmathsandphysics.log an emptied the contents then saved it without starting rsyslog.
Then I ran
Ok I will look at that
All foldersdown to the file are accessible and file is reable
as user astarmathsandphysics I get the message
touch: cannot touch ‘/var/log/apache2/astarmathsandphysics.log’: Permission denied
I could but I thought it would be bad practiice to have a file owned by root accessible via the internet. I have gone hot on security this year. All my websites have gone hhtps, I have a static ip...
That doesnt work unfirtunately
The file /var/log/apache2/astarmathsandphysics.log soes exist and all directories in this path are readble
I have put this line in root crontab
0 12 20 * * sudo -u www-data /usr/bin/google-sitemapgen --config=/usr/share/doc/google-sitemapgen/examples/astarmathsandphysics.xml
and tested it in root...
Thanks. Will follow your advice
Is it safe to do that? Will www-data be able use terminal without a passwoed?
No cron job works on that crontab
I have several websites in /var/www/ each in a folder. The folders are owned by www-data.
I have installed google sitemap generator and have set up cron jobs for each domain to run the sitemap...
Installed dependencies in terminal
I tried to install red5 through software center but got this message:
Package dependencies cannot be resolved
This error could be caused by required additional software packages which are...
Fixed it by reinstalling apache2
Other ports - 25,465,993, 587 - are open ok
I have opened port 80 in router and ufw, and netstat -ntlp | grep LISTEN tells me apache2 is listening on port 80. Still port 90 is not open externally. This has been so for two days and I cant fix...
Saved my life
Not quite actually. The process fails at
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
because I log in as the root user but dont have root priveleges
By mistake I deleted my root privileges in phpmyadmin.
I can still log in to mysql but do not have any privileges there and about 4 hours of trying have got me nowhere.
How can I recover my root...
I can install any software in software-center. In can uninstall things, and install/update/upgrade in the terminal.
I have reinstalled software center with no effect. When starting softwar-e-center...
I am almost there setting up an email server but now I can't log in with an email client to read the email - I get connection refused message.using mutt and wring username or password or...
For the fourth or fifth time I am trying to configure postfix with dovecot and I get the error
postfix/smtpd: fatal: no SASL authentication mechanisms
I understand there are issues with...
Resinstalled apache2 and wortks nnow