HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Plugins/Modules/Addons (http://www.howtoforge.com/forums/forumdisplay.php?f=34)
-   -   activate php for userdir (http://www.howtoforge.com/forums/showthread.php?t=59956)

Dznet 14th December 2012 13:20

activate php for userdir
 
Hi,

I'm sorry, I don't speak English very well

I followed this tutorial to set up UserDir on my intranet server.
http://www.howtoforge.com/userdir-ac...onfig-3-server

All works well for the HTML page, but I want to activate the php
I edit "/etc/apache2/mods-available/php5.conf" and I commenting line "php_admin_value engine Off"

Quote:

<IfModule mod_userdir.c>
<Directory /home/*/public_html>
#php_admin_value engine Off
</Directory>
</IfModule>
</IfModule>
I restart Apache2, but I get an error 403 "You do not have permission to access /~ clientsite.local / on this server."

I check the directory permissions clientsite.tld WEB site, and it is ok

Do you have any idea?

till 14th December 2012 13:32

You can not use the userdir module for php pages, it is just for delivery of plain html pages. For that resaon the function is not integrated in ispconfig as the userdir functionality is quite useless on servers today.

Dznet 14th December 2012 13:40

I find the solution
I commented these lines in /etc/apache2/sites-available/default

Code:

# Disallow PHP file access
# <Files ~'.php[s3-6]{0,1}$'>
# Order allow, deny
# Deny from all
# Allow from none
#</ Files>

@Till I need userdir to show the site without a domain name and without editing the hosts file

till 14th December 2012 13:47

The php files are running onder a wrong user now, so the results you get are not the same the you will get later when you use the rel site and cms systems that write files to the web directory wont work properly as well.

Quote:

@Till I need userdir to show the site without a domain name and without editing the hosts file
If you dont want to edit the hosts file you can just add a aliasdomain or subdomain to the site which belongs to a domain that points to the server to accessthe site.


All times are GMT +2. The time now is 15:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.