I am a linux user (fedora 12), and I would like to start with PHP, JS and MySQL development.
So I’ve installed apache (httpd), php, mysql, phpmyadmin and eclipse with PHP plugin.
I’ve managed to configure it to work, but one thing bothers me.
The only way I can get my test.php to run is by manually placing it inside var/www/html which you are able to manipulate with only with root permissions.
Which means the development in such case would be pain in the ass. I can’t manage to get my php run in firefox from my workspace.
I also tried trough Eclipse’s run in browser (127.0.0.1:8000/test/index.php), but all I get is blank (php not executing).
Please help, how do I make it run PHP script from everywhere on my system.
Also I miss Dreamveawer, is there any good alternative for linux?
I have index.html specified as directory index, I have set proper permissions in httpd.conf, I really can’t find the issue.
EDIT:
Here’s what says in Apache manual about forbidden:
In the case where file system permission are at fault, remember that not only must the directory and files in question be readable, but also all parent directories must be at least searchable (i.e., chmod +x /directory/path) by the web server in order for the content to be accessible.
I’d recommend using virtual hosts so you can have
/home/[user]/webprojects/site1/
/home/[user]/webprojects/site2/ http://site1.local http://site2.local
You want to set your dir to say x755 or something so you can write and execute files.
And no, there’s not really an “alternative” to Dreamweaver on Linux, there are other apps similar and you can actually run Dreamweaver through Wine or one of those.
Why are you looking at doing PHP development and thinking of using Dreamweaver? Dreamweaver is not good when it comes to real coding…