simpli
-
Posts
165 -
Joined
-
Last visited
Never
Posts posted by simpli
-
-
Hi,
I think I finally figured that virtual host thing. I Added the virtual host statements in my httpd.conf.
ServerName budgetobjects DocumentRoot /library/webserver/documents/budgetObjects/public
I also modified my /etc/host file to mimic a dns (which is the step most tutorials don't have).
127.0.0.1 budgetobjects
when I try to access my index.php file with the made up domain name (http://budgetobjects/index.php), I get the following error.
Forbidden
You don't have permission to access / on this server.
When I try to access the very same adress with http://localhost/budgetobjects/public/index.php it works fine.
I know the name resolves fine because In the error log I get the following errors
client denied by server configuration: /library/webserver/documents/budgetObjects/public/index.php
Can anyone tell me how to solve this problem?
Thank you,
JR
-
I've tried the MAMP approach and it works fine. One problem: I already have a website running using mamp and I don't know how to set up to have multiple sites. I also want to learn it properly too..
-
Hi,
I have been trying to setup virtual hosting for week in order to use the zend framework, to no avail. I even screwed up my httpd.conf pretty bad. I restored the file and now I'm back at square one.
I am on a mac running leopard.
My base directory is /Library/WebServer/Documents/
I would like two projects there. Each project would be a subdirectory in that directory.
I do not have a dns server as I am developping from a home computer. Can you tell me what I can do to create a virtual server for each of the two websites that I'm trying to build or direct me to a website that explains everything from A to Z.
thanks in advance,
JR
-
I have some problems with my virtual hosting.
I have two websites in 2 different folders under my /library/WebServer/documents folder (I'm on a mac).
I therefore have folder budgetobjects and quickstart (2 separate sites).
I created my virtual hosts but it's not working.
When I go to either http://localhost/budgetobjects/ or http://localhost/quickstart/ I get the error message: You don't have permission to access /quickstart/ on this server.
I have order allow, deny so I don't know why I have this error message.
When I look at my error log, I see that http://localhost/budgetobjects/ resolves to Library/webserver/documents/budgetObjects/public/budgetobjects
and http://localhost/quickstart/ resolves to Library/webserver/documents/budgetObjects/public/quickstart. Thats not what I expected. I expected each to resolve to their proper directory. Can anyone tell me what's wrong. here's an excerpt of my httpd.conf
I've read plenty of doc but can't seem to solve this.
Thanks in advance, JR
<Directory /> Options FollowSymLinks AllowOverride All Order deny,allow Deny from all </Directory> <Directory "/Library/WebServer/Documents"> Options Indexes FollowSymLinks MultiViews AllowOverride All Options FollowSymLinks Order allow,deny Allow from all Options Indexes MultiViews AllowOverride AuthConfig </Directory> <IfModule dir_module> DirectoryIndex index.html </IfModule> <FilesMatch "^\.([Hh][Tt]|[Dd][ss]_[ss])"> Order allow,deny Deny from all Satisfy All </FilesMatch> <Files "rsrc"> Order allow,deny Deny from all Satisfy All </Files> <DirectoryMatch ".*\.\.namedfork"> Order allow,deny Deny from all Satisfy All </DirectoryMatch> NameVirtualHost *:80 <VirtualHost *:80> ServerName http://localhost/budgetobjects/ DocumentRoot /library/webserver/documents/budgetObjects/public <Directory "/library/WebServer/Documents/budgetobjects/public"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog /var/log/budgetobjects/errors.log CustomLog /var/log/budgetobjects/access.log common </VirtualHost> <VirtualHost *:80> DocumentRoot /library/webserver/documents/quickstart/quickstart/public <Directory "/library/WebServer/Documents/quickstart/quickstart/public"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> ServerName http://localhost/quickstart/ ErrorLog /var/log/quickstart/errors.log CustomLog /var/log/quickstart/access.log common </VirtualHost>
-
Creating a virtual server has been my strategy as well but I dont think it was working. I didnt want to spend too much time fixing it though but I think it caught up to me. I think I need to start over. Imma start a new thread to fix my virtual server problem and maybe it'll solve my ZF problem as well.
JR
-
Isn't that the normal way to go? we have the webserver directory and one subdirectory for each project right? I followed the page but I have no idea how to implement what's there. Maybe it's too late. I'll see after a night's sleep if I get any further.
Thanks again,
JR
-
I am having no luck still with this issue. Here's the config on my files. ( I removed comments for space).
httpd.conf:
DocumentRoot "/Library/WebServer/Documents" <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory> <Directory "/Library/WebServer/Documents"> Options Indexes FollowSymLinks MultiViews AllowOverride None Options FollowSymLinks Order allow,deny Allow from all Options Indexes MultiViews AllowOverride AuthConfig </Directory> <Directory "/Library/WebServer/Documents/budgetobjects"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory>
The important directory for me is /Library/WebServer/Documents/budgetobjects
in it I have an .htaccess file with the following:
SetEnv APPLICATION_ENV development Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L]
yet when i try to go to the location http://localhost/budgetobjects/CompanyInfo/ I get a 404 error : The requested URL /budgetobjects/CompanyInfo/ was not found on this server.
In my error log I see the following message: /Library/WebServer/Documents/budgetobjects/CompanyInfo.
Of course the file does not exist but isn't Zend supposed to translate this into the proper path to go to my index.php?
Thanks for any help.
JR
-
I definitely don't have that. Can you tell me what it's for and what it does? I will try to do the quickstart exactly like he does and see where that takes me. I thought it had to do with something missing in my configuration.
Thanks,
JR
-
Hi all,
I have been doing the quickstart for Zend and I am at the 'create a model and database table' part. I figured all had gone relatively smoothly so far so instead of copy pasting the example I started to adapt it to suit my needs. I also have been reading tons of doc. But I'm still stuck. I have created controllers, models and views ( according to the intructions) when I try to connect to what I think should be the web page I get a 404 error. Exact error is
Not Found
The requested URL /budgetobjects/companyinfo/ was not found on this server.
When I look at my Apache log I see the following error:
File does not exist: /Library/WebServer/Documents/budgetobjects/companyinfo
and that's right my file is not there. My files are in the following directories:
Controller: /library/WebServer/documents/budgetobjects/application/controllers/CompanyInfoController.php
View: /library/WebServer/documents/budgetobjects/application/views/companyInfo/index.phtml
Model: /library/WebServer/documents/budgetobjects/application/models/companiesInformation.php
Model mapper: /library/WebServer/documents/budgetobjects/application/models/companiesInformationMapper.php
Can someone tell me what's wrong with my setup? and give me a hint how I can solve this?
I'm stuck.
Thanks
JR
-
I solved this myself.
I wasn't referencing the zend library in my projects library.
All is good.
JR
-
Also if I replace the index.php file by an index.php with phpinfo(); in it it works fine so it seems to be the content of the current index file that's screwed up. What's funny is I didnt change anything in that file. It's the standard that is created when you create project with ZF.
The current content of the file is below
<?php // Define path to application directory defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); // Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); // Ensure library/ is on include_path set_include_path(implode(PATH_SEPARATOR, array( realpath(APPLICATION_PATH . '/../library'), get_include_path(), ))); /** Zend_Application */ require_once 'Zend/Application.php'; // Create application, bootstrap, and run $application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' ); $application->bootstrap() ->run(); ?>
-
The apache document root is /library/webserver/documents/
JR
-
Hi,
I am trying to create a project with the ZF to get going. To begin with, what I do is very simple. I create a project through the zend command line then I try to connect to the resulting site. Sounds simple right?
My zend library is on /library/webserver/documents/zend (I'm on a mac)
I created a project called test at the same location. Consequently, the base folder for my application is /library/webserver/documents/test.
Now, I'm supposed to be able to point my webserver at that address and see a welcome page. When I go to http://localhost/test/public/ I get absolutely nothing. It's a blank and nothing comes up when I view source. I don't really know what I'm doing wrong at this point. Anyone has a clue what's happening and I can get unstuck?
Thanks,
JR
-
Hi,
I just tried to build my first project using the zend framework. It didnt work. That was expected. All I get is a blank page.I am sure there are some php mistakes on my scripts but I have no idea where to look the find the error logs.
I have the following in my application.ini
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
....
other stuff
Anyone can help?
JR
can anyone help me? I am
-
Hi,
I want to implement a dojo calendar where upon a click a calendar covering a period would come up. I would like the user to then select the non working days on that calendar (presumably because its going to be shorter than to get him to choose the working days). I am planning to store those days he chooses as non working days in a database table called non working days with the date of the day. I plan to get the list of non working days and subtract it to the number of actual days in a month to get the number of working days in each month. I raked my brain to find another method but couldn't think of another one. Any one has something more efficient to propose?
Thanks,
JR
-
Hi,
I am thinking of setting a parameters table to store site variables. I would need it to store the default or chosen values of several different parameters. Is it ok for me to have field that would contain the name of the parameter and another one the value? I don't want to create a column for each possible different parameters. That would be a huge antipattern and seriously stupid. so my solution would be
parameter_name varchar
parameter_value varchar
Anyone has a better alternative?
Thanks
JR
-
Hi,
I am looking for open source icons and I was wondering if anyone has a favorite place for those. Some web sites I've googled are laced with ads and non content. Some have inequal quality across the icons. Anyone has ever needed free, ready to go icons?
JR
-
Hi, I am going to develop an application and for security reasons I would rather use https right off the bat. What does that entail? Do I have to do anything different? How do I ensure the data is secure?
Thanks for any pointers.
JR
-
Hi, I am in the design phase of my application and I am wondering if the zend framework applies to AJAX. If so can you show me an example? I dont know much about MVCs,(more doc to read) and I'm a big fan of the monkey see monkey do approach.
JR
-
Hi,
I am starting a web page and it's gonna have to be from the beginning in french and english at least. What's the best way do you think for me to handle that. It's gonna be an ajax application. I've seen it done before that on the server side the guy had a language file where he had an array with like 90 strings in 6 different languages. Is this the route I should go? That gives me some problem on the client side though. How do I pull it off I I don't want to download all my "dictionnary" (for lack of a better word ) to my clients computer?
Thanks for your inputs.
JR
-
Hi,
This is something I wish I never had to ask but can anyone point me to a good and user friendly UML design tool on Mac? I wish I never had to ask that question because I decided not to go into computer engineering because of design and UML was the prime force driving me away. Now I am working on my software idea and before I embark on some hardcore coding, I need to figure out how I'll do some stuff hence the need for a UML software. Please something not to hardcore I basically just wanna do some database design, you know table here table there, primary key , referential integrity blab bla nothing too fancy or it will just turn me off.
Oh I need to be able to copy paste it into word too.
Thanks,
JR
-
Nightslayer, thanks for the clarification. Actually I read a bit about prototyping in the meantime. I am not sure it's going to apply as I'm gonna be doing some AJAX and I'm gonna need to update as the user goes. Plus that sounds like loading a whole database dataset in memory am I right?
Thanks for clarifying. And I will further check prototyping.
JR
-
Nightslyr, your avatar cracks me up. Your post however left me dazzed and confused... as if I was punched by your avatar. I'm not sure normalisation has nothing to do with what I want to achieve. and I have no idea what the prototype pattern is. Care to expand?
JR
-
Hi again,
I'm thinking, could I assign an encryption key to each company to further protect their data? (That would be on top of the user name and password) for instance:
Company A
customer 1
customer2
Company B
customer 1
customer 2
customer 3
each customers for each company would have their username and password but additionally they would have to provide a company key and unless they do so all they would see is gibberish. Is this feasible / desirable?
[SOLVED] How dare Apache!? Forbidden
in Apache HTTP Server
Posted
This is my httpd.conf file
this is my host file