I have recently configured a wordpress site using a VPS setup with LEMP. I'm new to nginx so I'm using an nginx config I found here.
Anyways, I'm using the jQuery file upload tool and I have it setup to where it uploads the files (images in this case) to a couple directories (php/file and php/crop) on upload.
When using the Delete button, The delete function is passed the URL (example.com/server/php?file=image.jpg) hitting the index.php which takes the delete request and deletes the images in the directories associated.
However, when I enable 'dav_methods PUT DELETE MKCOL COPY MOVE;' in nginx, the delete request deletes the directory.
How do I make it where it hits index.php so that I can let it delete the files in the proper directories?
Related
Setting redirects manually is fairly simple and well documented, but I cannot find anything about setting rewrites and redirects programatically.
My need is to set redirects based on editor input, coming from a CMS.
With my previous Firebase-based stack, I could generate a firebase.json file at the root of my project and that was it.
With S3, I could create a .json containing RoutingRules and upload it with the cli, something like:
aws s3api put-bucket-website --bucket <my-bucket> --website-configuration file://website.json
Isn't there a similar solution for Amplify?
I am trying to install Wordpress using this tutorial https://cloud.google.com/community/tutorials/run-wordpress-on-appengine-standard.
I have it deployed, but when I try to have it as "subfolder" /blog service of the main domain using dispatch.yaml, the site seems to load (e. g. file /blog/2021/05/27/hello-world/), but the css and js files throw 404 error.
E.g. /blog/wp-includes/css/dist/block-library/style.min.css?ver=5.7.2.
I have also changed siteurl in the database, but that does not seem to work.
Check your static file handler in app.yaml. Since you are putting your site under a folder (sub folder), calls to your static files start from /blog/. This means the handlers for your static file should also start with /blog/
I installed WP locally on XAMPP.
When I manually type my project root in a browser I start seeing this. But when I run the project through VScode Live server I start seeing all files and directories of my site see here.
Why does this happen? Is it because I run the project locally? Or is it because the root is followed by :5050 port number?
My theme style.css is empty.
My theme index.php contains only starting html !+tab attributes (see here)
The first image looks like to be served by apache which loads mod_php which "executes" the php code of every .php file and serve the result as html.
The second image looks like an application running on port 5000 (which might not be apache) and NOT using a module to "execute" .php file so it just shows the content of the folder.
My website is loading same files with www and without www. I just deleted the file from file manager and its showing 404 which is fine but a different version of it is loading
https://ospreyhomes.ae/wp-content/uploads/2015/01/logo.png (Delete but loading over without www domain)
https://www.ospreyhomes.ae/wp-content/uploads/2015/01/logo.png (Deleted - 404)
How can i get rid of the https://ospreyhomes.ae/wp-content/uploads/2015/01/logo.png being accessed on internet. i have already deleted the file
Same things goes with these 2 files. File deleted but being accessed with url without www
https://ospreyhomes.ae/wp-content/uploads/2015/01/logo.png
https://www.ospreyhomes.ae/wp-content/uploads/2015/01/logo.png
Its almost happen to any file when you have cdn cache service enable like cloudflare. Make sure you clear your browser cache. Try F5. Even not working,Then try a proxy browser to see real-time status of file or disable cloudflare while editing files.
From my side,i see your file has been deleted.
I am using linux. I downloaded wordpress zip file. I have a folder life.com and unzipped the wordpress contents in it.
I have created a virtual host life.com (its not a live site). its only accessible from my computer.
I set my apache web server and hosts so that life.com points to the folder.
When i open life.com it shows blank page. I just renames index.php to index1.php then it shows the contents of the folder life.com
I put a sample.php with hello. when i open life.com/sample.php it shows hello
there is no problem with the apache and php.
generally the fresh install of the wordpress should show the page
There doesn't seem to be a wp-config.php file. I need this before we can get started.
Need more help? We got it.
You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.
Create a Configuration File
instead of opening life.com, i made a folder in the apache root directory /srv/wordpress and unzipped the files there.
when i open localhost/wordpress then it shows
There doesn't seem to be a wp-config.php file. I need this before we can get started.
Need more help? We got it.
You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.
Create a Configuration File
its showing blank page when i open from virtual host (life.com) but opens correctly from localhost/wordpress.