I've recently installed Rapid PHP 9.41, and I think I've got the mappings for previewing right, but, there is a problem that I'm not able to solve.
I use WAMP server (Apache 2.2.11, PHP 5.2.8 & MySQL 5.0.51a) on WinXP SP3, and have configured a few virtual hosts - correctly specified in Apache (httpd-vhosts.conf) and Windows hosts file (standard port 80), each have it's own dir, for example E:/wamp/www/test1/, and each has its own Joomla 1.5.9 installation - I can open each virtual hosts home page in browser (IE & Firefox) via for example http://localhost/test1/.
I thought there shouldn't be a problem in mappings inside Rapid PHP, but... - I obviously got the mappings right but still can't preview the page.
Under mappings I've put: "E:\wamp\www\" and "http://localhost/". I've also disabled the "use built-in web server" under script preview. But all I get is a "Restricted access" or "Restricted index access" message.
If I, for example try to open E:/wamp/www/test1/templates/template1/index.php which is the actual file that I want to edit (Joomla renders its homepage based on the selected template, so the index.php in the virtual hosts home dir (www/test1/) gets its data from the index.php inside the ...www/test1/templates/template1/ ), I just get the "Restricted access" message. On the other hand, if I open http://localhost/test1/index.php, (the same page, but rendered through browser) RapidPHP opens the page (it appears to be stored in the IE %temp dir) and I can normally preview it. Since I have a few templates, if I edit php files this way, I'm able to edit & preview just the index.php inside the active template, but, If I want to edit the index.php from the template that is not active at this point, it can be opened opened only via local disk adress, and there goes the preview - actually the lack of it - again...
I guess that this "restricted access" message is Joomla security related setting, most probably a chmod issue - is there a simple way to bypass it while working on the localhost inside RapidPHP, without the need to change the chmod settings for the files inside Joomla?
Thank's
PHP mapping with Wamp & Joomla
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
- Karlis
- Site Admin
- Posts: 3605
- Joined: Mon Jul 15, 2002 5:24 pm
- Location: Riga, Latvia, Europe
- Contact:
Re: PHP mapping with Wamp & Joomla
Let me clarify this:
1) You have mapped http://localhost/ to E:\wamp\www\ ... this seems to be correct
2) When you open E:\wamp\www\test1\index.php for editing, it should work, you should see http://localhost/test1/index.php are you saying this is not happening?
You must understand also that if you open E:/wamp/www/test1/templates/template1/index.php in editor, you can not expect Rapid PHP to understand that http://localhost/test1/index.php has to be opened for preview, Rapid PHP will of course try to open http://localhost/test1/templates/template1/index.php Rapid PHP is not a human being and can not understand that previewing E:/wamp/www/test1/templates/template1/index.php should result in opening http://localhost/test1/index.php
If I am not getting this, please clarify. It is late
1) You have mapped http://localhost/ to E:\wamp\www\ ... this seems to be correct
2) When you open E:\wamp\www\test1\index.php for editing, it should work, you should see http://localhost/test1/index.php are you saying this is not happening?
You must understand also that if you open E:/wamp/www/test1/templates/template1/index.php in editor, you can not expect Rapid PHP to understand that http://localhost/test1/index.php has to be opened for preview, Rapid PHP will of course try to open http://localhost/test1/templates/template1/index.php Rapid PHP is not a human being and can not understand that previewing E:/wamp/www/test1/templates/template1/index.php should result in opening http://localhost/test1/index.php
If I am not getting this, please clarify. It is late
