DeveloperSide.NET Forums

DeveloperSide.NET => Anything else goes here => Topic started by: bigjoe11a on April 08, 2007, 02:58:41 PM



Title: Installing a Main Page
Post by: bigjoe11a on April 08, 2007, 02:58:41 PM
Every one knows that the webroot directory is the main web directory. Is there a way of adding a index.php file in that directory and I can use to access all the other pages that I have set up.

and, I do know that each page has its own log in option. Can I transfer login options to each page. or web site thats installed.

Like phpbbs and joomla. That way they are not loging on every time they go from one web site to the other.


Title: Re: Installing a Main Page
Post by: admin on April 10, 2007, 07:56:47 PM
You can link out of index.php to your other pages?

Or are you talking about VirtualHosts/other domains? In this case, you can log to a separate file.


Title: Re: Installing a Main Page
Post by: bigjoe11a on April 10, 2007, 08:14:48 PM
Ok, I mean the other pages that I can setup, like phpbb2 and joomla, I tried making an index.php file and linking them too to. I keep getting an error access denied. Just telling me that I don't have access. well if the php index.php files are in a directory thats not off the webroot directory. I have no way to access them from another page.

any ideas

Joe


Title: Re: Installing a Main Page
Post by: admin on April 10, 2007, 08:38:12 PM
You can't link out to http://localhost/phpbb2 ?


Title: Re: Installing a Main Page
Post by: bigjoe11a on April 10, 2007, 08:44:16 PM
Then how can we use the scripts that come with web devloper. There no since in adding them if we can't use them, thats dum, right.

d:\www\webroot main dir, where we put our pages
d:\www\webapps main dir where the scripts are. ok

So I don't get it. How can we use those apps!

thanks

 


Title: Re: Installing a Main Page
Post by: admin on April 10, 2007, 09:15:58 PM
Could you give me an exact example?

If you are putting things under webapps, you will need to alias that to a URL. That dir is reserved for the webapps that come with WD, nothing more.


Title: Re: Installing a Main Page
Post by: bigjoe11a on April 10, 2007, 09:28:04 PM
Thats what I'm trying to tell you that I can't access anything thats not in the webroot directory. the apps! are in a dir that I can't access from a main page thats in the webroot directory.

www\webroot\*.* I can access any thing here, in any directory. If you have your web apps! in another directory under the webroot directory no one will be able to access those pages from the internet. Get it

I can NOT access any thing in the

www/webapps/  This DIR is not in the webroot dir.

I hope that help, if not, you can IM me in Yahoo messenger using "bigjoe11a" and I'll find a way to show you

Thanks


Title: Re: Installing a Main Page
Post by: admin on April 10, 2007, 09:54:13 PM
Nope. I still don't get it.

Unless you are saying that you CAN access localhost/phpbb2, but no else can... Which would make sense since by default the webapps are bound to 127.0.0.1 for security reasons. Its a one line change under the \www\Apache22\conf\Suite-extra\webapps\whatever_webapp.conf files.

If you are saying that you have placed some_script.php under \www\webapps\ and can't access it... That would also make sense since that DIR is not URL aliased under httpd.conf, or has permissions and script exec set under httpd.conf


Title: Re: Installing a Main Page
Post by: admin on April 10, 2007, 09:56:37 PM
Quote
www/webapps/  This DIR is not in the webroot dir.

There is no need for it to be under webroot. Its webapp's subdirs are URL is "aliased" to their appropriate DIRs -- bypassing webroot.


Title: Re: Installing a Main Page
Post by: bigjoe11a on April 10, 2007, 09:59:46 PM
Well I don't know, thats how WD installed it. It should install to the webroot DIR. I tried copying them over to the new DIR, I just couldn't get anything to work. So I left it as is was, and couldn't connect to them.

Any ideas.

Thank Again



Title: Re: Installing a Main Page
Post by: admin on April 10, 2007, 10:06:42 PM
No, they go under \www\webapps.

Look at any of the conf files under Suite-extra\webapps\. Each one tells Apache that whenever someone requests localhost/<webapp>, to look for it under \www\webapps\<webapp> -- and not \www\webroot.

Its best this way, for security and order.


Title: Re: Installing a Main Page
Post by: bigjoe11a on April 10, 2007, 10:17:57 PM
o, they go under \www\webapps.

Look at any of the conf files under Suite-extra\webapps\. Each one tells Apache that whenever someone requests localhost/<webapp>, to look for it under \www\webapps\<webapp> -- and not \www\webroot.

Its best this way, for security and order.

