The requested URL /index.php was not found on this server - php

I know this question seems duplicate but it is not. Actually I have strange problem that I want to fix since last two days. I have install the apache2 on ubuntu 12.04, configure it and it works fine. Problem is that when I try to access the same website from other computer it opens the directory instead of website and If I click on some link it says the sentence that I wrote in the heading. Now want to know that what I am missing as all things goes fine on local PC by localhost/
I built the application in ZEND.

Related

File preview not working Vtiger 7.3 - i've tried 3 different servers with fresh installs

I seem to have an issue with the file preview in the documents which throws me a xyz and logs me out. See image here
It doesn't matter what I change including removing the / from the root and site address in config php file i just cant get it to work.
Ive followed its4you install instructions with the correct chown and owner permissions etc for the full install. I then decided to set a brand new instance up on a new server and it is the same. So i reconfigured a different server on amazon web services running ubuntu... exactly the same issue.
I have a similar issue when i installed pdfmaker and tried to browse server in the editor (fck possibly), it would show me blank thumb nails, if i click one then save it would close the session and log me out.
I have several versions of 7.1 running on the same servers without issue.
Any ideas?
Found the answer to this. Whilst browser through two comparative server setups I noticed "Varnish" was enabled on the new instance running VTiger 7.3. I turned this off and hey presto, issue resolved!

suggestions needed to resolve issue with phpmyadmin not working after install

Hoping someone can point me in the right direction here. I have a website xxxxx.com on one server and a subdomain of app.xxxxx.com on another server, both with SSL and working fine.
I have just installed phpmyadmin on app.xxxxx.com server and all seems to have went well with the install. However when I visit app.xxxxx.com/phpmyadmin which is where I would expect it to be i get a HTTP500 error "this page isn't working".
I think might be a virtual host/apache routing issue but not too sure?

Running Wordpress repo locally through MAMP. Assets not being pulled in

Currently I am trying to run a Wordpress repo locally for development. I am not using MAMP pro even though I still have a 9 day trail. I figured since I'm going to be using the free version for now I might as well work with that. I have my Apache & MySQL server running along with the Document Root pointing to my Sites folder where my projectName repo sits. I'm still running off of the default port of Apache 8888.
After I start the servers, I open WebStart and import my DB into phpMyAdmin. Everything works perfectly fine and the copy of my db gets imported. I then make sure that my wp-config.php file has the appropriate settings to access this db. I then click on My Website. This pulls up the content of the website. However, it does not pull in any of the assets(imgs/js/css). I receive the following errors in the console:
Failed to load resource: net::ERR_EMPTY_RESPONSE http://projectName.dev/wp-content/uploads/2016/09/logo-footer-1.png
Failed to load resource: net::ERR_EMPTY_RESPONSE http://projectName.dev/wp-content/themes/projectName/images/circle.png
And so the list goes on and on for pretty much every asset the project could possibly have. Now configuration is NOT my strong suit, and at this point I am at a loss of what could possibly be happening. Awhile ago I did follow a tutorial on how to setup my files so that I can access them in the web browser by simply typing the name of the project with the domain .dev, example: projectName.dev. I started having issues with this after upgrading to OS Sierra and it no longer works. Could this possibly be the reason as to why it is looking for these assets in the projectName at the .dev domain?
I apologize if this does not make sense. I am willing to provide anyone with any information on this as I need as much help as possible because I still need to level up my configuration skills. Let me know if you have questions.
The images and other assets are referenced with an absolute filepath (i.e. the URL of the server on which you first set it up). This has to be changed in all database entries. There are tutorials for this on the net, but the most simple version is to open the sql file in an editor and search & replace the general URL part in the complete database.
Be sure to keep a backup of the file - that might not work on the first try...

Setup existing Yii project on xampp linux

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.

Cannot load /admin after migrating SilverStripe install to a new server

I have just moved a silverstripe install to a new joyent smartos server. Not being familiar with Linux, this was still relatively easy.
I am new to silverstripe as well, but the team here has developed on it for years.
I have the site up and running on the new server, but have not pointed the domain to it until we can thoroughly test it. So I am accessing it from it's ip address. The site displays fine and the sub pages work as well. When I navigate to the '/admin' page, I see a silverstripe page that states the page cannot be found (not an Apache 404). I copied over the .htaccess and the _config.php from the old server, so there should be no issues.
I have done a /dev/build with no errors and I can log in through the security page, but I just cannot get the /admin to come up. I am lost after spending the whole morning surfing google to find the answer. Any help would be greatly appreciated.
UPDATE:: I installed a fresh version of silverstripe into a subdirectory on the same server. Works perfectly, so that rules out any PHP issues.
I have also tried /index.php/admin with no luck.
Thanks,
Ben
I was having this problem as well. None of the solutions I found online worked for me, but I managed to figure it out.
I had apache running as a non-standard user, and the problem turned out to be that the webserver was unable to save session data for the logins.
The solution in my case was to chown root.myuser /var/lib/php/session. Once done, the admin page loaded fine.
If /admin is not loading at all and there is no 404 error, there is a high chance of a PHP error. And that should be logged in the webserver's log file. This will depend on your operating system and probably on the Joyent environment (not familiar with that breed of cloud computing). On Debian, Ubuntu, and some more it's /var/log/apache2/error.log (assuming you're using Apache).
If I had to guess, I'd say the permissions of assets/_combinedfiles/ are bad. The webserver tries to create some combined JS and CSS files there (specifically leftandmain.js and cmsmain.js) and if it fails, you might get the dreaded white page of death in /admin.

Categories