1 |
On Sunday 27 Nov 2011 20:36:06 Samuraiii wrote: |
2 |
> Hello, |
3 |
> |
4 |
> Today Im form morning trying to get working apache 2.2.21-r1 and php |
5 |
> 5.3.8 with userdirs mod. |
6 |
> The problem is that apache is capable of opening ~/public_html but when |
7 |
> it gets to open folder with index.php |
8 |
> it fails with this error: |
9 |
> (in browser) |
10 |
> The requested URL /php5cgi/php/~uname/path/to/index.php was not found on |
11 |
> this server. |
12 |
> (in syslog) |
13 |
> [date] [error] [client ::1] File does not exist: |
14 |
> /var/www/localhost/htdocs/php5cgi |
15 |
> |
16 |
> |
17 |
> php uses: |
18 |
> apache2 berkdb bzip2 cli crypt ctype curl curlwrappers exif fileinfo |
19 |
> filter flatfile ftp gd gdbm hash iconv ipv6 json ldap mhash mysql mysqli |
20 |
> nls phar posix readline session simplexml spell ssl sysvipc tidy |
21 |
> tokenizer truetype unicode xml zlib |
22 |
> |
23 |
> apache uses: |
24 |
> apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic |
25 |
> apache2_modules_authn_alias apache2_modules_authn_anon |
26 |
> apache2_modules_authn_dbm apache2_modules_authn_default |
27 |
> apache2_modules_authn_file apache2_modules_authz_dbm |
28 |
> apache2_modules_authz_default apache2_modules_authz_groupfile |
29 |
> apache2_modules_authz_host apache2_modules_authz_owner |
30 |
> apache2_modules_authz_user apache2_modules_autoindex |
31 |
> apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs |
32 |
> apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir |
33 |
> apache2_modules_disk_cache apache2_modules_env apache2_modules_expires |
34 |
> apache2_modules_ext_filter apache2_modules_file_cache |
35 |
> apache2_modules_filter apache2_modules_headers apache2_modules_include |
36 |
> apache2_modules_info apache2_modules_log_config apache2_modules_logio |
37 |
> apache2_modules_mem_cache apache2_modules_mime |
38 |
> apache2_modules_mime_magic apache2_modules_negotiation |
39 |
> apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling |
40 |
> apache2_modules_status apache2_modules_unique_id apache2_modules_userdir |
41 |
> apache2_modules_usertrack apache2_modules_vhost_alias ldap ssl |
42 |
> |
43 |
> I'm absolutly desprate of this |
44 |
> |
45 |
> I do not understand why its looking for php files under /php5cgi/php/ |
46 |
> whe I dont even have cgi enabled in both php and apache |
47 |
> |
48 |
> Any suggestions would be appreciated |
49 |
> S |
50 |
|
51 |
Sorry for giving an incomplete answer but I am away from a server to look into |
52 |
this at any depth. |
53 |
|
54 |
As a quick suggestion there should be a directive like: |
55 |
|
56 |
<IfDefine PHP...> |
57 |
|
58 |
in your http.conf or /etc/apache2/vhosts.d/00_default_vhost.conf if you are |
59 |
using virtual hosts, which you would probably need to edit to allow it to read |
60 |
the necessary ScriptAlias paths and handlers. I'm sure that the apache |
61 |
documentation explains all this on their website? |
62 |
|
63 |
I hope this gets you started until someone else gives a more complete answer. |
64 |
-- |
65 |
Regards, |
66 |
Mick |