← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #77406]: Configuring apache2 server

 

Question #77406 on apache2 in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/apache2/+question/77406

    Status: Answered => Open

Myroslav is still having a problem:
Hi Dam,

I have been away from my computer on an all too short vacation, hence my 
tardy response.  Thank you for your suggestions.  Below is the output 
for the tests you requested.

Test A.

> bash: /var/www/phpinfo.php: Permission denied
Test B.

> $ ls -lh /usr/share/phpmyadmin
> total 992K
> -rw-r--r--  1 root root  11K 2009-01-19 12:35 browse_foreigners.php
> -rw-r--r--  1 root root 4.3K 2009-01-19 12:35 bs_change_mime_type.php
> -rw-r--r--  1 root root 1.8K 2009-07-05 12:42 bs_disp_as_mime_type.php
> -rw-r--r--  1 root root 2.2K 2009-01-19 12:35 bs_play_media.php
> -rw-r--r--  1 root root  782 2009-01-19 12:35 calendar.php
> -rw-r--r--  1 root root 3.5K 2009-07-05 12:42 changelog.php
> -rw-r--r--  1 root root  460 2009-01-19 12:35 chk_rel.php
> -rw-r--r--  1 root root  181 2009-07-05 12:42 config.footer.inc.php
> -rw-r--r--  1 root root  181 2009-07-05 12:42 config.header.inc.php
> -rw-r--r--  1 root root 1.3K 2009-07-05 12:42 config.inc.php
> -rw-r--r--  1 root root 2.1K 2009-01-19 12:35 config.sample.inc.php
> -rw-r--r--  1 root root 1.5K 2009-01-19 12:35 db_create.php
> -rw-r--r--  1 root root  11K 2009-01-19 12:35 db_datadict.php
> -rw-r--r--  1 root root 2.4K 2009-01-19 12:35 db_export.php
> -rw-r--r--  1 root root  471 2009-01-19 12:35 db_import.php
> -rw-r--r--  1 root root  26K 2009-01-19 12:35 db_operations.php
> -rw-r--r--  1 root root 7.3K 2009-01-19 12:35 db_printview.php
> -rw-r--r--  1 root root  30K 2009-01-19 12:35 db_qbe.php
> -rw-r--r--  1 root root  13K 2009-01-19 12:35 db_search.php
> -rw-r--r--  1 root root  984 2009-01-19 12:35 db_sql.php
> -rw-r--r--  1 root root  23K 2009-01-19 12:35 db_structure.php
> lrwxrwxrwx  1 root root   26 2009-07-19 11:22 docs.css -> 
> ../doc/phpmyadmin/docs.css
> lrwxrwxrwx  1 root root   36 2009-07-19 11:22 Documentation.html -> 
> ../doc/phpmyadmin/Documentation.html
> -rw-r--r--  1 root root 2.2K 2009-01-19 12:35 error.php
> -rw-r--r--  1 root root  24K 2009-01-19 12:35 export.php
> -rw-r--r--  1 root root  19K 2009-01-19 12:35 favicon.ico
> -rw-r--r--  1 root root  14K 2009-01-19 12:35 import.php
> -rw-r--r--  1 root root 6.7K 2009-01-19 12:35 index.php
> drwxr-xr-x  3 root root 4.0K 2009-07-19 11:22 js
> drwxr-xr-x  2 root root 4.0K 2009-07-19 11:22 lang
> drwxr-xr-x 10 root root 4.0K 2009-07-19 11:22 libraries
> -rw-r--r--  1 root root  439 2009-07-05 12:42 license.php
> -rw-r--r--  1 root root  12K 2009-01-19 12:35 main.php
> -rw-r--r--  1 root root  26K 2009-01-19 12:35 navigation.php
> -rw-r--r--  1 root root  27K 2009-01-19 12:35 pdf_pages.php
> -rw-r--r--  1 root root  52K 2009-01-19 12:35 pdf_schema.php
> -rw-r--r--  1 root root  360 2009-01-19 12:35 phpinfo.php
> -rw-r--r--  1 root root 1.1K 2009-01-19 12:35 phpmyadmin.css.php
> drwxr-xr-x  5 root root 4.0K 2009-07-19 11:22 pmd
> -rw-r--r--  1 root root 9.6K 2009-01-19 12:35 pmd_common.php
> -rw-r--r--  1 root root 1.9K 2009-01-19 12:35 pmd_display_field.php
> -rw-r--r--  1 root root  19K 2009-01-19 12:35 pmd_general.php
> -rw-r--r--  1 root root  880 2009-01-19 12:35 pmd_help.php
> -rw-r--r--  1 root root 3.5K 2009-01-19 12:35 pmd_pdf.php
> -rw-r--r--  1 root root 4.0K 2009-01-19 12:35 pmd_relation_new.php
> -rw-r--r--  1 root root 2.0K 2009-01-19 12:35 pmd_relation_upd.php
> -rw-r--r--  1 root root 2.1K 2009-01-19 12:35 pmd_save_pos.php
> -rw-r--r--  1 root root 1.1K 2009-01-19 12:35 print.css
> -rw-r--r--  1 root root 8.1K 2009-01-19 12:35 querywindow.php
> -rw-r--r--  1 root root 7.5K 2009-01-19 12:35 server_binlog.php
> -rw-r--r--  1 root root 2.6K 2009-01-19 12:35 server_collations.php
> -rw-r--r--  1 root root  14K 2009-01-19 12:35 server_databases.php
> -rw-r--r--  1 root root 4.6K 2009-01-19 12:35 server_engines.php
> -rw-r--r--  1 root root 1.7K 2009-01-19 12:35 server_export.php
> -rw-r--r--  1 root root  486 2009-01-19 12:35 server_import.php
> -rw-r--r--  1 root root  93K 2009-01-19 12:35 server_privileges.php
> -rw-r--r--  1 root root 2.9K 2009-01-19 12:35 server_processlist.php
> -rw-r--r--  1 root root  595 2009-01-19 12:35 server_sql.php
> -rw-r--r--  1 root root  21K 2009-01-19 12:35 server_status.php
> -rw-r--r--  1 root root 2.2K 2009-01-19 12:35 server_variables.php
> drwxr-xr-x  4 root root 4.0K 2009-07-19 11:22 setup
> -rw-r--r--  1 root root  317 2009-01-19 12:35 show_config_errors.php
> -rw-r--r--  1 root root  26K 2009-07-05 12:42 sql.php
> -rw-r--r--  1 root root 7.8K 2009-01-19 12:35 tbl_addfield.php
> -rw-r--r--  1 root root 7.1K 2009-01-19 12:35 tbl_alter.php
> -rw-r--r--  1 root root  52K 2009-01-19 12:35 tbl_change.php
> -rw-r--r--  1 root root 9.5K 2009-01-19 12:35 tbl_create.php
> -rw-r--r--  1 root root 2.6K 2009-01-19 12:35 tbl_export.php
> -rw-r--r--  1 root root  635 2009-01-19 12:35 tbl_import.php
> -rw-r--r--  1 root root 7.9K 2009-01-19 12:35 tbl_indexes.php
> -rw-r--r--  1 root root 2.5K 2009-01-19 12:35 tbl_move_copy.php
> -rw-r--r--  1 root root  26K 2009-01-19 12:35 tbl_operations.php
> -rw-r--r--  1 root root  17K 2009-01-19 12:35 tbl_printview.php
> -rw-r--r--  1 root root  21K 2009-01-19 12:35 tbl_relation.php
> -rw-r--r--  1 root root  14K 2009-01-19 12:35 tbl_replace.php
> -rw-r--r--  1 root root 5.1K 2009-01-19 12:35 tbl_row_action.php
> -rw-r--r--  1 root root  16K 2009-01-19 12:35 tbl_select.php
> -rw-r--r--  1 root root  924 2009-01-19 12:35 tbl_sql.php
> -rw-r--r--  1 root root  31K 2009-01-19 12:35 tbl_structure.php
> drwxr-xr-x  4 root root 4.0K 2009-07-19 11:22 themes
> -rw-r--r--  1 root root 1.1K 2009-01-19 12:35 themes.php
> -rw-r--r--  1 root root 1.7K 2009-01-19 12:35 transformation_overview.php
> -rw-r--r--  1 root root 3.7K 2009-01-19 12:35 transformation_wrapper.php
> lrwxrwxrwx  1 root root   34 2009-07-19 11:22 translators.html -> 
> ../doc/phpmyadmin/translators.html
> -rw-r--r--  1 root root 4.5K 2009-01-19 12:35 user_password.php
> -rw-r--r--  1 root root 5.3K 2009-01-19 12:35 view_create.php
> -rw-r--r--  1 root root 1014 2009-01-19 12:35 webapp.php