-----------------------------------------------------------------------------
Thats the way it is setup. How can I access those scripts over the internet.

I put a index.php page in the webroot DIR. with a link in it.

<a href="phpbb2/">Forums Area</a>

and it doesn't work, when some one connect and brings up the main page. and they click that link. It keeps saying access denied. They are not allowed in the directory!

Thanks





Title: Re: Installing a Main Page
Post by: admin on April 10, 2007, 10:27:15 PM
Edit \www\Apache22\conf\Suite-extra\webapps\phpbb2.conf

Comment out...
allow from 127.0.0.1

Uncomment...
# allow from all

Restart Apache.


Title: Re: Installing a Main Page
Post by: admin on April 10, 2007, 10:28:54 PM
And change the link to <a href="/phpbb2/">Forums Area</a>


Title: Re: Installing a Main Page
Post by: bigjoe11a on April 10, 2007, 10:43:15 PM
Ok, it's online and up. You try and then you tell me. The same line you gave me is the same line I tried

http://filemud.dtdns.net/

Theres a generic page and click the forums link, and thats what happens.

I leave it up for a bout 2 hours or so. Until I hear you.

Thanks


Title: Re: Installing a Main Page
Post by: admin on April 10, 2007, 10:52:01 PM
Tried it.

Can you access it locally? Does it let you through?

Where is the phpbb2 dir right now? Under \www\webapps?

What are the contents of the phpbb2.conf file?


Title: Re: Installing a Main Page
Post by: bigjoe11a on April 10, 2007, 11:03:22 PM
>>Tried it.
Did it work. were you able to see the forums main menu
>>Can you access it locally? Does it let you through?
Yes, I can, locally, Only, I have a 2nd PC, and tried accessing from the web. and
got the same error
>>Where is the phpbb2 dir right now? Under \www\webapps?
Yes
>>What are the contents of the phpbb2.conf file?

Alias /phpbb2 "/www/webapps/phpbb2"

<Directory "/www/webapps/phpbb2">
   Options None
   AllowOverride None

   order allow,deny
   allow from 127.0.0.1
#   allow from all

   AddType text/html .php
   AddHandler application/x-httpd-php .php
</Directory>




Title: Re: Installing a Main Page
Post by: admin on April 10, 2007, 11:07:36 PM
That should be...

# allow from 127.0.0.1
allow from all

Not the other way around. make changes and restart Apache. It will work after that.


Title: Re: Installing a Main Page
Post by: bigjoe11a on April 10, 2007, 11:23:59 PM
That worked, Thanks. I didn't see any doc's on that. sorry for the problem.

any way One more question, and I'll let you go.

is there a way to pass login information, between webapps.

Again thanks for you help



Title: Re: Installing a Main Page
Post by: admin on April 10, 2007, 11:56:22 PM
That would be something specific to the app. Its usually called a "bridge". But the short answer is no.


Title: Re: Installing a Main Page
Post by: vatulaulau on May 28, 2007, 01:04:07 AM
Every one knows that the webroot directory is the main web directory. Is there a way of adding a index.php file in that directory and I can use to access all the other pages that I have set up.

and, I do know that each page has its own log in option. Can I transfer login options to each page. or web site thats installed.

Like phpbbs and joomla. That way they are not loging on every time they go from one web site to the other.


I have put a project folder in the webroot directory and accessed it through the http://localhost/projectfoldername  url-I have included an index.htm file in the directory C:\www\webroot\projectfoldername\index.htm.The index.htm file displays a login form-usually this is what is displayed when the http://localhost/projectfoldername  url is entered(Or have I missed something?Thx. )


Title: Re: Installing a Main Page
Post by: bigjoe11a on May 28, 2007, 02:43:42 AM
Every one knows that the webroot directory is the main web directory. Is there a way of adding a index.php file in that directory and I can use to access all the other pages that I have set up.

and, I do know that each page has its own log in option. Can I transfer login options to each page. or web site thats installed.

Like phpbbs and joomla. That way they are not loging on every time they go from one web site to the other.


I have put a project folder in the webroot directory and accessed it through the http://localhost/projectfoldername  url-I have included an index.htm file in the directory C:\www\webroot\projectfoldername\index.htm.The index.htm file displays a login form-usually this is what is displayed when the http://localhost/projectfoldername  url is entered(Or have I missed something?Thx. )

Yes that Part I do under stand. My question is that theres no way to set it up so  when users log in on the main page. index.php in the web root directory. that they don't have to log in on the others pages or programs that come with web developer. Like phpbb2, and joomla. and so on. So that ever time they go form Joomla too phpbb2 or back to the main page they would would have to log in and out on every page or program.

 


