php failed to run
Hello all, After installing both httpd and php and setting a UserDir to enable public_html, I encountered an issue with php which failed to run despite its presence. Here is the conf userdir.conf # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # Directory /home/*/public_html AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Require method GET POST OPTIONS /Directory php.conf # # Cause the PHP interpreter to handle files with a .php extension. # FilesMatch \.php$ SetHandler application/x-httpd-php /FilesMatch # # Add index.php to the list of files that will be served as directory # indexes. # DirectoryIndex index.php # # Uncomment the following lines to allow PHP to pretty-print .phps # files as PHP source code: # #FilesMatch \.phps$ #SetHandler application/x-httpd-php-source #/FilesMatch # # Apache specific PHP configuration options # those can be override in each configured vhost # php_value session.save_handler files php_value session.save_path/var/lib/php/session -- Luya Tshimbalanga Graphic Web Designer E: l...@fedoraproject.org W: http://www.thefinalzone.net -- test mailing list test@lists.fedoraproject.org To unsubscribe: https://admin.fedoraproject.org/mailman/listinfo/test
Re: php failed to run
On Tue, 2012-12-04 at 11:38 -0800, Luya Tshimbalanga wrote: Hello all, After installing both httpd and php and setting a UserDir to enable public_html, I encountered an issue with php which failed to run despite its presence. Here is the conf What error message do you get? Did you check if it's SELinux? (Easy way to check - 'setenforce Permissive', try again, see if it works. If it does, the correct conclusion is not 'oh well, I'll just run in permissive mode forever' but 'ah, I need to fix up the SELinux contexts'.) -- Adam Williamson Fedora QA Community Monkey IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora http://www.happyassassin.net -- test mailing list test@lists.fedoraproject.org To unsubscribe: https://admin.fedoraproject.org/mailman/listinfo/test
Re: php failed to run
On Tue 04 Dec 2012 11:45:39 AM PST, Adam Williamson wrote: What error message do you get? Did you check if it's SELinux? (Easy way to check - 'setenforce Permissive', try again, see if it works. If it does, the correct conclusion is not 'oh well, I'll just run in permissive mode forever' but 'ah, I need to fix up the SELinux contexts'.) One of errors was apparently related to SELinux which I sent a report : https://bugzilla.redhat.com/show_bug.cgi?id=883200 After creating a policy, testing a simple phpinfo() from a local server still display blank. Setting selinux to permissive has no effect on php behaviour, I always leave Enforcing on by default. All setting are done from /etc/httpd/conf.d/ with only edited userdir. -- Luya Tshimbalanga Graphic Web Designer E: l...@fedoraproject.org W: http://www.thefinalzone.net -- test mailing list test@lists.fedoraproject.org To unsubscribe: https://admin.fedoraproject.org/mailman/listinfo/test
Re: php failed to run
On Tue, 2012-12-04 at 12:49 -0800, Luya Tshimbalanga wrote: On Tue 04 Dec 2012 11:45:39 AM PST, Adam Williamson wrote: What error message do you get? Did you check if it's SELinux? (Easy way to check - 'setenforce Permissive', try again, see if it works. If it does, the correct conclusion is not 'oh well, I'll just run in permissive mode forever' but 'ah, I need to fix up the SELinux contexts'.) One of errors was apparently related to SELinux which I sent a report : https://bugzilla.redhat.com/show_bug.cgi?id=883200 After creating a policy, testing a simple phpinfo() from a local server still display blank. Setting selinux to permissive has no effect on php behaviour, I always leave Enforcing on by default. All setting are done from /etc/httpd/conf.d/ with only edited userdir. Is there something in the httpd logs which might indicate what the problem is now? That's where I'd look next. -- Adam Williamson Fedora QA Community Monkey IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora http://www.happyassassin.net -- test mailing list test@lists.fedoraproject.org To unsubscribe: https://admin.fedoraproject.org/mailman/listinfo/test
Re: php failed to run
On Tue, 2012-12-04 at 19:20 -0800, Luya Tshimbalanga wrote: [Mon Dec 03 17:16:52.319181 2012] [autoindex:error] [pid 5233] [client 127.0.0.1:38664] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive I'm guessing that's the problem? -- Adam Williamson Fedora QA Community Monkey IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora http://www.happyassassin.net -- test mailing list test@lists.fedoraproject.org To unsubscribe: https://admin.fedoraproject.org/mailman/listinfo/test
Re: php failed to run
On Tue 04 Dec 2012 09:17:03 PM PST, Adam Williamson wrote: On Tue, 2012-12-04 at 19:20 -0800, Luya Tshimbalanga wrote: [Mon Dec 03 17:16:52.319181 2012] [autoindex:error] [pid 5233] [client 127.0.0.1:38664] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive I'm guessing that's the problem? IIRunning index.php inside /var/www./html works fine, still does not resolve ~/public_html I am investigating. -- Luya Tshimbalanga Graphic Web Designer E: l...@fedoraproject.org W: http://www.thefinalzone.net -- test mailing list test@lists.fedoraproject.org To unsubscribe: https://admin.fedoraproject.org/mailman/listinfo/test