Installed on Windows Server 2012 (Virtual)
SSH
From the Guide:
Working:
host (server) name
primary user
password
LAMP & SSH
mysql root password
Create mysql database
Download and Install Support Files & Omeka:
Working:
cd
sudo aptitude install unzip
sudo aptitude install imagemagick
wget omeka
unzip omeka
sudo mv omeka /var/www/
NOT working
sudo mv omeka/.htaccess /var/www/
("No such file or directory")
Working:
sudo groupadd webdev
sudo usermod -a -G webdev user
cd /var
NOT working
sudo chown -R root.webdev www
("No such file or directory")
Working:
sudo chmod 775 /var/www
sudo find /var/www -type d | zargs sudo chmod -R 775
NOT working:
sudo find /var/www -type f | zargs sudo chmod -R 664
("sudo: unable to execute /bin/chmod: Argument list too long")
Not Working:
sudo rm /var/www/index.html
(File not found)
Working:
cd /var/www
sudo chmod -R 777 files
sudo nano /var/www/db.ini
and mods
sudo a2enmod rewrite
NOT working:
sudo nano /etc/apache2/sites-available/default
(File not found)
Working:
sudo nano /etc/apache2/sites-available/000-default.conf
Contents of 000-default.conf:
<VirtualHost 192.168.1.10:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride ALL
Order allow,deny
allow from all
</Directory>
Working:
sudo nano /var/www/.htaccess
Contents of .htaccess:
# Omeka .htaccess: Apache configuration file
# This file is required for Omeka to function correctly.
# --------------- #
# Error Reporting #
# --------------- #
# Uncomment the SetEnv line below to turn on detailed on-screen error
# reporting.
#
# Note: This should only be enabled for development or debugging. Keep this
# line commented for production sites.
#
# SetEnv APPLICATION_ENV development
# ------------- #
# Rewrite Rules #
# ------------- #
RewriteEngine on
# If you know mod_rewrite is enabled, but you are still getting mod_rewrite
# errors, uncomment the line below and replace "/" with your base directory.
#
# RewriteBase /
# Allow direct access to files (except PHP files)
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule !\.(php[0-9]?|phtml|phps)$ - [C]
RewriteRule .* - [L]
RewriteRule ^install/.*$ install/install.php [L]
RewriteRule ^admin/.*$ admin/index.php [L]
RewriteRule .* index.php
# -------------- #
# Access Control #
# -------------- #
# Block access to all .ini files.
<FilesMatch "\.ini$">
Order Allow,Deny
Deny from all
</FilesMatch>
# --------#
# Caching #
# --------#
# Uncomment the lines below in order to enable caching of some files
# (after a finished site has gone live)
#
# <IfModule mod_expires.c>
# <FilesMatch "\.(js|ico|gif|jpg|png|css)$">
# ExpiresActive on
# ExpiresDefault "access plus 10 day"
# </FilesMatch>
# </IfModule>
# ------------ #
# PHP Settings #
# ------------ #
<IfModule mod_php5.c>
php_flag register_globals off
php_flag magic_quotes_gpc off
</IfModule>
Working:
sudo service apache2 restart
At first the Apache default page worked.
I added:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow.deny
allow from all
</Directory>
and that broke it.
Just took that out.
I've tried every which way to doublecheck the IP address and so on. Nothing but the Apache Startup page.
I'm stuck.
Help.