> $ cat /etc/apache2/conf.d/phpmyadmin.conf
> cat: /etc/apache2/conf.d/phpmyadmin.conf: No such file or directory
Test C.

> |-- apache2.conf
> |-- conf.d
> |   |-- charset
> |   |-- moodle -> /etc/moodle/apache.conf
> |   |-- moodle~
> |   `-- security
> |-- envvars
> |-- httpd.conf
> |-- mods-available
> |   |-- actions.conf
> |   |-- actions.load
> |   |-- alias.conf
> |   |-- alias.load
> |   |-- asis.load
> |   |-- auth_basic.load
> |   |-- auth_digest.load
> |   |-- authn_alias.load
> |   |-- authn_anon.load
> |   |-- authn_dbd.load
> |   |-- authn_dbm.load
> |   |-- authn_default.load
> |   |-- authn_file.load
> |   |-- authnz_ldap.load
> |   |-- authz_dbm.load
> |   |-- authz_default.load
> |   |-- authz_groupfile.load
> |   |-- authz_host.load
> |   |-- authz_owner.load
> |   |-- authz_user.load
> |   |-- autoindex.conf
> |   |-- autoindex.load
> |   |-- cache.load
> |   |-- cern_meta.load
> |   |-- cgi.load
> |   |-- cgid.conf
> |   |-- cgid.load
> |   |-- charset_lite.load
> |   |-- dav.load
> |   |-- dav_fs.conf
> |   |-- dav_fs.load
> |   |-- dav_lock.load
> |   |-- dbd.load
> |   |-- deflate.conf
> |   |-- deflate.load
> |   |-- dir.conf
> |   |-- dir.load
> |   |-- disk_cache.conf
> |   |-- disk_cache.load
> |   |-- dump_io.load
> |   |-- env.load
> |   |-- expires.load
> |   |-- ext_filter.load
> |   |-- file_cache.load
> |   |-- filter.load
> |   |-- headers.load
> |   |-- ident.load
> |   |-- imagemap.load
> |   |-- include.load
> |   |-- info.conf
> |   |-- info.load
> |   |-- ldap.load
> |   |-- log_forensic.load
> |   |-- mem_cache.conf
> |   |-- mem_cache.load
> |   |-- mime.conf
> |   |-- mime.load
> |   |-- mime_magic.conf
> |   |-- mime_magic.load
> |   |-- negotiation.conf
> |   |-- negotiation.load
> |   |-- php5.conf
> |   |-- php5.load
> |   |-- proxy.conf
> |   |-- proxy.load
> |   |-- proxy_ajp.load
> |   |-- proxy_balancer.load
> |   |-- proxy_connect.load
> |   |-- proxy_ftp.load
> |   |-- proxy_http.load
> |   |-- rewrite.load
> |   |-- setenvif.conf
> |   |-- setenvif.load
> |   |-- speling.load
> |   |-- ssl.conf
> |   |-- ssl.load
> |   |-- status.conf
> |   |-- status.load
> |   |-- substitute.load
> |   |-- suexec.load
> |   |-- unique_id.load
> |   |-- userdir.conf
> |   |-- userdir.load
> |   |-- usertrack.load
> |   |-- version.load
> |   `-- vhost_alias.load
> |-- mods-enabled
> |   |-- alias.conf -> ../mods-available/alias.conf
> |   |-- alias.load -> ../mods-available/alias.load
> |   |-- auth_basic.load -> ../mods-available/auth_basic.load
> |   |-- authn_file.load -> ../mods-available/authn_file.load
> |   |-- authz_default.load -> ../mods-available/authz_default.load
> |   |-- authz_groupfile.load -> ../mods-available/authz_groupfile.load
> |   |-- authz_host.load -> ../mods-available/authz_host.load
> |   |-- authz_user.load -> ../mods-available/authz_user.load
> |   |-- autoindex.conf -> ../mods-available/autoindex.conf
> |   |-- autoindex.load -> ../mods-available/autoindex.load
> |   |-- cgi.load -> ../mods-available/cgi.load
> |   |-- deflate.conf -> ../mods-available/deflate.conf
> |   |-- deflate.load -> ../mods-available/deflate.load
> |   |-- dir.conf -> ../mods-available/dir.conf
> |   |-- dir.load -> ../mods-available/dir.load
> |   |-- env.load -> ../mods-available/env.load
> |   |-- mime.conf -> ../mods-available/mime.conf
> |   |-- mime.load -> ../mods-available/mime.load
> |   |-- negotiation.conf -> ../mods-available/negotiation.conf
> |   |-- negotiation.load -> ../mods-available/negotiation.load
> |   |-- php5.conf -> ../mods-available/php5.conf
> |   |-- php5.load -> ../mods-available/php5.load
> |   |-- setenvif.conf -> ../mods-available/setenvif.conf
> |   |-- setenvif.load -> ../mods-available/setenvif.load
> |   |-- status.conf -> ../mods-available/status.conf
> |   `-- status.load -> ../mods-available/status.load
> |-- ports.conf
> |-- sites-available
> |   |-- default
> |   |-- default-ssl
> |   |-- default.save
> |   `-- default~
> `-- sites-enabled
>     `-- 000-default -> ../sites-available/default
>
> 5 directories, 125 files
I don't know what all this means.  However, when I type "sudo 
/etc/init.d/apache2 restart", I am able to access Moodle and do what I 
have to do.  I can live with this since I do not use apache for any 
other purposes.  What do you think about checking off this question as 
"solved"?  Or, are you inclined to keep trying?