Title: Re: Installing a Main Page
Post by: vatulaulau on May 28, 2007, 10:59:25 PM
Sorry,my bad man...I was actually asking a question back there.Thing is after I do what is stated below,the login form does not display-is there some kind of default file like "webroot.htm" in order for me to have a "front-end" to my project folder.

I have put a project folder in the webroot directory and accessed it through the http://localhost/projectfoldername  url-I have included an index.htm file in the directory C:\www\webroot\projectfoldername\index.htm.The index.htm file displays a login form-usually this is what is displayed when the http://localhost/projectfoldername  url is entered(Or have I missed something?Thx. ) 
 
 


Title: Re: Installing a Main Page
Post by: bigjoe11a on May 28, 2007, 11:03:41 PM
No, you just lost me. I just wanted a way for my users to log in one time and not have to log in 3 or 4 times on one web site

np

Joe


Title: Re: Installing a Main Page
Post by: natcolley on May 29, 2007, 01:56:01 AM
Hello Vatu and Big Joe:
We have similar issues in that we are not all that experienced with Apache or the webapps and there is no primer written at the non-geek level for us to follow. The people who write these programs and listservs and forums all assume more knowledge than I think is reasonable. What seems simple and obvious to them is not simple and obvious to us. Ok, so much for my rant.

Big Joe, it seems to me that what you want is not only reasonable but entirely predictable, especially since all your apps are on the same machine and the same root. I don't know why someone couldn't write a cookie or similar small program that follows our users throughout our site and 'opens' the doors for them. If not that, then some kind of common log in thru a shared database in mysql that all the apps read from. Conceptually, it doesn't seem all that difficult - but I'm no coder. There are, however, lots of freelance coders out there working thru freelance coding sites. If you're interested, maybe we could split the cost and find someone to write the code for both of us?

