Installation issues and .htaccess

I need clarification about this Installation instruction:
"Make sure to upload the '.htaccess' file in the root (top-level) directory and the '.htaccess' file in the directory named 'admin'."

I put my omeka installation in a subdirectory, say "subdir1/subdir2/." All Omeka files are under "subdir2."

http://domain.com/subdir1/subdir2/

I put a copy of the .htaccess file in the top root level directory, "subdir2" and there's a copy in the "admin" directory, per your instructions. However, when I went over to http://domain.com/subdir1/subdir2/ to begin Installation step 5. I got a 404 error, that...

"/subdir1/subdir2/" is not a valid URL and Error: script "index.php' is not found in path....
Error: script 'index.php' not found in path (/home/domain.com/subdir1/subdir2/themes/berlin/:/home/domain.com/subdir1/subdir2/application/views/scripts/)

I followed the list of things to check if the installation was unsuccessful, with no change.

My question: by "root directory" do you mean domain.com? I tried using .htaccess in that directory, but it caused problem for my wordpress installation that is in a different subdirectory - I couldn't access its login page. I don't have .htaccess file in the top directory, otherwise.

I already adjusted the .htaccess RewriteBase to include /subdir1/subdir2/ for admin, install and the top .htaccess files.

Please advise.
Thanks.
Amy

Sorry if those directions were confusing.

You don't need to move around or make copies of the .htaccess files that Omeka is packaged with, they're designed to go exactly where they're unzipped. The direction you quoted is supposed to make sure people remember to actually upload the .htaccess files along with the rest of Omeka.

So, if you've uploaded omeka in its entirety to domain.com/subdir1/subdir2, you should have the following files:

  • subdir1/subdir2/.htaccess
  • subdir1/subdir2/admin/.htaccess

You shouldn't move these files to any other location or make any copies of them. In particular, there shouldn't be a .htaccess file in subdir1 or the root of your domain.

Hi John,

Thanks for your reply. The directions were the first thing I followed but received a 404, so I tinkered it for a bit before calling for help. I restored everything to exactly the way the files were packaged, and I'm still getting the 404. Any other suggestions?

http://xxx.com/collecitons/stamps/

Not Found
The requested URL /collecitons/stamps/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I assume that the link you followed was "collections/stamps/" and not "collecitons" (spelling).

Other than that, is the domain the only thing you changed in posting that URL? The URL you posted would seem to indicate that you do have Omeka installed in your domain root, since there are no intervening subdirectories between "xxx.com" and "collections".

Could you be a little more specific about the layout of your directories and where your Omeka files are located? In particular, if the URL you're using doesn't match up exactly with your physical directory structure you'll probably need to use the RewriteBase directives that are stored in the .htaccess files.

Hi John,

My apologies. I did misspell the URL when I entered it. The actual error was

Omeka 404
"/collections/stamps/" is not a valid URL.

Error: script 'index.php' not found in path (/home/amy/xxx.net/collections/stamps/

(I deliberately removed my domain because Google captures and displays forum messages when the domain is searched.)

In terms of directories, xxx.net is my domain name. All Omeka related files are under stamps/ (Omeka was renamed "stamps").

I did try modify the RewriteBase to
/collections/stamps/. That didn't work. It's back to the original settings that came with the files.

Amy

In case it wasn't clear in my previous post, I removed the domain name in my post so it won't be captured in search engines. But the the layout of directories is as given.

xxx.net/collections/stamps/

Am determined to resolve the 404 error (see last post) and get this up an running, so any further suggestions would be appreciated.

Amy

Hello, please do let me know if you think Omeka was installed correctly. Dreamhost is more likely to assist if the issue is really on their end.

Amy

From your error message, it seems like Omeka is looking for the Berlin theme and not finding it. Can you confirm that you have the berlin theme in the 'themes' directory?

Hi Jeremy,

No, there isn't a Berlin theme in the folder. I have only

default
index.html
miniminalist
rhythm
seasons

???

I downloaded and added the Berlin theme to the theme directory, and am now able to access the dashboard. So, that problem is resolved. (The Omeka 1.2.1 package that I downloaded from this site seems to be missing the Berlin theme, however.)

I had installed Omeka 1.0 a year ago in the same directory. School got in the way. Now finished with school, I'm back. I decided to do a fresh start, deleted the old files, and uploaded a fresh new copy. Now that I can see the dashboard, I seem to be dealing with ghosts that are still lingering from 1.0. I cannot remove a reference to the CVSImport plugin on the "Browse Plugins" page. When I clicked on the buttons to deactivate and uninstall it, I got a message:

"The following error occurred while uninstalling the 'CsvImport' plugin: 'CsvImport' plugin directory does not contain a 'plugin.php' file."

Indeed, there is no CsvImport in the plugin directory, so how do I get rid of its listing in the "Browse Plugins" page?

Amy

Hi Amy,

I downloaded and added the Berlin theme to the theme directory, and am now able to access the dashboard. So, that problem is resolved. (The Omeka 1.2.1 package that I downloaded from this site seems to be missing the Berlin theme, however.

We don't package the Berlin theme with Omeka, and haven't in any previous version, but it is available for download on Themes Addons page. It sounds like you or someone downloaded it when you installed 1.0, but didn't put it back when you upgraded to 1.2.1.

"The following error occurred while uninstalling the 'CsvImport' plugin: 'CsvImport' plugin directory does not contain a 'plugin.php' file."

Indeed, there is no CsvImport in the plugin directory, so how do I get rid of its listing in the "Browse Plugins" page?

This happens because you had activated the CSV Import plugin, but have removed the plugin's directory from the 'plugins' directory. Omeka is trying to run the uninstaller scripts unique to the CsvImport plugin, but it cannot because the plugin's files are not on the server.

There are two solutions to this:

1) Download and place the Csv Import plugin back in your plugins directory, then uninstall as normal. This will allow Omeka to run the uninstaller scripts unique to the plugin.

2) Edit the records for the CsvImport plugin directly in the 'plugins' table of your MySQL database. Find the row that corresponds to the CsvImport plugin, and either delete that row, or set the 'active' column to '0'.

Hope this helps!
Jeremy

Hi Jeremy,

So it was the MySQL that was hoarding information about the Berlin theme, that I used previously? (I thought it stores only item records.) Your suggestion regarding the CSV worked.

Thanks!
Amy

Hi Amy,

Yes, the database you create for your Omeka installation will store quite a few things: site settings, active plugins, active theme, users, among others.

Glad you got it working!
Jeremy