This is probably a noob question but i'm really new to this thing (zend application & apache2 servers)
previous developers have given me the source code for the project they did and he said that it was created with Zend framework. I've managed to run it on my computer (Windows 7) under XAMPP server. If I go to http://****(mylocalcomputer)/ it will work. But once I copy all (3 folders) of them on the Ubuntu web server we have, it's not working. I've tried pointing the directory (configuring /etc/apache2/sites-enabled/default000) to the public folder like the ones I did on XAMPP httpd.conf, but it's still not working...
After trying it in chrome, I go to inspect element, and going thru console, it's telling me all the files mentioned with 404 not found errors. But when I browse with winscp to the directories, I can find those files. Help please... thanks in advance...
SOLVED this problem...I just have to carefully configure all the Aliases and Directory Root properly. THANKS to this website, I was able to check all the possible causes and errors of that default000 file!
Related
A year ago, I decided to go with codeigniter instead of laravel, because codeigniter prooved to be easier to setup. I am now preparing for my next project and it seems as if codeigniter is now obsolete (at least most of the people seem to recommend laravel over codeigniter).
Now to my problem: I use a virtual ubuntu machine for developing web apps so I have a dev environment similar to the production environment (this helps me to avoid some problems (especially case-sensitivity...;)))
I installed composer and laravel and created a new laravel project named "quickstart" in /var/www/quickstart. I then followed their "getting started guide" (here: Guide). So far everything worked.
But here come the problems:
I have two other web applications in /var/www, so when I enter the ip of the machine I see the 3 directories.
Issue 1:
Normaly I'd expect that as soon as if I click on the "quickstart"-Directory in my browser, the webapp would get displayed, but I have to click a second time on "public", and then the webapp is displayed.
Issue 2: Of course, the links on the page are wrong too, because they reeer to (for example) "/task", which can't be found on the server.
The problem is that I'm not really experienced with apache configuration. I suspect it has something to do with VirtualHosts, but AFAIK you need to have root access to configure virtual hosts, and I do not have root rights on the dev environment.
Could you point out a way to me how I can make laravel work in a subdirectory in a way that I can just move the files and folders to my hoster as soon as I have finished the project? I'd like to then change only one file, and not all paths and URLs in all files ;)
Regards,
Christian
Thanks to Bogdan, I was able to figure it out. My hoster allows symlinks, so I did it like so:
I put the laravel installation in
/srv/web/quickstart
(quickstart is the name of the project). I then created the following symlink:
ln -s /srv/web/quickstart/public /srv/web/www/public
The document root of the apache is configured to
/srv/web/www/public
After that I just got a blank page. That was because I forgot to set the correct permissions on the storage-folder. So I set the following permissions
chmod -R 777 /srv/web/quickstart/storage
This is fine for a development environment. For production I'd recommend to only allow the webserver-user to write into that directory.
And voilĂ : Everything works!
Thank you for your help bogdan.
Christian
I know that I'm missing something obvious here. I installed XAMPP on my Mac to develop a Joomla site locally. Everything has gone fine and I'm now ready to migrate to my site to my external server, but I can't find it...
The Joomla documentation says that the local directory using XAMPP should be at xampp/www/directory, but there is no "www" folder anywhere in Applications/XAMPP and I can't find any other xampp folders anywhere on my hard drive. Where do I find the files I need to FTP to the server??
All help very appreciated!
You can use the find command to fine php files for your joomla installation :) Eg:
find / -name index.php
I have succesfully installed and deployed the Zend skeleton application however when netbeans open the page it doesn't show the actual page of Zend but it shows the Index of /testzendwithwamp and i have no clue what the problem is.
I am using WAMP and i copy the full project map into the www folder of C:/wamp/www as i was told and as it works with other php sites. For some reason however this won't work with Zend 2 now i assume that it has something to do with the fact that Netbeans/WAMP has no clue which .php file to load but i have no clue how to fix it does anyone have experience with this that could help me please? i'm kind of stuck
I need to edit an existing yii app but got no idea how to setup in xampp.
I downloaded everything from the server and moved the folders to /opt/lampp/htdocs
But then i got no idea how to get the application running.
When i try
/localhost/yiidirectory
It shows me the file structure so the app isn't executing.
Can you give me some advise to accelerate the problem solving ?
Since windows 7 I believe you need to use:
http://127.0.0.1/yiidirectory
If that doesn't work then check your xampp setup:
http://www.yiiframework.com/wiki/100/yii-and-xampp-server-on-windows/
The DNS resolver just hands back localhost so it never resolves it for the app/browser.
I have always been using netbeans to develop php project but wanted to give a try to see how intellij Ultimate (version 13 in this case). After installing the php plugin, and created a simple web application project, I got lost. Turns out to some hours of googling and trial and error I couldn't find that small thing that could say check to copy the the files to remote location or remote server etc.
I am running fedora 19 with apache2 so my root directory is /var/www/html/phpproject. I am hoping to see my files from /media/blacksensei/Repo/work/intellijworkspace/phpproject/src copied to that folder so that I can have access to it via http://localhost/phpproject.
Can anyone explain this process simply for me.
Thank you
I'm not php developer. But what I see that it is quite simple:
Create Run/Debug configuration for PHP Web aplication
Tap + in Before launch section
Choose Upload to Remote Host and configure it
You can find more details here - http://www.jetbrains.com/idea/webhelp/uploading-and-downloading-files.html#d438110e553