Re: [gentoo-user] Apache Php cgi and user_dirs
On Sunday 27 Nov 2011 20:36:06 Samuraiii wrote: > Hello, > > Today Im form morning trying to get working apache 2.2.21-r1 and php > 5.3.8 with userdirs mod. > The problem is that apache is capable of opening ~/public_html but when > it gets to open folder with index.php > it fails with this error: > (in browser) > The requested URL /php5cgi/php/~uname/path/to/index.php was not found on > this server. > (in syslog) > [date] [error] [client ::1] File does not exist: > /var/www/localhost/htdocs/php5cgi > > > php uses: > apache2 berkdb bzip2 cli crypt ctype curl curlwrappers exif fileinfo > filter flatfile ftp gd gdbm hash iconv ipv6 json ldap mhash mysql mysqli > nls phar posix readline session simplexml spell ssl sysvipc tidy > tokenizer truetype unicode xml zlib > > apache uses: > apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic > apache2_modules_authn_alias apache2_modules_authn_anon > apache2_modules_authn_dbm apache2_modules_authn_default > apache2_modules_authn_file apache2_modules_authz_dbm > apache2_modules_authz_default apache2_modules_authz_groupfile > apache2_modules_authz_host apache2_modules_authz_owner > apache2_modules_authz_user apache2_modules_autoindex > apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs > apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir > apache2_modules_disk_cache apache2_modules_env apache2_modules_expires > apache2_modules_ext_filter apache2_modules_file_cache > apache2_modules_filter apache2_modules_headers apache2_modules_include > apache2_modules_info apache2_modules_log_config apache2_modules_logio > apache2_modules_mem_cache apache2_modules_mime > apache2_modules_mime_magic apache2_modules_negotiation > apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling > apache2_modules_status apache2_modules_unique_id apache2_modules_userdir > apache2_modules_usertrack apache2_modules_vhost_alias ldap ssl > > I'm absolutly desprate of this > > I do not understand why its looking for php files under /php5cgi/php/ > whe I dont even have cgi enabled in both php and apache > > Any suggestions would be appreciated > S Sorry for giving an incomplete answer but I am away from a server to look into this at any depth. As a quick suggestion there should be a directive like: in your http.conf or /etc/apache2/vhosts.d/00_default_vhost.conf if you are using virtual hosts, which you would probably need to edit to allow it to read the necessary ScriptAlias paths and handlers. I'm sure that the apache documentation explains all this on their website? I hope this gets you started until someone else gives a more complete answer. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] Apache Php cgi and user_dirs
Hello, Today Im form morning trying to get working apache 2.2.21-r1 and php 5.3.8 with userdirs mod. The problem is that apache is capable of opening ~/public_html but when it gets to open folder with index.php it fails with this error: (in browser) The requested URL /php5cgi/php/~uname/path/to/index.php was not found on this server. (in syslog) [date] [error] [client ::1] File does not exist: /var/www/localhost/htdocs/php5cgi php uses: apache2 berkdb bzip2 cli crypt ctype curl curlwrappers exif fileinfo filter flatfile ftp gd gdbm hash iconv ipv6 json ldap mhash mysql mysqli nls phar posix readline session simplexml spell ssl sysvipc tidy tokenizer truetype unicode xml zlib apache uses: apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias ldap ssl I'm absolutly desprate of this I do not understand why its looking for php files under /php5cgi/php/ whe I dont even have cgi enabled in both php and apache Any suggestions would be appreciated S
Re: [gentoo-user] Apache+PHP
Le 14/01/2010 15:03, German Lopez Cortina a écrit : > Mi apache no me interpreta los archivos .php muestra el contenido como > texto en el navegador First it is an english only list, so if you would like to speak other languages, take a look at gentoo-user...@lists.gentoo.org for a spanish aware list. After saying that, check that you enabled PHP interpretation, either in /etc/conf.d/apache2, add -D PHP5 in APACHE2_OPTS var, or check the file /etc/apache2/modules.d/70_mod_php5.conf is present, if not, then re-emerge php with useflag apache2. Best regards. -- Xavier Parizet YaGB : http://gentooist.com GPG :C7DC B10E FC21 63BE B453 D239 F6E6 DF65 1569 91BF signature.asc Description: OpenPGP digital signature
[gentoo-user] Apache+PHP
Mi apache no me interpreta los archivos .php muestra el contenido como texto en el navegador
[gentoo-user] apache +php +time limits
Hello I set max_execution_time to 30 in php.ini file (i also checked in phpinfo). max_input_time is set to 45. But when I use in script something like that: while ( 1 == 1 ) or for ( $i=0; $i < 1; $i++) { echo "\n".$i; } it doesn't work - execution of script lasts for unlimited time. of course I executed it via apache (I read that this limit doesn't work while executing in console) is it bug or am i doing something wrong? regards nichu
Re: [gentoo-user] apache/php: chroot?
Hans-Werner Hilse wrote: This won't work. Apache doesn't have inbuilt chroot facilities, AFAIK. Like most of the other standard internet services. You would have to setup a chroot env (all dependant libraries and stuff) for that. But there's nothing similar to a chroot automatic in apache. BTW, such a thing would probably break all CGIs. I got this idea reading "Securing & Optimizing Linux 3.0", where apache and php is running in chroot (+ a few more services like ssh, snort, ntp, bind, dhcp, ldap, mod_perl). Unfortunatelly, the book is a little out-of-date, and it is not easy to apply it to gentoo. But I think running apache+php+mod_perl in chroot would be definitelly nice feature... Jarry -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] apache/php: chroot?
Hi, On Mon, 24 Jul 2006 21:42:46 +0200 Alex <[EMAIL PROTECTED]> wrote: > > Now my question is: does apache/php support chrooting too? > > And are there some other services, which can be chrooted > > like bind? > > should work without any problems, like the most of the other > standard internet services. > try and have a look ;-) This won't work. Apache doesn't have inbuilt chroot facilities, AFAIK. Like most of the other standard internet services. You would have to setup a chroot env (all dependant libraries and stuff) for that. But there's nothing similar to a chroot automatic in apache. BTW, such a thing would probably break all CGIs. -hwh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] apache/php: chroot?
Hi, On Sun, Jul 23, 2006 at 06:16:23PM +0200, Jarry wrote: > Hi, > > Recently I installed bind, which supports chrooting > "right of the box". Very nice feature, I was positively > surprised... > > Now my question is: does apache/php support chrooting too? > And are there some other services, which can be chrooted > like bind? should work without any problems, like the most of the other standard internet services. try and have a look ;-) greetz alex -- * IMPORTANT: 217 config files in /etc need updating -- gentoo-user@gentoo.org mailing list
[gentoo-user] apache/php: chroot?
Hi, Recently I installed bind, which supports chrooting "right of the box". Very nice feature, I was positively surprised... Now my question is: does apache/php support chrooting too? And are there some other services, which can be chrooted like bind? Jarry -- gentoo-user@gentoo.org mailing list