Another mappings post. I changed to xampp from portablewebap

Post your questions and problem reports here

Moderator: kfury77

Forum rules
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;
Post Reply
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Another mappings post. I changed to xampp from portablewebap

Post by notuo »

Hi all. I hope you can help me.

I just changed from portablewebapp to xampp in order to take advantage of MySql.

I had it all working but now with xampp is not. The web server is working (verified in firefox and in rapid. after the error, I click in localhost and there is the xampp index page) fine but the preview isn't.

My mappings are: (I am using vista and per xampp recommendation I used a non "program files" directory)

Local E:\xampp\htdocs\
web server http://localhost/
Path to php: E:\xampp\php\php.exe

I have all my web sites arranged in e:\Web Sites\ in there for each project I have the name of the project and several subdirectories, one of them is site (e:\Web Sites\Project\Site) which is the public_html site for the real web server

In portablewebbapp I had to add this to httpd.conf for each of the projects:

Alias /paty/ "e:/Web Sites/PROPIOS/Paty/Site"

and the corresponding map in rapidphp:

E:\Web Sites\PROPIOS\Paty\Site
http://localhost/paty/


This is not working anymore. Maybe I confused everithing or is the xampp version.

I hope somebody can help me soon.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Not very experienced with XAMPP. The best way would be to use the htdocs\project1, htdocs\project2 etc. in this case there should be no problems at all with the following mapping:

http://localhost/
c:\xampp\htdocs\

so if you have a site under c:\xampp\htdocs\mysite\
it will open via http://localhost/mysite/

However with your particular configuration the things get difficult. So what you generally need to do with your XAMPP is to make it work like this...

if you enter http://localhost/paty/ in your web browser
XAMPP should display site from E:\Web Sites\PROPIOS\Paty\Site

I hope you understand that this is related to XAMPP configuration and not to Rapid PHP. So you will ned to update httpd.conf in order to get this config working.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Post by notuo »

karlis, thank you for your comments.
I hope you understand that this is related to XAMPP configuration and not to Rapid PHP. So you will ned to update httpd.conf in order to get this config working.
Of course I understand this is xampp not rapidPHP, don't worry. If I type anything in other sense, that's my fault.

I understand the first part and mappings, but as I have some projects already in that scheme and that is a way I can control not only the site itself but all the art, final images, documentation, etc. under one project directory and that was working with portablewebapp... the reason of my post.

On the other hand, when you mention:
However with your particular configuration the things get difficult. So what you generally need to do with your XAMPP is to make it work like this...

if you enter http://localhost/paty/ in your web browser
XAMPP should display site from E:\Web Sites\PROPIOS\Paty\Site However with your particular configuration the things get difficult. So what you generally need to do with your XAMPP is to make it work like this...

if you enter http://localhost/paty/ in your web browser
XAMPP should display site from E:\Web Sites\PROPIOS\Paty\Site
That's is what I want, I don't see how to achieve it.

If somebody working with xampp can share their knowledgde with the rest of us will be terrific (at least for me)

Regards to all
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Post by notuo »

Karlis, I am still testing this thing, but one of the ideas I got was to create in my actual structure a pointer(shortcut) to the xampp respective folder.

In windows worked fine, but rapidPHP in the project manager doesn't recognize the shortcut, just actual folders.

Maybe this can be an improvement to the software.

Regards
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Post by notuo »

Well, I finally found the way to do this with my file structure.

I have to set the mappings as usual within rapidphp. Then I have to add the following to the httpd.conf file located in the xampp/apache/conf folder

After all the comments after this line <IfModule> (around 295) I added the following for each of the mappings in rapidphp:

Alias /css/ "e:/Web Sites/PROPIOS/AAS/css/"
<Directory>
Order allow,deny
Allow from all
</Directory>

and voilĆ works in rapid preview without any issue and also I can type
http://localhost/css/ and get the same in any browser i want


Maybe this can be in the mappings doc as example or so.

Although I still believe that rapid has to get the shortcuts to other directories as I mentioned in my prior post.
Post Reply