activate php for userdir

Discussion in 'Plugins/Modules/Addons' started by Dznet, Dec 14, 2012.

  1. Dznet

    Dznet New Member

    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-access-on-ispconfig-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"

    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?
     
    Last edited: Dec 14, 2012
  2. till

    till Super Moderator

    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.
     
  3. Dznet

    Dznet New Member

    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
     
  4. till

    till Super Moderator

    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.

    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.
     

Share This Page