PDA

View Full Version : .htaccess


erik
27th September 2006, 16:15
After upgrading to 2.2.6 (fedora core 4) I've experienced some problems.

I'm unable to protect files/directories through web-ftp (if I do this i get the following error: Failed to open /home/admispconfig/ispconfig/temp/hta_35QuJp), php.ini isn't incuded anymore (i've copied php.ini to php.d and now it is included) and set_ini() isn't working.

Has someone simular problems and more important does some know how to solve these problems?

Thanks!

falko
28th September 2006, 22:15
I've never had such a problem...
Is SELinux disabled on your system?

erik
29th September 2006, 20:02
Yep, SELinux is disabled.

falko
1st October 2006, 01:44
What's the output of ls -la /root/ispconfig/php? Are there any errors in /root/ispconfig/httpd/logs/error_log?

erik
2nd October 2006, 10:41
the out come of ls -la /root/ispconfig/php is

total 64
drwxr-xr-x 6 root root 4096 sep 12 16:50 .
drwxr-xr-x 9 root root 4096 sep 28 12:38 ..
drwxr-xr-x 2 root root 4096 sep 1 11:23 bin
drwxr-xr-x 3 root root 4096 sep 1 11:23 include
drwxr-xr-x 3 root root 4096 sep 1 11:23 lib
drwxr-xr-x 3 root root 4096 sep 1 11:23 man
lrwxrwxrwx 1 root root 27 sep 1 11:26 php -> /root/ispconfig/php/bin/php
-rw-r--r-- 1 root root 38531 sep 12 16:50 php.ini


I have a lot of errors from /root/ispconfig/httpd/logs/error_log but I think these are relevant

df: `/var/named/chroot/proc': Access denied
df: `/var/named/chroot/proc': Access denied


The rest of the errors are phpmyadmin related

till
2nd October 2006, 13:28
I'm unable to protect files/directories through web-ftp (if I do this i get the following error: Failed to open /home/admispconfig/ispconfig/temp/hta_35QuJp), php.ini isn't incuded anymore (i've copied php.ini to php.d and now it is included) and set_ini() isn't working.

Have you changed anything manually in the php.ini file in /root/ispconfig/php/php.ini e.g. enabling safemode?

erik
3rd October 2006, 11:21
safemode is disabled for /root/ispconfig/php/php.ini and /etc/php.d/php.ini, and there are no changes made in /root/ispconfig/php/php.ini

The funny thing is that I can protect folders in some other websites.

PS. I forgot to mention the following, when I updated tho version 2.2.6 the diskspace ran out and the installation was aborted. ISPConfig was completly unusable. I cleaned up my disk and reinstalled ISPConfig again.

erik
3rd October 2006, 11:39
Okay, I solved one problem. In the folder was a .htpasswd file present. when I removed this file I could reset the username and password through web-ftp.

Now the set_init() (for site created with ISPConfig) issue... I have absolutly no idea where to start with this problem.

falko
3rd October 2006, 18:26
Now the set_init() (for site created with ISPConfig) issue... I have absolutly no idea where to start with this problem.
Where exactly are you using this function? In a web site run by the main Apache? Anything in Apache's error log? What does the disable_functions line look like in your php.ini?

erik
4th October 2006, 12:06
I'm using the function in the main Apache on ISPConfig created domains.

disable_functions is undefined ('disable_functions =') in the php.ini

The output of /etc/httpd/logs/error_log is numerous of the following error/notice

[Wed Oct 04 10:53:12 2006] [error] an unknown filter was not added: PHP
[Wed Oct 04 10:53:12 2006] [error] an unknown filter was not added: PHP
[Wed Oct 04 10:53:12 2006] [error] an unknown filter was not added: PHP
[Wed Oct 04 10:55:01 2006] [error] an unknown filter was not added: PHP
[Wed Oct 04 10:55:01 2006] [error] an unknown filter was not added: PHP
[Wed Oct 04 10:55:01 2006] [error] an unknown filter was not added: PHP
[Wed Oct 04 10:55:01 2006] [error] an unknown filter was not added: PHP
[Wed Oct 04 10:55:20 2006] [error] an unknown filter was not added: PHP
[Wed Oct 04 10:55:20 2006] [error] an unknown filter was not added: PHP
[Wed Oct 04 10:55:41 2006] [error] an unknown filter was not added: PHP
[Wed Oct 04 10:55:41 2006] [error] an unknown filter was not added: PHP

falko
4th October 2006, 18:39
Have a look here: http://www.howtoforge.com/forums/showthread.php?t=4770&highlight=%24go_info%5B%22server%22%5D%5B%22apache 2_php%22%5D

erik
5th October 2006, 10:18
Okay... solved the problem with the error_log too :D!

The problem with ini_set() was no problem at all. I just didn't test the right things (I'm such a rookie).

Thanks for all you're help Falko!!!!