These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for PHP Files not executing on the new forum.
Hi, I install Webmin/Virtualmin on a Ubuntu server 10. All went smoothly with the install script. I created a virtual server for a domain & tried to open a php file that that giving the follwoing error:
Forbidden You don't have permission to access /index.php on this server.
Any HTML file I can open without any problem. I can rememeber this was happen before when I install a fresh server few years ago, & i can't remember how I solved this???
apache php5 mod is enabled.
Any Idea?
Kind regards M
Howdy,
What output do you get if you run this two commands:
ls -la $HOME
ls -l $HOME/public_html/index.php
You may have a permissions problem -- if so, that should help identify what's going on there.
-Eric
ls -la $HOME
drwx------ 7 root root 4096 2011-05-26 13:04 . drwxr-xr-x 23 root root 4096 2011-05-25 14:43 .. drwx------ 2 root root 4096 2011-05-24 08:32 .aptitude -rw------- 1 root root 583 2011-05-25 13:56 .bash_history -rw-r--r-- 1 root root 3106 2010-04-23 10:45 .bashrc drwxr-xr-x 2 root root 4096 2011-05-24 08:32 .debtags drwx------ 2 root root 4096 2011-05-25 14:33 .gnupg -rwxr-xr-x 1 root root 44010 2011-03-06 20:00 install.sh drwx------ 5 root root 4096 2011-05-25 12:29 Maildir -rw------- 1 root root 281 2011-05-26 12:28 .mysql_history -rw-r--r-- 1 root root 140 2010-04-23 10:45 .profile -rw------- 1 root root 1024 2011-05-25 12:29 .rnd drwx------ 2 root root 4096 2011-05-25 12:30 .spamassassin -rw------- 1 root root 5919 2011-05-26 13:04 .viminfo -rw-r--r-- 1 root root 92348 2011-05-25 12:30 virtualmin-install.lo
ls -l /home/domainname/public_html/index.php
-rwxr-xr-x 1 domainname domainname 3951 2011-03-30 16:51 /home/domainname/public_html/index.php
Thanks for the time
Hang on, i think Its something looks like "mod rewrite engine" problem! because I have a .htaccess file under public_html with rewrite tags! i deleted the file & insert a info.php file & that worked!
Thanks