How to check the server whether it is blocking POST request? - apache

How to check whether my server is blocking the post request or not?
Currently in my wordpress, whenever I click update page there will be "The specified URL cannot be found" error. This is not permalink issue. The issue is with server configuration.

If you're getting the error message you say you're getting then POST is enabled and working. The problem is, like the message says, the URL.
Wordpress has this feature to enable "pretty URLs". It could be you've enabled it (or it may come enabled by default, I'm not sure) but don't have the required Apache module - mod_rewrite - enabled.
If you've got access to the command line of the server and your server is on Linux, simply issue:
// Enable mod_rewrite
> sudo a2enmod rewrite
// Restart Apache
> sudo service apache2 restart
If you would like some more help, please post the URL Wordpress is trying to reach and your Apache configuration to start with.
P.S.
If your server is on Windows, then enabling mod_rewrite depends on which software you've got installed.

Related

Mod wsgi and apache configuration

I'm facing the following issue: i've a public web server running on a given URL, say, www.mysite.com.
It uses apache2.
I've developed a python web app and I want to make it publicly accessible.
Locally, I use the command
mod_wsgi-express start-server wsgi.py
to start the server and everything works.
However, I would like to link only a specific URL to my app, such as mysite/my_test, leaving apache2 serving all the other requests.
In other words, I would like to set the server URL for mod_wsgi-express to mysite/my_test port 80.
By default I get Server URL: http://localhost:8000, and I would like to change this.
I've tried the --mount-point option, but I didn't see any difference.
I know I can change the apache configuration and adding WSGIScriptAlias but I'm facing multiple issues, so I'm searching for a quickest and easiest way.
Hope this is clear.
Thanks.

How to apply changes to HTML pages on Apache web server

I am trying to update the website hosted on my Apache server (running on Fedora Server).
I tried doing both system restart httpd and system reload httpd, but when I open up a web browser and go to the site's IP address, the changes haven't applied. I viewed the source to confirm that the updated code wasn't there, and indeed the updated code was not there.
It seems like the .htaccess was working, it just hadn't "kicked in" yet I guess. I set the max-age to 10 and the updates applied.

How to execute a script Perl with mozilla with Bitnami LAMP Stack?

I downloaded LAMP Stack from Bitnami web site as Ubuntu VM. I'm not expert, and I've some difficultes. I created a perl script as CGI called prova.cgi : it is a simple hello world. Now I have to execute it using mozilla (in windows), keeping alive the bitnami VM: I write: http://192.168.88.129/opt/bitnami/apache2/cgi-bin/prova.cgi but the result is:
Not Found
The requested URL /opt/bitnami/apache2/cgi-bin/prova.cgi was not found on this server.
Maybe I'm making an error about the location in which my script is supposed to stay: I put it in /opt/bitnami/apache2/cgi-bin/.
Any Suggestion?
Regards, Matteo
"Not Found" means exactly what it says on the tin.
What's going on, is apache is configured with a scripting location - the precise details will be in your httpd.conf. When you access a url of an appropriate type, apache will redirect the request and run the script.
I will guess in this case - you need to fetch http://192.168.88.129/cgi-bin/prova.cgi
But to be sure, you'd need to check your httpd.conf.

moodle not working properly after installation

I have installed moodle many times. But this time when i install moodle all steps are completed uptil update profile. (localhost/moodle/user/editadvanced.php id=2) when i enter admin details and update file nothing is displayed. when i try to access moodle module through localhost chrome displays message "web page has a redirect loop".
localhost/moodle/admin/index.php page is not redirected. i have reinstalled Xampp.
in Apache error log i found following
RSA certificate configured for www.example.com:443 does NOT include an
ID which matches the server name
.
i found solution some where to comment include conf/extra/httpd-ssl.conf but it another error is activated in error log
"Sessioncache is not configured"
. Also i have changed port 443 but it didn't work
Find the moodledata folder.
Inside the moodledata
there are many folders
Delete all from Cache
2.Delete all from Session
Restart your browser.
It worked for me.
Hope that works for you.
Thanks for reply. I have found another solution.
While i was accessing a service provided by Linux server i got message that service has been blocked by security settings. I searched and while searching for that problem i found the solution of both.
https://productforums.google.com/forum/#!topic/chrome/DYk8tSV8qM4
go to control panel, programs, click on java, security.
set security to medium.
Java security was set to high which was blocking moodle application.
Delete the cache and the sesson folder data's in the moodle data folder. It will prevent you from redirecting the loop.
It is worked for me.But deleting the whole moodledata folder is not recommended
Just a guess... but if you are using a certificate, have you tried using https in your config.php?
$CFG->wwwroot = 'https://...'

How to access Apache with CentOS Server running on a VM under Windows7

Under Windows7 I am running CentOS-6.2-x86_64-server (on VM) having Apache2 with php5 and mysql installed. The vm is working fine, apache and mysql are started.
Now I want to access a webpage on the vm host being opened by a browser under Windows7.
I get following message:
"Forbidden. You don't have permission to access /index.html on this server."
My windows firewall is activated. Via Windows console I pinged the VM server successfully.
What am I doing wrong or what I have to do?
This is almost certainly an issue of either permissions for the path you're trying to access, or the mode in which you are running Apache. If, in your httpd.conf or ssl.conf files, you have a directive like SSLRequireSSL for this path, it will show a forbidden message when you attempt to access it via http rather than https.
Another reason this can happen is if you have http basic auth set up or some such, and cancel the login process.
Probably the most likely reason though, is simply having too strict permissions set on the folder or files that Apache is attempting to serve. If you go to the path where index.html lives, and make sure that both the directory and the files you want, are set to chmod 644 and make sure that you set things as being executable if there are scripts to be run, then you should be able to serve via apache as expected. You may also then need to chown apache.apache the files in question if they need to be writable by apache as well, but the former should get you going at least.
EDIT: Fixed a typo.