I really would like to avoid having to install virtual box just to use Oracle 11g. Is there a way to install it into Mac OSX?
Strawberry's questions
I have Rails installed for example.com
, however, I want to use WordPress for my blog as well. So I want example.com/blog
to be WordPress. The problem is, I want to have WordPress in a separate directory from the Rails, such as /srv/www/example-wp
and have Rails in /srv/www/example-ruby
. How can I separate this? I think it has something to do with virtual hosts, but I am unsure how this is supposed to work.
Update:
<VirtualHost ip:80>
ServerAdmin [email protected]
ServerName example.com
ServerAlias www.example.com
DocumentRoot /srv/www/example-ruby/public/
Alias /blog /srv/www/example-wp/public/
<Directory /srv/www/example-wp/public/>
AllowOverride all
Order allow,deny
Allow from all
</Directory>
<Directory /srv/www/example-ruby/public/>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
I want to remove the 0.9.8o versions. Does anyone know how without breaking and destroy it's dependents.
I am using insserv -r nfs-common
to disable RPC. How do I know if it worked? Is there a way to list the services starting up? Is it supposed to disappear from /etc/init.d
(because it still there)?
Currently, my PHP is on 5.3.3, how can I upgrade it? Also how can I upgrade anything? For example, if I want to upgrade phpMyAdmin as well?
I read the man page, and I think I don't need this. However, I am unsure and wanted to ask more information about it before disabling it. What is it? Before I disable this, is there a way to check to see if there is a dependency?
/etc/fstab
/srv/www/test.com /home/user/test.com auto nouser,auto,rw,sync 0 0
I am getting the following error: mount: you must specify the filesystem type
. Could someone please give me some insight? I am trying to mount a directoryA into directoryB and allow any changes (add new files, edit files). Also, if I make changes to a file in the mount, it would automatically change the original right?
I have been searching, but I couldn't find a tutorial with a step by step guide to creating authentication for Mercurial. From what I have found, a lot of people are pointing to this resource, but it doesn't seem to show what I am trying to achieve: http://mercurial.selenic.com/wiki/PublishingRepositories
Can someone please show me where I can find a guide to setup authentication with Mercurial? HTTPS, or public key system, they both work!
Thank you
I found out my disk was full today, and I freed up 10% just from deleting mostly logs from multiple websites. I, personally, like to keep logs as an archive, because I may need to look back on them for whatever reason. I'm new to administrating my LAMP server, so I want to pick up some good practices. How periodically should I clean out my logs? Should I even keep them? What other things can I do periodically to clean out the caches and "temporary" files for my server to keep it from using up all the diskspace again?
The problem is, they're all creating files for the website and I always have to change the group to www-data
so they have permission to it. I can run a cron job, but that seems like a ghetto fix. The users are creating a file locally and just transferring it via SFTP through programs such as Transmit. I am sure I am not the only one having this problem, so I wanted to know how others handled it.
This is the setup I used: http://library.linode.com/security/sftp-jails
So I'm looking at this question: How do you backup your websites?
I was creating a script to be used with cron, and then I realized I would have to somehow input the password in the script. What is a good method to do this?
Also, is it better to make a cron job on the server I am backing up and then send the file to another server or have the cron job on the other server access the server that needs to be backed up and run the tar then grab the file?
A while back, I was setting up a SFTP account for a developer and I used: Internal SFTP Settings
I don't know which file I put that in. How can I find it? Is there a way to search all my files in my server?
I a using debian, and I have a custom apache.conf, so I was wondering how can I upgrade my phpmyadmin to 3.3.8 from 2.11 easily without overwriting my settings.
So, I created a repository like so: svnadmin create /path/to/repository
What's the equivalent for deleting? I couldn't find it.
I keep getting this error, do you guys know what is wrong?
rapache
is an alias for restart apache
mugbear:/usr/bin# cat /usr/bin/mkdomain
if [ -d "/srv/www/$1" ]; then
echo "Domain $1 already exists!"
else
mkdir -p /srv/www/$1/public_html
mkdir -p /srv/www/$1/logs
cat >> /etc/apache2/sites-available/"$1" << EOF
<VirtualHost removed:80>
ServerAdmin support@$1
ServerName $1
ServerAlias www.$1
DocumentRoot /srv/www/$1/public_html/
ErrorLog /srv/www/$1/logs/error.log
CustomLog /srv/www/$1/logs/access.log combined
</VirtualHost>
EOF
a2ensite $1
rapache
fi
mugbear:/usr/bin# mkdomain test.com
/usr/bin/mkdomain: line 19: syntax error: unexpected end of file
I originally installed VSFTPD
, but my friend said it was unsecured and told me to install SSH. I just want to transfer files, and I am not sure what am I supposed to install, could someone please tell me what am I supposed to install?
I am using Debian
I am new to servers, and I was following this guide and it failed on the first command instructed. Could anyone give me a hand?
http://wiki.debian.org/iptables
~ZORO~:/etc# iptables-restore < /etc/iptables.test.rules
iptables-restore: line 1 failed
Edit: iptables.test.rules
~ZORO~:/etc# cat /etc/iptables.test.rules
*filter
# Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0
-A INPUT -i lo -j ACCEPT
-A INPUT -i ! lo -d 127.0.0.0/8 -j REJECT
# Accepts all established inbound connections
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# Allows all outbound traffic
# You could modify this to only allow certain traffic
-A OUTPUT -j ACCEPT
# Allows HTTP and HTTPS connections from anywhere (the normal ports for websites)
-A INPUT -p tcp --dport 80 -j ACCEPT
-A INPUT -p tcp --dport 443 -j ACCEPT
# Allows SSH connections for script kiddies
# THE -dport NUMBER IS THE SAME ONE YOU SET UP IN THE SSHD_CONFIG FILE
-A INPUT -p tcp -m state --state NEW --dport 30000 -j ACCEPT
# Now you should read up on iptables rules and consider whether ssh access
# for everyone is really desired. Most likely you will only allow access from certain IPs.
# Allow ping
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
# log iptables denied calls (access via 'dmesg' command)
-A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7
# Reject all other inbound - default deny unless explicitly allowed policy:
-A INPUT -j REJECT
-A FORWARD -j REJECT
COMMIT
I was curious as to how people normally back up their websites. I normally drag and drop from FTP and use phpmyadmin to download a copy of my databases. I'm sure there's a way where you write a script and have it back up your stuff automatically or upon click, how do people do that? Is it possible to use php to back up stuff?
I have SSH access too.