where to place htaccess file on openshift for wordpress? - wordpress

I have read and tried these previous questions on Stack Overflow networks,
these solutions doesn't solved my confusion. So I am asking the same question again.
The questions that I've researched and doesn't solve my problem
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
I'm just trying to install WordPress on OpenShift by custom way than the one click install. I've cloned my openshift git repo on my desktop. Extracted, added and pushed wordpress.tar.gz to the repo and installed correctly so that i could login to the admin site.
my repo files look this way,
deena#home:~/Desktop/wordpress$ ls -al
total 76
drwxrwxr-x 7 deena deena 4096 Feb 4 23:20 .
drwxr-xr-x 13 deena deena 4096 Feb 6 22:11 ..
drwxrwxr-x 8 deena deena 4096 Feb 4 23:20 .git
-rw-rw-r-- 1 deena deena 9 Feb 4 16:41 .gitignore
drwxrwxr-x 2 deena deena 4096 Feb 4 16:41 libs
drwxrwxr-x 2 deena deena 4096 Feb 4 16:41 misc
drwxrwxr-x 9 deena deena 4096 Feb 4 16:41 .openshift
drwxrwxr-x 2 deena deena 4096 Feb 4 16:41 php
-rw-rw-r-- 1 deena deena 2130 Feb 4 16:41 README
I want to put the .htaccess file on this repo so that wordpress can use this in some RW mode. Where can I place the htaccess?
one man said on the listed question to place it on the config directory then action_hook to use it on the base directory,
where's the config directory? should I do any hard work to make it work? (I don't know whats action_hook honestly)
some questions were answered to place it on the base dir, that's the listed dir, some other said to place it in the app directory, the wordpress directory seen here.
I tried placing in the base as well as the app directory nothing happens other than the wordpress is reinstalled the next time I point my browser to the app URL.
So making the question clear again, in layman terms, where to place the htaccess file to make it accessible for WordPress?
thanks.
peace

I think, here you can find a solution.

The .htaccess files needs to go in the same directory as your core WordPress files, wherever your wp-config.php file is. However, since you are deploying this site via git, with all of the WordPress files included, whatever changes that are made to the .htaccess file by WordPress will be reverted once you do another git push. If you don't plan on doing any more git pushes, then everything should be fine. The same thing goes with any of the plugins or themes, they will be removed on a git push if you install them using the WordPress admin interface. You will either need to make your changes locally in your git repo on your workstation (adding themes, adding plugins, updating .htaccess), or you will need to use a quickstart that uses symlinks to store that information on the server in a different location. You could also use the WordPress OpenShift quickstart which is designed just for use with OpenShift, and helps you with a lot of these issues....

Related

I'm unable to delete this folder

Okay, I recently installed snapd on my system, but I later decided to uninstall it. Regardless of me uninstalling it, the folder, /snap/, remains. I initially tried to delete the folder using the
sudo rm -r snap
command, but I keep getting the error message that the folder is a read-only folder. I did the
ls -ld snap
command to see the permissions for that folder and the output I got was
drwxr-xr-x 1 root root 370 Jan 24 19:02 snap
Would anyone be so kind as to tell me how I would go about deleting that folder? Thanks.

What is folder (null).1001.1001

(null).1001.1001
What is this folder? Where does it come from?
drwxrwxrwx 49 appusr appusr 4096 Jan 7 21:52 (null).1001.1001
I think it has something to do with Mr. Root impersonating Mr. AppUsr in a background task, but I posted to AskUbuntu last week, and nobody there recognized it.
Why am I asking? Well ...
On an Ubuntu box, I have a restricted-access applications user who is uid 1001 and gid 1001. Root launches Rserve under that user during boot. The Rserve session is writing into a Windows CIFS share. All seems to be functioning as intended ...
I'm finding these folders peppered throughout the application user's file tree:
drwxrwxrwx 49 appusr appusr 4096 Jan 7 21:52 (null).1001.1001
I'm finding these subfolders in various folders. Each of these subfolders is different, but they seem to contain partial temporary files, like stuff that I extracted from a tarball, or partial pdf writes.
My primary interest in these folders is that I've found that sometimes I need them and don't have them. There's a particular operation can work or fail depending on whether or not this folder is present. When writing a PDF from inside a knitr document that I call remotely from Rserve, I get this error message
## Error in plot.new(): cannot open file '', reason No such file or directory
I can't find an R reason for this, and it works when called from an rstudio-server session or from a Windows Rstudio IDE, but when called from Rserve, it seems to depend on having that folder present in the filesystem, and I'm quite sure that I didn't put it there! What is it?

rsync Only Latest Files Sync

I am having scenario, the following directory contain files.
Name Modiffiled Date
File1.bak 18 Oct 2015
File2.bak 17 Oct 2015
File3.bak 16 Oct 2015
The above files in GB's and want to sync only two latest files on Dest Dir, so, is there any way do this instead of moving / copying files to separate folder?
Thanks
Rashid

Moving Wordpress installation via SSH breaks, via FTP works like a charm

I am trying to move a Wordpress installation through svn but I am having problems.
Moving through FTP (Filezilla, copy to desktop then copy to new location on server) works perfectly.
Moving it using cp and mv in SSH works perfectly too.
Doing svn co <url> to checkout a copy of the repository results in 500 Internal Server Error and I can't fix it no matter what... recreating the .htaccess, deleting the plugins folder (no wp-admin access either), deleting the specific theme, etc.
The only difference I can find between my Wordpress folder that's been copied through FTP or SSH and the Wordpress folder created through the svn checkout is this (seen when doing ls -l in SSH):
Moved through FTP/SSH:
drwxrwxr-x 6 suddenm2 suddenm2 4096 Nov 14 19:35 wordpress-folder
Svn checkout:
drwxr-xr-x 5 suddenm2 suddenm2 4096 Nov 14 19:21 wordpress-folder
What exactly do the "5" and "6" mean, and what could the difference in file permissions mean? Thank you
The "5" and "6" mean the number of directories inside the directory, or the number of hard links pointing to the file if it is a file.
You have different numbers of directories between the 2 copy. You probably should check if you are missing anything in the svn checkout.

How to build static libqsqlpsql.so in Qt in Ubuntu

friend!
Please, help me. I am confused and sad. Darkness is embracing me and you, my friends, are the only hope I have.
I have installed qt in Ubuntu 10.10 using aptitude.
Then I have installed libqt4-sql-psql. Now I have *.so files in qt's directory /usr/lib/qt4/plugins/sqldrivers.
Directory contains now 3 files actually.
$ ls -l
-rw-r--r-- 1 root root 47048 2011-03-29 12:11 libqsqlite.so
-rw-r--r-- 1 root root 63668 2011-03-29 12:11 libqsqlmysql.so
-rw-r--r-- 1 root root 71844 2011-03-29 12:11 libqsqlpsql.so
There is no psql.pro or anything I can use to qmake this all.
How can I build driver and use to work with postgres.
What should I do?
Maybe it is a dummy's question... sorry
You have the file you need:
/usr/lib/qt4/plugins/sqldrivers/libqsqlpsql.so
this should allow you to use the driver. You can check which drivers are available using QSqlDatabase::drivers.

Resources