LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-05-2015, 10:10 PM   #1
r19
LQ Newbie
 
Registered: Nov 2015
Posts: 1

Rep: Reputation: Disabled
Configuring PHP,apache for development from home directory of non-admin user


I have installed LAMP by apt-get install lamp-server^
http://localhost ran fine.

To set up for local development I have changed relevant files in apache2/sites-available/ and apache2.conf and then run a2dissite and a2ensite in admin user according to-
https://help.ubuntu.com/community/Ap...#Virtual_Hosts
I have changed the directory to the home directory of a non-admin user and run a2dissite and a2ensite from admin user. I have followed this to change php.conf:
https://wiki.ubuntu.com/UserDirectoryPHP
by commenting out this -
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>




I have put an html index.html file in the directory but when I try http://localhost I get 403 forbidden error.How can I set up to develop from home directory of non-admin user? I have carefully checked all steps and tried running service apache2 restart many times.
 
Old 12-07-2015, 06:41 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Have you had a look at this page https://httpd.apache.org/docs/2.4/ho...lic_html.html; specifically the UserDir directive?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
User does int getting home directory in root home in ubuntu 10.04 lucid lynx sunrised24 Linux - Server 2 03-07-2012 09:21 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
php user admin whysyn Programming 4 10-21-2005 11:58 AM
Running jsps in user home directory doesn't work (Apache Tomcat and mod_userdir) jimieee Linux - Networking 0 03-23-2005 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration