I have tried debugbar, but this does not give me enough information.
I have also tried setting up OctoberCMS using that same method to debug as I would with Laravel, but when I set a break point it stops at index.php. Also, I have tried the validation script inside PhpStorm, but it gives a 404 error.
I am trying to debug a plugin that I am developing, and it would be easier using an IDE like PhpStorm or NetBeans. Any help would be appreciated.
I have setup phpstorm to debug a laravel project by setting the URL:/phpstorm/public in the PHP Web Page settings but when I try some thing simular in my octobercms project all I get is waiting for connection meaning that the break point never gets hit here are the setting I am using
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port= 9000
xdebug.remote_autostart=1
xdebug.profiler_enable=1
xdebug.profiler_output_dir ="c:/wamp64/tmp/"
xdebug.idekey=PHPSTORM
in the PHP Web page I have
start URL: /octobercms/backend/rainlab/blog/Posts
I have not set path mappings in the server as did not do this for the Laravel project I am using WAMP64 with the following settings c:/wamp64/www/octobercms/
and this is my vitrual host file
<VirtualHost *:80>
ServerName octobercms.test
DocumentRoot "c:/wamp64/www/octobercms"
<Directory "c:/wamp64/www/octobercms">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
DirectoryIndex index.php index.html
Require local
</Directory>
</VirtualHost>
any advise on the setting I should use for Octobercms would be helpful
I am not sure if this helps but after several attemps to get this to work I managed to get phpstorm to stop at the breakpoint I selected by the following
Set up wamp up as above
In the PHP Web Page section I set the Start URL: to
/octobercms/backend/rainlab/blog/posts and apply settings
Set a break point in Posts.php
pressed the run button
and all is well with the world, I can now try to figure out why my plugin is not doing what its supposed to.
I have uploaded some html files to my Digital Ocean droplet, on directory /var/www/html, but apparently I still can't connect to http://vps-ip-address, how can I make those files work on default http port when simply typing http://vps-ip-address? I know I'm missing something out and it's probably a newbie mistake, so if someone could explain to me how it can be done, I would be grateful.
By default on Ubuntu, the document root for Nginx is located at /usr/share/nginx/html In order to serve content from /var/www/html you will need to edit your Nginx configuration. The default configuration file is /etc/nginx/sites-enabled/default
Find the line:
root /usr/share/nginx/html;
and change it to:
root /var/www/html;
Then restart Nginx with sudo service nginx restart
I know this question was asked before but it seems that nothing helped.
I have a local Wordpress installation and try to use permalinks.
What I did in my XAMPP was to open the conf file and find
LoadModule rewrite_module modules/mod_rewrite.so
so it was activated and no # before. Then I searched for
AllowOverride All
which was fine too. But none of the permalinks work, I always get an not found error.
Can anyone help?
EDIT: question solved, needed to put the .htaccess in the root folder and restart XAMPP
I would like to change the default web page that shows up when I browse my site. I currently have a reporting program running, and it outputs a file called index.html. I cannot change what it calls the file. Therefore, my landing page must be called something else. Right now, when I browse my site it takes me to the reporting page.
From what I see, whatever you call index.html it will pull that up as your default. I want to change that to landing.html. How do I do this?
I am a folder (Folding # Home). The reporting program is HFM.net. HFM can output an html file with my current folding statistics. It names the html file index. I do not want that to be my default home page. I would like a menu-like landing where I can choose if I want to see my stats, or something else. The website is at /home/tyler/Documents/hfm/website (landing.html and hfm's index.html are here). Apache2 is in its default directory.
I'm also running Ubuntu 13.04.
I recommend using .htaccess. You only need to add:
DirectoryIndex home.php
or whatever page name you want to have for it.
EDIT: basic htaccess tutorial.
1) Create .htaccess file in the directory where you want to change the index file.
no extension
. in front, to ensure it is a "hidden" file
Enter the line above in there. There will likely be many, many other things you will add to this (AddTypes for webfonts / media files, caching for headers, gzip declaration for compression, etc.), but that one line declares your new "home" page.
2) Set server to allow reading of .htaccess files (may only be needed on your localhost, if your hosting servce defaults to allow it as most do)
Assuming you have access, go to your server's enabled site location. I run a Debian server for development, and the default site setup is at /etc/apache2/sites-available/default for Debian / Ubuntu. Not sure what server you run, but just search for "sites-available" and go into the "default" document. In there you will see an entry for Directory. Modify it to look like this:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Then restart your apache server. Again, not sure about your server, but the command on Debian / Ubuntu is:
sudo service apache2 restart
Technically you only need to reload, but I restart just because I feel safer with a full refresh like that.
Once that is done, your site should be reading from your .htaccess file, and you should have a new default home page! A side note, if you have a sub-directory that runs a site (like an admin section or something) and you want to have a different "home page" for that directory, you can just plop another .htaccess file in that sub-site's root and it will overwrite the declaration in the parent.
You can also set DirectoryIndex in apache's httpd.conf file.
CentOS keeps this file in /etc/httpd/conf/httpd.conf
Debian: /etc/apache2/apache2.conf
Open the file in your text editor and find the line starting with DirectoryIndex
To load landing.html as a default (but index.html if that's not found) change this line to read:
DirectoryIndex landing.html index.html
I had a similar problem. When providing http://server/appDirectory I got a directory listing instead of index.html even though I had
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
in my httpd.conf file.
My solution was to uncomment the
LoadModule setenvif_module modules/mod_setenvif.so
line in httpd.conf
Apache version: 2.4
In Ubuntu you can add in file:
/etc/apache2/mods-enabled/dir.conf
line
DirectoryIndex myhomepage.htm
and then restart apache service
sudo systemctl restart apache2
In Unbuntu, you can update the default page on a site-by-site basis with the site config files eg:
/etc/apache2/sites-available/your.domain.conf
Same syntax for the key line in the file, eg mine is;
DirectoryIndex default.htm index.htm
Then don't forget to enable and reload:
sudo a2ensite your.domain.conf
sudo systemctl reload apache2
I cannot see an index.html in my site root. http://localhost/index.html does not work. Also 127.0.0.1/index.html and one other aa.local/index.html doesn't work either. But if I remove index.html to any of those above domains I get the Centos apache welcome screen. On the welcome page it says if it doesn't find an index in the /var/www/html directory it would show the welcome page. There is an index page in the root...that is what I am referring to above. I checked the httpd.conf file and the DocumentRoot is /var/www/html. If I put in another directory in the site root and try to load up any of the pages the page is not found. If I stop the server by saying:
sudo /usr/sbin/apachectl stop
When I reload any of the pages that didn't work it now gives an "unable to connect". The welcome page is unable to connect as well. I restart it using the above but change it to start and now I am back to where I started...index.html is not found and welcome page is back if I just do the domain root.
Any ideas?
Got it...Under System->Administration->Server settings->http I changed the Server Name to be my aa.local and then I under Virtual hosts tab and then I changed the Page Options I had it look for index.html or index.php...Then I restarted the server....I think just changing the server name should have done it