Thank for your efforts.

M


Damiano Venturin wrote:
> Your question #77406 on apache2 in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apache2/+question/77406
>
>     Status: Open => Answered
>
> Damiano Venturin proposed the following answer:
> Hi Myroslav,  I'm late, sorry. Heavy week
>
> tip: when you need to attach a document, paste it on http://pastebin.org
>
> * I can't see the access.log after a fresh boot
>
> the most interesting row in your log file is: 'client denied by  server
> configuration: /usr/share/moodle/' but it doesn't help that much. Anyway
> everything points to a misconfiguration in apache
>
> * test A)
> we create a simple php file a check it after a fresh reboot
> sudo echo "<?php phpinfo(); ?>" > /var/www/phpinfo.php
> fresh reboot and then from the browser http://localhost/phpinfo.php
> if it doesn't work we have a firewall somewhere or some  issue into the apache configuration
>
> * test B)
> just to understand why phpmyadmin doesn't work (this is really strange)
> pls paste the output on pastebin
>
> ls -lh /usr/share/phpmyadmin
>
> cat /etc/apache2/conf.d/phpmyadmin.conf
>
> * test C)
> just to have a look to apache's conf files: (on pastebin)
> sudo apt-get install tree
> cd /etc/apache2/
> tree -L 2
>
> ciao!
>
>

You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.