I have IIS 7 running on Windows 7. Everything works fine with the default website. Now I am trying to create a new site with physical path C:\users\xxx\mysite.
I am following this tutorial.
The site is created but when I run it, I get the following error:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
How do I fix the problem?
Ok I got this working!
There was nothing wrong in the configuration.
I was windows file permissions issue.
To fix this I did the following:
1) In IIS, click edit permissions (on the right side).
2) Go to Security tab.
3) Click Edit -> Add -> Advanced -> Find Now.
4) Select both IIS_IUSRS and IUSR.
5) Click OK>OK>OK... and exit
That's it!
Related
I am using wamp and am creating a uLogin PHP Authentication Library(http://ulogin.sourceforge.net/). I have access to phpmyadmin, the local host seems to work, phpinfo() runs, everything on there seems to be working.
The problem is the c:/wamp/www/ulogin is giving me a forbidden 403 in the console. The error log for apache(2.4.9) is giving me AH01797: client denied by server configuration: My windows event log is giving me: an attempt was made to query the existence of a blank password for an account.
Is this a prblem with the wamp set up in apache or in the mysql setup; or both? I have run other php programs via www; this is the first time I ran into this problem.
I have researched this extensively and found a lot of the same answer, but it was for older versions of the program. Also, while developing on the localhost I can allow to all, I would prefer just to set it up as if the website was live.
Steps to check what's wrong:
1) Check your apache config: Check Directory-entries for your target directory and above. Look out for Order and Allow from (or Require for 2.4+)
2) Check whether there are any .htaccess files in your target directory or above. Again, look out for Allow / Deny and Require.
3) Check if the 403 is emitted by apache or your application: Add some debug message at the very top of your application logic (commonly some sort of index.php).
I'm trying to install Wordpress on IIS, but this annoying problem has been getting on my nerves.
The WP is installed on a Windows Server 2012 with IIS installed (other ASP.NET sites work on it).
There is no firewall enabled on Windows Server.
The login screen disappears if I set the user in IIS, but still giving problem ERR_CONNECTION_REFUSED to anyone who tries to access the blog externally to the server.
I have also tried:
Give folder access permission the user anonimous, but had no effect.
Activate SSL, which had no effect either.
Disable SSL on wordpress: define(‘FORCE_SSL_ADMIN’, false); define(‘FORCE_SSL_LOGIN’, false); on WP_Config.php
Disable php_openssl.dll on PHP Extensions
Follows a print (left the screen of an external user and right navigation screen from the server):
How to solve it?
I found the solution here: http://blog.pluralsight.com/installing-wordpress-on-iis7
I removed the mysql and installed the current version.
I changed the permissions to full control of phpsessions folder for users: IUSR; IIS_IUSRS; Network Service
I was having permission issues with IIS 8.0 on my Windows Server 2012 box, so I decided to remove & re-add the role in an attempt to fix it.
This seems to have fixed my permission problems, but now my PHP wont work!
I get this error when trying to access a .php file
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration.
If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
Obviously what I need to do here is add a handler to one of the files in my php install folder (which I installed using the web app manager thing) but I don't know where I add a handler from? I know where to add MIME maps from but obviously that isn't going to solve this.
UPDATE: So I followed one of the answers which linked me to the PHP site, followed what it said and that seems to have fixed the PHP no running problem, but now thats opened a whole new can of worms. I'm getting the same Access is denied. error as before! even when i change file extensions to .html, it appears my site isnt directing to the default document, as when i go to www.mysite.co.uk, i get the error, but if i go to www.mysite.co.uk/index.php, it works fine! i have a index.php entry in my default documents, and a index.html, and neither seem to be working after the PHP install
permission on the root directory are full control to, Administrator, My user account, 'NETWORK SERVICE' and 'SYSTEM', just to note, i couldnt get the site to work at all without setting the 'connect as' option to my user account and password, so thats what its using to access the files.
I think this may help you;
http://php.net/manual/en/install.windows.iis7.php
It says for iis7 and above, let me know if doesn't work and I'll dig deeper.
The process is;
1 - Configure CGI- and FastCGI settings in your php.ini such as
Fastcgi.impersonate = 1
fastcgi.logging = 0
cgi.fix_pathinfo = 1
cgi.force_redirect = 0
2 - Then in Windows type inetmgr into run under the start menu.
3 - Select the server node in the window that opens which is in the connections tree.
4 - In the central pane, known as the features view, openthe Handler Mappings feature.
5 - In the actions pane click **Add Module Mapping..."
6 - Use these details to fill in the blanks;
Request path: *.php
Module: FastCgiModule
Executable: C:\[path to php install]\php-cgi.exe
Name: PHP_via_FastCGI
7 - Click request restrictions and then configure the mapping to invoke handler only if request is mapped to a file or folder.
8 - Click okay on all dialogues to save the config.
The link at the top provides further information on configuration examples and how to do this from the command line. You should restart IIS once you're done.
I made the switch from Aptana 2 and am getting over the differences in the update. One change however, that I cannot get past right now is opening up one of my imported projects, which is Wordpress.
In my wordpress, I have it in its own directory, and moved the index.php and web.config file to the root of the project. I was able to edit while browsing the site from the root directory.
Now, in Aptana 3, when I jump to my localhost:8888 directory, which is ran by Microsoft WebMatrix, I get a Server error code 401.3. But when I close the project in Aptana and hit refresh in my browser, the page displays properly.
Further info, any sub-directories of the site run fine when I have the project open. Only root of the site is facing a problem. Never faced this while using Aptana 2.
Win7 x64, Aptana 3, IIS 7, WebMatrix
Try to unselect "Auto-detect modifications to projects made outside IDE" in Preferences/Aptana Studio and see if that helps.
FYI, "HTTP Error 401.3 - Unauthorized: Access is denied due to an ACL set on the requested resource."
We're building a new server and using IIS 7. PHP pages a served just fine and dandy, but the second we use any code to access a MySQL database, the page hangs for a good minute and serves the following error:
Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Our database.php config file is configured correctly, so I can't figure out what might be doing this. MySQL seems to be properly installed as well.
Any ideas? Googling hasn't lead me anywhere useful.
Looks like your MySQL-Extension of PHP is not loaded correctly. Is it included in the php.ini? If so, please just take a look in the php_error.log. There should be an entry there. Please post it here
Rdp to your IIS web server
Right click on the folder where your site contents in and click on properties
go to security tab > advance > click on Edit > click on add > and enter domain users and click ok.
Now click on Edit and give full control or modify or read
Now select "Replace all existing inheritable permissions on all descendants with inheritable permission from this object
Click on apply, let it finish the process and click on Ok and ok.
This will fix the problem.
Change the memory_limit variable in you php.ini file. I had a similar problem where I was doing a very large select query.
On a development server the query would run fine, but on the live server it would throw a 500 error.
The difference turned out to be that my live server's memory_limit was set at "64M" whereas the dev server was "512M". I bumped the live server up to 512M and that resolved the problem.