Re: [us...@httpd] Re: possible to add multiple locations for the document root
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 e-letter wrote: I deliberately changed permission just to get the service working. Of course, security will need to be improved in future. :) Below is extract from the file '/etc/httpd/logs/error_log': [Mon Oct 25 12:35:59 2010] [notice] Apache/2.2.6 (Mandriva Linux/PREFORK-8.2mdv2008.0) PHP/5.2.4 with Suhosin-Patch mod_put/2.0.8 configured -- resuming normal operations [Mon Oct 25 13:30:59 2010] [error] [client 127.0.0.1] client denied by server configuration: /usr/local/phppgadmin/phppgadmin/login.php This doesn't explain anything to me. Advice please? Did you use the Mandriva supplied phppgadmin package or download it as a tarball from the phppgadmin project page? mandriva's default docroot, used for phppgadmin is /var/www/phppgadmin their supplied httpd.conf for it: Alias /phppgadmin /var/www/phppgadmin Directory /var/www/phppgadmin Allow from All /Directory # Uncomment the following lines to force a redirect to a working # SSL aware apache server. This serves as an example. # #IfModule mod_ssl.c #LocationMatch /phppgadmin #Options FollowSymLinks #RewriteEngine on #RewriteCond %{SERVER_PORT} !^443$ #RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] #/LocationMatch #/IfModule which is default located in: /etc/httpd/conf/webapps.d/ as phppgadmin.conf the above locations help with Mandriva's configuration of the system. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkzGhNsACgkQ3Z/m3C3esu1iUQCgn+tyrIEfKjcrYwVTXpmkIUA+ WOcAoIW2YotA1aXG6wR5Q9eJiN+Ge8ao =vb8u -END PGP SIGNATURE- - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Re: possible to add multiple locations for the document root
On Mon, Oct 25, 2010 at 3:28 PM, e-letter inp...@gmail.com wrote: Below is extract from the file '/etc/httpd/logs/error_log': [Mon Oct 25 12:35:59 2010] [notice] Apache/2.2.6 (Mandriva Linux/PREFORK-8.2mdv2008.0) PHP/5.2.4 with Suhosin-Patch mod_put/2.0.8 configured -- resuming normal operations [Mon Oct 25 13:30:59 2010] [error] [client 127.0.0.1] client denied by server configuration: /usr/local/phppgadmin/phppgadmin/login.php This doesn't explain anything to me. Advice please? It says that the client, (ie. you, your browser) was denied access to the resource by something in your server configuration. Now, I suspect that it has something to do whith how you configured php. Probably apache looks at the file, notices it is php, knows that it has a handler for it, and thus looks if you have permission to execute scripts from that directory. Probably you don't. So rewrite your directory block like this: Directory /usr/local/phppgadmin/phppgadmin Options +ExecCGI Order allow,deny Allow from all /Directory Krist -- krist.vanbes...@gmail.com kr...@vanbesien.org Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Re: possible to add multiple locations for the document root
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 e-letter wrote: I deliberately changed permission just to get the service working. Of course, security will need to be improved in future. :) Below is extract from the file '/etc/httpd/logs/error_log': [Mon Oct 25 12:35:59 2010] [notice] Apache/2.2.6 (Mandriva Linux/PREFORK-8.2mdv2008.0) PHP/5.2.4 with Suhosin-Patch mod_put/2.0.8 configured -- resuming normal operations [Mon Oct 25 13:30:59 2010] [error] [client 127.0.0.1] client denied by server configuration: /usr/local/phppgadmin/phppgadmin/login.php This doesn't explain anything to me. Advice please? Did you use the Mandriva supplied phppgadmin package or download it as a tarball from the phppgadmin project page? I retrieved and extracted a tar ball from the phppgadmin web site. Now I have retrieved from the mandriva repository using terminal command 'urpmi'. mandriva's default docroot, used for phppgadmin is /var/www/phppgadmin their supplied httpd.conf for it: Alias /phppgadmin /var/www/phppgadmin Directory /var/www/phppgadmin Allow from All /Directory # Uncomment the following lines to force a redirect to a working # SSL aware apache server. This serves as an example. # #IfModule mod_ssl.c #LocationMatch /phppgadmin #Options FollowSymLinks #RewriteEngine on #RewriteCond %{SERVER_PORT} !^443$ #RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] #/LocationMatch #/IfModule which is default located in: /etc/httpd/conf/webapps.d/ as phppgadmin.conf This is seen successfully. The command terminal showed how httpd was stopped and restarted. I still cannot see a way of starting the phppgadmin program; the documentation is poor. I opened using opera the following file: file://localhost/var/www/phppgadmin/login.php The browser shows: printHeader($lang['strlogin']); $misc-printBody(); $misc-printTrail('root'); $server_info = $misc-getServerInfo($_REQUEST['server']); $misc-printTitle(sprintf($lang['strlogintitle'], $server_info['desc'])); if (isset($msg)) $misc-printMsg($msg); ? $val) { if (substr($key,0,5) == 'login') continue; echo \n; } ? 1) : ? / printFooter(); ? I am expecting to see some sort of dialogue window appear to allow connection to the database, similar to what I achieve when connecting via openoffice base. Is apache now successfully configured for me to ask how to use phppgadmin in the phppgadmin mailing list? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Re: possible to add multiple locations for the document root
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 e-letter wrote: ~snip~ file://localhost/var/www/phppgadmin/login.php try http://localhost/phppgadmin if it is NOT http then it will never work right. no login.php or anything, you need to just point the browser to the folder. The browser shows: printHeader($lang['strlogin']); $misc-printBody(); $misc-printTrail('root'); $server_info = $misc-getServerInfo($_REQUEST['server']); $misc-printTitle(sprintf($lang['strlogintitle'], $server_info['desc'])); if (isset($msg)) $misc-printMsg($msg); ? $val) { if (substr($key,0,5) == 'login') continue; echo \n; } ? 1) : ? / printFooter(); ? I am expecting to see some sort of dialogue window appear to allow connection to the database, similar to what I achieve when connecting via openoffice base. Is apache now successfully configured for me to ask how to use phppgadmin in the phppgadmin mailing list? -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkzHNaoACgkQ3Z/m3C3esu028wCg1SmFg28frhIl8C5tdOUTbb+K q0oAnR4aMuTdYcO1QzcXdNUfh98e0bGK =eC/T -END PGP SIGNATURE- - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Re: possible to add multiple locations for the document root
On 21/10/2010, e-letter inp...@gmail.com wrote: I tried to use the command 'Alias', to try and use the program phppgadmin which was extracted to /path/to/phppgadmin: DocumentRoot /var/www/html Alias /localhost/target /usr/local/phppgadmin/phppgadmin Directory /localhost/target Order allow,deny Allow from all /Directory After stopping and restarting the web server, when I navigate the web brower to 'http://localhost/target' I receive an error 404 page. In the phppgadmin directory there are various php pages, e.g. login.php: $ ls /usr/local/phppgadmin/phppgadmin/ aciur.jsgroups.php redirect.php aggregates.php help/ reports.php all_db.php help.phprobots.txt autocomplete.phpHISTORY roles.php browser.php history.php rules.php BUGSimages/ schemas.php casts.php indexes.js sequences.php classes/indexes.php servers.php colproperties.php index.php sql/ conf/ info.phpsqledit.php constraints.php INSTALL sql.php conversions.php intro.php tables.js CREDITS lang/ tablespaces.php database.phplanguages.php tables.php dataexport.php libraries/ tblproperties.php dataimport.php LICENSE themes/ dbexport.phplinks.jsTODO DEVELOPERS login.php TRANSLATORS display.php logout.php triggers.php domains.php multiactionform.js types.php FAQ opclasses.php users.php fulltext.phpoperators.php viewproperties.php functions.jsplugin_slony.phpviews.php functions.php privileges.php xloadtree/ What is my mistake please? I changed the alias to 'target' and tried to open the address 'localhost/target/login.php' As root I changed the permissions: ls -aod /usr/local/phppgadmin/ drwxr-xr-x 3 root 4096 2010-10-20 10:12 /usr/local/phppgadmin// ls -aod /usr/local/phppgadmin/phppgadmin/ drwxrwxrwx 11 root 4096 2010-10-20 10:12 /usr/local/phppgadmin/phppgadmin// I received an error that permission is denied: Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, please contact the webmaster. Error 403 localhost mod-xslt/1.3.8 Apache/2.2.6 (Mandriva Linux/PREFORK-8.2mdv2008.0) What do I need to do now, please? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Re: possible to add multiple locations for the document root
On Mon, October 25, 2010 14:39, e-letter wrote: On 21/10/2010, e-letter inp...@gmail.com wrote: I tried to use the command 'Alias', to try and use the program phppgadmin which was extracted to /path/to/phppgadmin: There are some errors: Alias /localhost/target /usr/local/phppgadmin/phppgadmin Alias /target /usr/local/phppgadmin/phppgadmin Directory /localhost/target Directory /usr/local/phppgadmin/phppgadmin Order allow,deny Allow from all /Directory I received an error that permission is denied: What do I need to do now, please? Read the error log, it should give more details why this request was denied. Are you certain that you want everyone to have access to the pgadmin website? Joost - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Re: possible to add multiple locations for the document root
On Oct 25, 2010, at 8:39 AM, e-letter wrote: I received an error that permission is denied: Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. This error message will be accompanied by an additional error message in the error_log, which will tell you either that it's because of file permissions (indicated by a (13) in the message) or configuration (indicated by ... by server configuration in the message) -- Rich Bowen rbo...@rcbowen.com http://drbacchus.com/
Re: [us...@httpd] Re: possible to add multiple locations for the document root
On 21/10/2010, e-letter inp...@gmail.com wrote: Alias /localhost/target /usr/local/phppgadmin/phppgadmin On 25.10.10 14:57, Joost de Heer wrote: Alias /target /usr/local/phppgadmin/phppgadmin Ehm... Alias /target/ /usr/local/phppgadmin/phppgadmin/ trailing slashes DO have a meaning. without them, the /target-test would get mapped to /usr/local/phppgadmin/phppgadmin-test no matter if the directory exists. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. He who laughs last thinks slowest. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Re: possible to add multiple locations for the document root
I deliberately changed permission just to get the service working. Of course, security will need to be improved in future. :) Below is extract from the file '/etc/httpd/logs/error_log': [Mon Oct 25 12:35:59 2010] [notice] Apache/2.2.6 (Mandriva Linux/PREFORK-8.2mdv2008.0) PHP/5.2.4 with Suhosin-Patch mod_put/2.0.8 configured -- resuming normal operations [Mon Oct 25 13:30:59 2010] [error] [client 127.0.0.1] client denied by server configuration: /usr/local/phppgadmin/phppgadmin/login.php This doesn't explain anything to me. Advice please? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Re: possible to add multiple locations for the document root
On Oct 25, 2010, at 9:28 AM, e-letter wrote: I deliberately changed permission just to get the service working. Of course, security will need to be improved in future. :) Below is extract from the file '/etc/httpd/logs/error_log': [Mon Oct 25 12:35:59 2010] [notice] Apache/2.2.6 (Mandriva Linux/PREFORK-8.2mdv2008.0) PHP/5.2.4 with Suhosin-Patch mod_put/2.0.8 configured -- resuming normal operations [Mon Oct 25 13:30:59 2010] [error] [client 127.0.0.1] client denied by server configuration: /usr/local/phppgadmin/phppgadmin/login.php This doesn't explain anything to me. Advice please? Somewhere in your configuration you'll need: Directory /usr/local/phppgadmin/phppgadmin Order allow,deny Allow from all /Directory Based on what you sent earlier, I don't know if you have anything like this, but without it, you'll get the error message above. -- Rich Bowen rbo...@rcbowen.com http://drbacchus.com/
[us...@httpd] Re: possible to add multiple locations for the document root
I had changed the alias to add a trailing stroke (/). I also tried both Directory /usr/local/phppgadmin/phppgadmin and Directory /target/ After each change I stopped and re-started httpd using drakxservices. The permissions error continues. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Re: possible to add multiple locations for the document root
On Oct 25, 2010, at 11:02 AM, e-letter wrote: I had changed the alias to add a trailing stroke (/). I also tried both Directory /usr/local/phppgadmin/phppgadmin and Directory /target/ After each change I stopped and re-started httpd using drakxservices. Directory refers to an on-disk directory. In this case. /target/ is NOT, I understand, a directory in your filesystem, so the former of these is the correct one. However, did you happen to notice if the actual error message in the log changed to a file permissions ... rather than a ... by server configuration one? You need to watch the error log every time you make a change to your configuration to see if the error message changes. -- Rich Bowen rbo...@rcbowen.com http://drbacchus.com/
[us...@httpd] Re: possible to add multiple locations for the document root
I tried to use the command 'Alias', to try and use the program phppgadmin which was extracted to /path/to/phppgadmin: DocumentRoot /var/www/html Alias /localhost/target /usr/local/phppgadmin/phppgadmin Directory /localhost/target Order allow,deny Allow from all /Directory After stopping and restarting the web server, when I navigate the web brower to 'http://localhost/target' I receive an error 404 page. In the phppgadmin directory there are various php pages, e.g. login.php: $ ls /usr/local/phppgadmin/phppgadmin/ aciur.jsgroups.php redirect.php aggregates.php help/ reports.php all_db.php help.phprobots.txt autocomplete.phpHISTORY roles.php browser.php history.php rules.php BUGSimages/ schemas.php casts.php indexes.js sequences.php classes/indexes.php servers.php colproperties.php index.php sql/ conf/ info.phpsqledit.php constraints.php INSTALL sql.php conversions.php intro.php tables.js CREDITS lang/ tablespaces.php database.phplanguages.php tables.php dataexport.php libraries/ tblproperties.php dataimport.php LICENSE themes/ dbexport.phplinks.jsTODO DEVELOPERS login.php TRANSLATORS display.php logout.php triggers.php domains.php multiactionform.js types.php FAQ opclasses.php users.php fulltext.phpoperators.php viewproperties.php functions.jsplugin_slony.phpviews.php functions.php privileges.php xloadtree/ What is my mistake please? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Re: possible to add multiple locations for the document root
On Thu, Oct 21, 2010 at 12:34 PM, e-letter inp...@gmail.com wrote: I tried to use the command 'Alias', to try and use the program phppgadmin which was extracted to /path/to/phppgadmin: DocumentRoot /var/www/html Alias /localhost/target /usr/local/phppgadmin/phppgadmin Alias refers to the path in the URL. For the URL 'http://localhost/target', the path is '/target'. http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias Directory /localhost/target Directory refers to physical directories on disk, not to the URL space. http://httpd.apache.org/docs/2.2/mod/core.html#directory Order allow,deny Allow from all /Directory After stopping and restarting the web server, when I navigate the web brower to 'http://localhost/target' I receive an error 404 page. In the phppgadmin directory there are various php pages, e.g. login.php: Fix the above errors first. Cheers Tom - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org