Valu, if I understand webdeveloper correctly (and that's no guarantee) there is something in the code which is not obvious to us which moves / aliases / redirects the outside world to the appropriate app. But the default "landing page" for lack of a better term, is just a blank index page that apparently we are supposed to know what to do with. How to make joomla, or your project, the landing page is not at all obvious. But I am pretty sure what you are trying to do, though intuitively reasonable, is not going to work. Your project will have to be put in the webapps folder where everything else is. What you do after that, I am even less sure what to tell you.

You both might want to check out my ongoing issues in the topic "new installer" to see if you can glean anything from that discussion. And if I don't hear from you, good luck to you both.



Title: Re: Installing a Main Page
Post by: bigjoe11a on May 29, 2007, 02:18:28 AM
Thanks for your input natcolley, How ever I have tried that and all so I have tried  other web sites to that offer help. and well I tried a php program called CMS. and you want to talk about a joke. Thats just it. thats what a lot of these php programs miss. Is support. getting help with a lot of programs is a joke.

98% of the time. and then after 3 months. any support is gone. then your stuck with unless software.

Thats why I like it when it free


Title: Re: Installing a Main Page
Post by: vatulaulau on May 29, 2007, 10:52:23 AM
Hello Vatu and Big Joe:
We have similar issues in that we are not all that experienced with Apache or the webapps and there is no primer written at the non-geek level for us to follow. The people who write these programs and listservs and forums all assume more knowledge than I think is reasonable. What seems simple and obvious to them is not simple and obvious to us. Ok, so much for my rant.

Big Joe, it seems to me that what you want is not only reasonable but entirely predictable, especially since all your apps are on the same machine and the same root. I don't know why someone couldn't write a cookie or similar small program that follows our users throughout our site and 'opens' the doors for them. If not that, then some kind of common log in thru a shared database in mysql that all the apps read from. Conceptually, it doesn't seem all that difficult - but I'm no coder. There are, however, lots of freelance coders out there working thru freelance coding sites. If you're interested, maybe we could split the cost and find someone to write the code for both of us?

Valu, if I understand webdeveloper correctly (and that's no guarantee) there is something in the code which is not obvious to us which moves / aliases / redirects the outside world to the appropriate app. But the default "landing page" for lack of a better term, is just a blank index page that apparently we are supposed to know what to do with. How to make joomla, or your project, the landing page is not at all obvious. But I am pretty sure what you are trying to do, though intuitively reasonable, is not going to work. Your project will have to be put in the webapps folder where everything else is. What you do after that, I am even less sure what to tell you.

You both might want to check out my ongoing issues in the topic "new installer" to see if you can glean anything from that discussion. And if I don't hear from you, good luck to you both.



Yeah thanks for your input natcolley.Most WAMP installations like XAMP have their "landing page" in the htdocs folder of their Apache installation-you can use the index.htm file and "direct" the user using it.For the Web developer setup,it is the webroot folder instead of the htdocs folder as stated earlier-thing is,when creating an index.htm file,it seems the Apache server does not "pick-up" on it.As for the Webapps folder-I think I don't have it because I have done only a core installation-just the WAMP part.Hope that help will be forthcoming-yup thanks agin natcolley and bigjoe11a(hope we begin doing some "real-stuff" instead of troubleshooting and looking for solutions to "hiccups" )


Title: Re: Installing a Main Page
Post by: bigjoe11a on May 29, 2007, 11:35:24 AM
Thanks for the input.


Title: Re: Installing a Main Page
Post by: admin on May 29, 2007, 01:11:29 PM
The reason Apache is not picking up the "index.htm" file is because this line under httpd.conf is only telling it to pick up "index.html" and "index.php"...
Code:
DirectoryIndex index.html index.php index.aspx

You can add index.htm to the end, though I would just standardize everything to "index.html"


Title: Re: Installing a Main Page
Post by: admin on May 29, 2007, 01:26:42 PM
Quote
If not that, then some kind of common log in thru a shared database in mysql that all the apps read from. Conceptually, it doesn't seem all that difficult - but I'm no coder.

The log in problem is a big one... There is just no way around it at this time. Either every app has to have a module written that integrates it's user database with the other apps, or log in modules have to be written to take advantage of a 3rd party SSO [single sign on] solution. The latter being the choice that will probably win.


Title: Re: Installing a Main Page
Post by: vatulaulau on May 30, 2007, 08:41:29 AM
Quote
If not that, then some kind of common log in thru a shared database in mysql that all the apps read from. Conceptually, it doesn't seem all that difficult - but I'm no coder.

The log in problem is a big one... There is just no way around it at this time. Either every app has to have a module written that integrates it's user database with the other apps, or log in modules have to be written to take advantage of a 3rd party SSO [single sign on] solution. The latter being the choice that will probably win.

Thanks a lot admin for your help.My index.htm file picks up now and I am able to see the login form-thx again.Thing is,after creating the required databases and tables in MySQL and then entering the stored username and password in the login form-I get an error message"Not connected: Access denied for user 'root'@'localhost' (using password: NO)".This error message is most probably due to the preconfigured password and username you guys have put in the webdeveloper suite-how do I get around this?It would be nice if a user could just "login" using the password and username which they have been assigned/created.Appreciate all the help you've given so far.


Title: Re: Installing a Main Page
Post by: admin on May 30, 2007, 01:41:03 PM
I'm not eactly sure what you are doing, but the error message is saying that you are accessing the mysql db with user 'root', and no password is being provided... The default password for root is 'rootwdp'.


Title: Re: Installing a Main Page
Post by: bigjoe11a on May 30, 2007, 01:52:00 PM
Quote
If not that, then some kind of common log in thru a shared database in mysql that all the apps read from. Conceptually, it doesn't seem all that difficult - but I'm no coder.

The log in problem is a big one... There is just no way around it at this time. Either every app has to have a module written that integrates it's user database with the other apps, or log in modules have to be written to take advantage of a 3rd party SSO [single sign on] solution. The latter being the choice that will probably win.

Thanks a lot admin for your help.My index.htm file picks up now and I am able to see the login form-thx again.Thing is,after creating the required databases and tables in MySQL and then entering the stored username and password in the login form-I get an error message"Not connected: Access denied for user 'root'@'localhost' (using password: NO)".This error message is most probably due to the preconfigured password and username you guys have put in the webdeveloper suite-how do I get around this?It would be nice if a user could just "login" using the password and username which they have been assigned/created.Appreciate all the help you've given so far.

Yep, that why your getting the error. Try changing your password to log in as "rootwdp". and a user name of "root". If you want to use another user name and password. Go into myphpadmin and create a new user account with a new password. and make sure you setup access rights for that user. and try it again.
using your new name and password.






Title: Re: Installing a Main Page
Post by: vatulaulau on June 03, 2007, 03:25:20 AM
Okay,here is the thing-you guys are correct and thanks.I changed the argument value for the data access base class-php is the server-side scripting language-from password=" " to password="rootwdp" and it worked-now I can run my web-based application.Thanks again.


Title: Re: Installing a Main Page
Post by: bigjoe11a on June 03, 2007, 05:32:58 AM
Your Welcome and np