i have one more problem
i dont know how to configure apache so it would work from /home/user/public_html i tryed virtualhost but i think that i do something wrong.
if you can send any guide for this i will be very gratefull.
i have one more problem
i dont know how to configure apache so it would work from /home/user/public_html i tryed virtualhost but i think that i do something wrong.
if you can send any guide for this i will be very gratefull.
So, if you still haven't changed much with your apache2 install this should be able to help:
- Go to /etc/apache2/sites-enabled
- Check to make sure that the 'default' site config is there
- Edit the 'default' site config (vim ./000-default)
- Look for DocumentRoot and change the location to where you would like it to be
- Save document and restart service
- Make sure the new location can be accessed by the user/group www-data (or to the user that owns the apache service)
The 'DocumentRoot' helps define the location for a certain VirtualHost: http://httpd.apache.org/docs/2.0/mod...l#documentroot
Cheers!
ThisIsBryan: The Site | About Me
HowTo: Setup Ubuntu Desktop with LVM Partitions WIKI
Hardware Profile: Dell XPS 14z; 4GB DDR3 RAM; 700GB HD; Intel Corporation Centrino Advanced-N 6230; Intel i7 CPU @ 2.80 GHz
or you could use a symlink ?
Ubuntu 18.04 VMs
http://kimbriggs.com/computers/compu...rectories.file
If you need PHP to work, pay particular attention to the link towards the end about enabling PHP for user public_html directories... it is not enabled by default.
Consider enabling userdir module.
Currently it works for me except for cgi-bin.
See UbuntuForums Configure Apache to enable cgi-bin user directories.
my server now work like i wanted it to work 192.168.1.18/~mysite/ but i have another problem, my php scripts doesnt run. it directly download my index.php file dont open the site.
Edit /etc/apache2/mods-available/php5.conf and comment the line that says "php_admin_value engine Off". Save and restart Apache.
there is no php5.conf file in /etc/apache2/mods-available folder. :S
-----------------------------------------------
i had run a2enmod and file was come. after that i had comment php_admin_value engine off in php5.conf and when i restart apache2 it was working.
Thanks a lot.
Last edited by mandza; June 27th, 2011 at 04:01 PM. Reason: problem solved
Security - a Journey not a Destination
Bookmarks